Skip to content
Custom Lovelace card that displays ZHA network and device information
JavaScript
Branch: master
Clone or download
Latest commit 753d254 Sep 23, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode Cleanup (#6) Aug 25, 2019
LICENSE initial implementation Jul 20, 2019
README.md Update README.md Sep 23, 2019
screenshot.jpg add image Jul 20, 2019
zha-network-card.js Add device dialog handler (#7) Sep 23, 2019

README.md

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.

You can’t perform that action at this time.