Hi, I have an issue with a new Shelly Wave Door/Window sensor, setting this up correctly. ZWave-JS does discover the sensor and publishes it to MQTT. The sensor appears in OpenHab as a thing:
* firmwareVersion: 10.17.0
* modelId: 0x0100 (Unknown product 0x0081)
* deviceId: zwavejs2mqtt_5F0xe449d1cf_5Fnode229
* vendor: Shelly Europe, Ltd
With the following channels:
binary_sensor/nodeID_229/battery_islow
binary_sensor/nodeID_229/door_state_simple
sensor/nodeID_229/battery_level
sensor/nodeID_229/direction
sensor/nodeID_229/illuminance
sensor/nodeID_229/notification_access_control_door_state
switch/nodeID_229/config_switch_117
switch/nodeID_229/config_switch_120
switch/nodeID_229/config_switch_155
switch/nodeID_229/config_switch_156
switch/nodeID_229/config_switch_157
The binary_sensor/nodeID_229/door_state_simple should be used for OPEN/CLOSE (ON/OFF). Using a Switch with the channel works, but in the logfile I get:
2024-12-22 15:46:17.985 [WARN ] [t.generic.ChannelStateTransformation] - Executing the JINJA-transformation failed: An error occurred while transformation. InterpretException: Error resolving expression [{22: "Window/door is open",23: "Window/door is closed",5632: "Window/door is open in regular position",5633: "Window/door is open in tilt position"}[value_json.value] | default(value_json.value)]: TemplateStateException: Dict key must be a string or identifier, was: 22. Pattern: '{{ {22: "Window/door is open",23: "Window/door is closed",5632: "Window/door is open in regular position",5633: "Window/door is open in tilt position"}[value_json.value] | default(value_json.value) }}'. Value: '{"time":1734878777972,"value":5632}'
The switch is still changing ON/OFF. If I use a Contact item, it does not work at all. I need a bit of guidance what to do in this case. Is this a missing config/transformation file for this new device, or some MQTT/ZWave JS issue, as the device is also not in the ZWave JS DB, it seems (filed a ticket already). Could I create such a transform myself ?
Thanks in advance for your guidance. Markus
RP4, OH 4.2, ZWave-JS with MQTT