Replies: 1 comment 1 reply
-
I think I should also add that a "0" value is passed when the button is pushed only once. So that complicates things because you cannot just say that "undefined" should be a zero :( |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to check if this was expected behavior or something that should be addressed. I have a ZEN32 Scene Switch in zwavejs2mqtt (4.0.1 / 7.3.0) when I push the button I get an MQTT message like this:
{"time":1620503427189,"value":3}
then shortly after that I get another message with no value field representing the switch is idle:
{"time":1620503427189}
Home Assistant complains in its error logs because the value_template is look for a "value" field, but in the 2nd message for when the switch is not pressed the there is no "value".
In 2Mqtt the log messages:
However the actual MQTT message sent does not seem to contain a value field.
Thank you very much! Let me know if I should convert this to an issue or if it is expected behavior.
Beta Was this translation helpful? Give feedback.
All reactions