Either I am blind or insane.
Everything went fine except for Sunday when OH 2.4.1-0 froze and I had to restart the PI.
The USB stick with Zigbee2MQTT was no longer active and so all Zigbee sensors were gone.
At first I thought that the stick was defective, but after rebooting everything was fine again. I thought.
A Mueller bulb did not work anymore. During research I found the following.
.things
Type switch : mueller_0x00158d00031dc5fe_light "Keller 2" [stateTopic="z2mqtt/0x00158d00031dc5fe",transformationPattern="JSONPATH:$.state", commandTopic="z2mqtt/0x00158d00031dc5fe/set", formatBeforePublish="{\"state\":\"%s\"}"]
.items
Switch KG_Flur_Licht_1dc5fe_Switch "Flur KG" <switch> (gKeller,gHaus_Lichter,gKG) { channel="mqtt:topic:MyMosquitto:lichter:mueller_0x00158d00031dc5fe_light"}
In a rule, a motion detector is queried and then a command is triggered.
KG_Flur_Licht_1dc5fe_Switch.sendCommand(ON)
But the following is sent to the MQTT server:
Nov 17 01:39:18 openHABianPi npm[550]: Zigbee2MQTT:error 2020-11-17 01:39:18: Publish 'set' 'state' to '0x00158d00031dc5fe' failed: 'Error: State value of message: '{"state":"1"}' invalid, must be 'ON', 'OFF' or 'TOGGLE''
Nov 17 01:39:18 openHABianPi npm[550]: Zigbee2MQTT:info 2020-11-17 01:39:18: MQTT publish: topic 'z2mqtt/bridge/log', payload '{"message":"Publish 'set' 'state' to '0x00158d00031dc5fe' failed: 'Error: State value of message: '{\"state\":\"1\"}' invalid, must be 'ON', 'OFF' or 'TOGGLE''","meta":{"friendly_name":"0x00158d00031dc5fe"},"type":"zigbee_publish_error"}'
Why does OH turn the “ON” into a “1”? Where can I search for the error?
The code has not been changed.