Giter Site home page Giter Site logo

candoanything / zha-network-card Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dmulcahey/zha-network-card

0.0 1.0 0.0 362 KB

Custom Lovelace card that displays ZHA network and device information

License: GNU General Public License v3.0

JavaScript 100.00%

zha-network-card's Introduction

ZHA Network Card

Custom Lovelace card that displays ZHA network and device information

This is a modified version of https://github.com/custom-cards/flex-table-card This implementation leverages the ZHA websocket API to get ZHA device information instead of using hass.states

Example

Installation (quick & "dirty")

  • Find your homeassistent directory containing your configuration (let's say ~/.homeassistant/)
  • Change into ~/.homeassistant/www (create the www directory, if it is not existing, you then might have to restart HA)
  • $ wget https://raw.githubusercontent.com/dmulcahey/zha-network-card/master/zha-network-card.js downloads the .js file directly where it should reside
  • Finally, add the following on top of your UI Lovelace configuration (means either via Config UI or .yaml)
resources:
  - type: js
    url: /local/zha-network-card.js
  • Verify that it works with one of the examples below

Configuration

clickable: true
columns:
  - name: Name
    prop: name
  - attr: available
    id: available
    modify: x || "false"
    name: Online
  - attr: manufacturer
    name: Manufacturer
  - attr: model
    name: Model
  - attr: ieee
    name: IEEE
  - name: NWK
    prop: nwk
  - attr: rssi
    name: RSSI
  - attr: lqi
    name: LQI
  - attr: last_seen
    name: Last Seen
  - attr: power_source
    name: Power Source
  - attr: quirk_class
    name: Quirk
sort_by: available
type: 'custom:zha-network-card'

Top-level options

Name Type Required? Description
clickable bool optional Activates the devices' on-click popup dialog

Available attributes:

available
area_id
device_reg_id
ieee
last_seen
lqi
manufacturer
manufacturer_code
model
name
nwk
power_source
quirk_applied
quirk_class
rssi
user_given_name

Available Props:

name
nwk
  • name - will return user_given_name if it exists or name if it does not

  • nwk - will return the hex dislay value of the nwk attr

See https://github.com/custom-cards/flex-table-card for advanced configuration options.

zha-network-card's People

Contributors

adminiuga avatar dmulcahey avatar hedda avatar pmosbach avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.