home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.07k stars 29.73k forks source link

Aeotec ZW090 stick not showing node status entity since last ZWJS update #68575

Closed rpitera closed 2 years ago

rpitera commented 2 years ago

The problem

When I migrated from Legacy ZWave to ZWJS a few weeks ago, a node status sensor was created for my Aeotec ZStick Gen 5 (ZW090) as part of the process. This sensor named sensor.z_stick_gen5_usb_controller_node_status showed the node status properly and worked as expected.

About a week ago, I noticed the state had changed to unavailable. This was strange because the ZW network was working fine; in fact better than expected since the upgrade to ZWJS. I ignored it for a bit, thinking it was just some oddness that would sort itself out. But then I started looking into what might be the cause and realized that was behind on my firmware for the stick so I decided to back it up and performed the upgrade after a few misstarts.

After reinserting the stick into the host and starting up HA, I checked the status of the ZWave network. Everything was there and working as hoped. But the node status sensor was not showing as unavailable; it had disappeared completely. There are no entities associated with the stick at all. Screen shot of device screen shown:

zstick

The other devices in the network are all still there and still working nominally. The screen shot shows the correct firmware version too. I'm just not getting any control (or any other) entities for the device. I've tried restarting both HA and the ZWJS server. Also tried a Heal Network. Node Status entities appear for every other ZWave device on my network, with the exception of the controller.

What version of Home Assistant Core has the issue?

core-2022.3.6

What was the last working version of Home Assistant Core?

core-2022.3.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ZWJS

Link to integration documentation on our website

No response

Diagnostics information

Diagnostics JSON of ZWave Stick:

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.3.6",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.9.9",
    "docker": true,
    "arch": "x86_64",
    "timezone": "America/New_York",
    "os_name": "Linux",
    "os_version": "5.10.103",
    "supervisor": "2022.03.5",
    "host_os": "Home Assistant OS 7.5",
    "docker_version": "20.10.9",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "climacell": {
      "version": "2.0.4",
      "requirements": []
    },
    "nws_alerts": {
      "version": "2.4",
      "requirements": []
    },
    "feedparser": {
      "version": "0.1.7",
      "requirements": [
        "feedparser==6.0.8"
      ]
    },
    "plex_recently_added": {
      "version": "0.3.8",
      "requirements": []
    },
    "eufy_security": {
      "version": "2.2.4",
      "requirements": [
        "websocket-client==1.1.0"
      ]
    },
    "weatheralerts": {
      "version": "0.1.5",
      "requirements": []
    },
    "badnest": {
      "version": "5.0.1",
      "requirements": [
        "simplejson>=3.17.2"
      ]
    },
    "weatherbit": {
      "version": "1.0.8",
      "requirements": [
        "pyweatherbitdata==1.0.11"
      ]
    },
    "radarr_upcoming_media": {
      "version": "0.3.6",
      "requirements": []
    },
    "hacs": {
      "version": "1.23.0",
      "requirements": [
        "aiogithubapi>=21.11.0"
      ]
    },
    "eventsensor": {
      "version": "3.0.0",
      "requirements": []
    },
    "nodered": {
      "version": "1.0.6",
      "requirements": []
    },
    "webrtc": {
      "version": "v2.2.0",
      "requirements": []
    },
    "mail_and_packages": {
      "version": "0.3.4-b22",
      "requirements": [
        "imageio>=2.9.0",
        "python-resize-image>=1.1.19"
      ]
    },
    "dyson_cloud": {
      "version": "0.15.0",
      "requirements": [
        "libdyson==0.8.7"
      ]
    },
    "sonarr_upcoming_media": {
      "version": "0.2.7",
      "requirements": []
    },
    "browser_mod": {
      "version": "1.3.1",
      "requirements": []
    },
    "dyson_local": {
      "version": "0.16.3",
      "requirements": [
        "libdyson==0.8.9"
      ]
    },
    "alarmo": {
      "version": "v1.8.7",
      "requirements": []
    },
    "yahoofinance": {
      "version": "1.1.7",
      "requirements": []
    },
    "next_rocket_launch": {
      "version": "v1.0.4",
      "requirements": [
        "ics==0.7"
      ]
    },
    "aarlo": {
      "version": "0.7.2b7",
      "requirements": [
        "unidecode",
        "cloudscraper>=1.2.58",
        "paho-mqtt"
      ]
    },
    "spacex": {
      "version": "029",
      "requirements": [
        "spacexpypi==0.0.12"
      ]
    },
    "meross_cloud": {
      "version": "1.2.0rc2",
      "requirements": [
        "meross_iot==0.4.4.4"
      ]
    },
    "blitzortung": {
      "version": "1.0.1",
      "requirements": [
        "paho-mqtt>=1.5.0"
      ]
    },
    "rocketlaunchlive": {
      "version": "009",
      "requirements": [
        "rocketlaunchlive==0.0.2"
      ]
    },
    "fontawesome": {
      "version": "2.1.5",
      "requirements": []
    },
    "alexa_media": {
      "version": "3.11.0",
      "requirements": [
        "alexapy==1.25.3",
        "packaging>=20.3",
        "wrapt>=1.12.1"
      ]
    },
    "wundergroundpws": {
      "version": "0.8.1",
      "requirements": []
    },
    "ourgroceries": {
      "version": "1.3.12",
      "requirements": [
        "ourgroceries==1.3.10"
      ]
    },
    "tuya_v2": {
      "version": "1.5.0",
      "requirements": [
        "tuya-iot-py-sdk==0.4.1"
      ]
    },
    "frigidaire": {
      "version": "0.1.0",
      "requirements": [
        "frigidaire==0.18.4"
      ]
    },
    "ytube_music_player": {
      "version": "20220205.01",
      "requirements": [
        "ytmusicapi==0.19.5",
        "pytube==10.5.1",
        "integrationhelper==0.2.2"
      ]
    }
  },
  "integration_manifest": {
    "domain": "zwave_js",
    "name": "Z-Wave JS",
    "config_flow": true,
    "documentation": "https://www.home-assistant.io/integrations/zwave_js",
    "requirements": [
      "zwave-js-server-python==0.35.2"
    ],
    "codeowners": [
      "@home-assistant/z-wave"
    ],
    "dependencies": [
      "usb",
      "http",
      "websocket_api"
    ],
    "iot_class": "local_push",
    "usb": [
      {
        "vid": "0658",
        "pid": "0200",
        "known_devices": [
          "Aeotec Z-Stick Gen5+",
          "Z-WaveMe UZB"
        ]
      },
      {
        "vid": "10C4",
        "pid": "8A2A",
        "description": "*z-wave*",
        "known_devices": [
          "Nortek HUSBZB-1"
        ]
      },
      {
        "vid": "10C4",
        "pid": "EA60",
        "known_devices": [
          "Aeotec Z-Stick 7",
          "Silicon Labs UZB-7",
          "Zooz ZST10 700"
        ]
      }
    ],
    "loggers": [
      "zwave_js_server"
    ],
    "is_built_in": true
  },
  "data": {
    "versionInfo": {
      "driverVersion": "8.11.9",
      "serverVersion": "1.15.0",
      "minSchemaVersion": 0,
      "maxSchemaVersion": 15
    },
    "state": {
      "nodeId": 1,
      "index": 0,
      "status": 4,
      "ready": true,
      "isListening": true,
      "isRouting": false,
      "isSecure": "unknown",
      "manufacturerId": 134,
      "productId": 90,
      "productType": 1,
      "firmwareVersion": "1.2",
      "deviceConfig": {
        "filename": "/data/db/devices/0x0086/zw090.json",
        "isEmbedded": true,
        "manufacturer": "AEON Labs",
        "manufacturerId": 134,
        "label": "ZW090",
        "description": "Z\u2010Stick Gen5 USB Controller",
        "devices": [
          {
            "productType": 1,
            "productId": 90
          },
          {
            "productType": 257,
            "productId": 90
          },
          {
            "productType": 513,
            "productId": 90
          }
        ],
        "firmwareVersion": {
          "min": "0.0",
          "max": "255.255"
        },
        "associations": {},
        "paramInformation": {
          "_map": {}
        },
        "metadata": {
          "reset": "Use this procedure only in the event that the primary controller is missing or otherwise inoperable.\n\nPress and hold the Action Button on Z-Stick for 20 seconds and then release",
          "manual": "https://products.z-wavealliance.org/ProductManual/File?folder=&filename=MarketCertificationFiles/1345/Z%20Stick%20Gen5%20manual%201.pdf"
        }
      },
      "label": "ZW090",
      "interviewAttempts": 0,
      "endpoints": [
        {
          "nodeId": 1,
          "index": 0,
          "deviceClass": {
            "basic": {
              "key": 2,
              "label": "Static Controller"
            },
            "generic": {
              "key": 2,
              "label": "Static Controller"
            },
            "specific": {
              "key": 1,
              "label": "PC Controller"
            },
            "mandatorySupportedCCs": [],
            "mandatoryControlledCCs": [
              32
            ]
          },
          "commandClasses": []
        }
      ],
      "values": [],
      "isFrequentListening": false,
      "maxDataRate": 100000,
      "supportedDataRates": [
        40000,
        100000
      ],
      "protocolVersion": 3,
      "supportsBeaming": true,
      "supportsSecurity": false,
      "nodeType": 0,
      "deviceClass": {
        "basic": {
          "key": 2,
          "label": "Static Controller"
        },
        "generic": {
          "key": 2,
          "label": "Static Controller"
        },
        "specific": {
          "key": 1,
          "label": "PC Controller"
        },
        "mandatorySupportedCCs": [],
        "mandatoryControlledCCs": [
          32
        ]
      },
      "interviewStage": "Complete",
      "deviceDatabaseUrl": "https://devices.zwave-js.io/?jumpTo=0x0086:0x0001:0x005a:1.2",
      "statistics": {
        "commandsTX": 0,
        "commandsRX": 0,
        "commandsDroppedRX": 0,
        "commandsDroppedTX": 0,
        "timeoutResponse": 0
      },
      "isControllerNode": true,
      "keepAwake": false
    }
  }
}

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Looked, but didn't see anything in general logs, ZWJS server logs or ZWave network log screen run in debug level. All communications seem normal.

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

Hey there @home-assistant/z-wave, mind taking a look at this issue as it has been labeled with an integration (zwave_js) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)


zwave_js documentation zwave_js source (message by IssueLinks)

kpine commented 2 years ago

You can delete it.

https://www.home-assistant.io/blog/2022/03/02/release-20223/#breaking-changes

image

rpitera commented 2 years ago

@kpine - Thanks; I'm usually a stickler for reading the breaking changes but somehow I missed this one! Thanks for pointing it out.