-
-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Notification sensor for basic command not created after re-interview #1024
Comments
@towerhand Your logs indicate that the events are received and published as such:
|
I guess you're looking for the wrong event in HA. There were breaking changes: |
I’m using MQTT discovery, not using the zwave js server so that breaking changes shouldn’t affect me, I checked with freshcoast in discord and it is working with the zwaje js server, only in the mqtt side the entity disappears and stop reporting it. I’ll post more logs in a little while, not sure what happened but I changed the settings to debug before recreating the logs. |
Ok my apologies, I forgot I needed to change the log options in two places, attached new logs. In the screenshot the entity that disappeared is sensor.master_bedroom_fan_notification_event. |
Looks good from the |
@towerhand Did you checked if you get them using mqtt explorer? |
Yes, I checked with MQTT explorer and no topics are getting sent, makes sense because zjs2m is not showing them in the UI as you can see in the screenshot, that device used to have 4 entities but |
It could be that them are sent as notificaitons, so in that case you would not see a valueId on ui for them |
Ok, anything else I can do to test? or let me know if I can provide any more info. |
@robertsLando the basic event is a |
Ok I have just checked the code, I never changed anything on that side: https://github.com/zwave-js/zwavejs2mqtt/blob/master/lib/Gateway.js#L1882 Here is where the discovery should happen, sincerly I have no clue as I also don't see any error on console. @billiaz ? |
And this is part of the debug info tab in the device, the values I used to get when the entity was available before re interviewing were 0 and 255.
|
You won't see a status in that overview. The device configuration file tells zwave-js to treat the command as an event - to be specific Since these switches can send these events without changing their status, persisting them as a status would be incorrect. @robertsLando I guess adding some documentation which specifies how zwavejs2mqtt handles the different events received from zwave-js would be good :) |
Ah it makes sense, I was just trying to provide more info so hopefully you guys can figure out why zjs2m is not creating the entity and passing the event to mqtt. |
There is another issue related #1044 |
New logs with latest master. |
Duplicate of #1044. Please follow updates there ? |
Version
2021.4.1
Checklist:
Build/Run method
zwavejs2mqtt: 3.2.0
zwave-js: 7.1.1
Describe the bug
After re-interviewing my two GE switches the double click feature stopped working, the switches in question are a GE dimmer 14294 and a GE fan switch 14287 with the compat flag
"treatBasicSetAsEvent": true
, node 16 and 17.I'm using the MQTT discovery and when I go to the "home assistant" tab in each device the entities for the notifications are gone so it explains why the event is not getting published to MQTT, using the debug tool in zjs2m I was able to rule out a problem with zwavejs because the events are getting received.
I'm not sure when this bug started since the nodes don't get interviewed after every restart now.
Expected behavior
An entity used to be created for the basic notification and zjs2m used to publish the value of "0" or "255" to MQTT.
Additional context
The text was updated successfully, but these errors were encountered: