Closed achurak closed 4 years ago
I have observed the same issue with my HomeSeer HS-FLS100+. Attached is an mqtt dump. Device is under the topic OpenZWave/1/node/34/
@eyager1 Your dump is showing that ozwdaemon is not running.
OpenZWave/1/status/,{ "Status": "Offline"}
Probably want to get it running and get another dump.
Here is another dump with ozwdaemon running.
It's a regression in the discovery schema. This device's "Generic" type is "NodeGeneric": 7
, which is GENERIC_TYPE_SENSOR_NOTIFICATION
. The discovery schema for "switch" entity is missing const.GENERIC_TYPE_SENSOR_NOTIFICATION
, so it's not detected as a valid switch entity.
The entry was recently removed and should be reverted.
Admittedly I don't fully understand all of the discovery schema, so besides cover
why does a node's device class matter when it comes to a switch
?
Most of the times it doesn't matter it's just there to make sure we make the correct matches but if make it too narrow, we miss stuff. Like happened here.
We're already implementing stuff in core Home Assistant so this custom component will not receive updates anymore. We'll make sure this particular issue will be fixed in the new integration, thanks for reporting.
For those who can't wait and need to fix the issue, copy the attached file discovery.py.txt to .homeassistant/custom_components/zwave_mqtt/discovery.py
Thank you to @kpine for finding the offending missing sensor type. Right now the zwave_mqtt component in the dev branch of homeassistant is behind the version in this github repository so I can't open a pull request to fix the issue in homeassistant core.
Fixed in the core implementation.
Hello,
I'm trying to add HomeSeer HS-FLS100+ Z-Wave Plus Floodlight Sensor and for some reason the device is missing the switch entity. The binary_sensor motion is added correctly and so is the illuminance sensor, but the switch that actually controls the light on/off is missing. I do see this switch in the ozw admin panel and I do see commandClassId 37 in the MQTT explorer under this node.
I tried excluding/including it, but got the exact same result.
Here's what I see in the mqtt logs on hass: