dmulcahey / zha-network-card

Custom Lovelace card that displays ZHA network and device information
GNU General Public License v3.0
95 stars 20 forks source link

custom zha-network-card stopped working after a January 2023 update #31

Closed mrneutron42 closed 1 year ago

mrneutron42 commented 1 year ago

Several HA updates have been applied in the first 11 days of 2023. I'm currently up to: Home Assistant 2023.1.2 Supervisor 2022.12.1 Operating System 9.4 Frontend 20230104.0 - latest

This morning, the zha-network-card was working. Then, I rebooted HA and suddenly the custom zha-network-card stopped working. Has this happened to anyone else? zha-network-card stopped working Jan 2023 I'm not sure how to fix it, or if it can be fixed.

I have been checking to be sure all the aspects of configuration are correct. It's been several years since I installed it, and since then, the HA interface has been changed and re-arranged. I think the installation how-to is out of date. Can someone help me figure out what the correct configuration is? There was an HA message that complained about having the "resources:" lines in the main configuration, and suggested it should be moved to the Configuration window, so I just did that, but it didn't help. Does this look right?

zha-network-card Lovelace configuration

zha-network-card home view configuration settings

clickable: true
panel: 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
mrneutron42 commented 1 year ago

I got it working again! The zha-network-card.js file is in the /config/www/ directory I removed the "resources:" lines to the UI Configuration window, and made sure that the Resources Editor had an entry pointing to /local/zha-network-card.js

zha-network-card Manage Resources

This is the resulting card configuration via the Raw Configuration Editor:

title: Zigbee Network Chart
views:
  - theme: Backend-selected
    title: Home
    icon: mdi:zigbee
    panel: true
    type: panel
    subview: false
    path: default_view
    badges: []
    cards:
      - clickable: true
        panel: 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