I’m using OPENHAB 3.0 + Mosquitto as a Broker and Zigbee2Mqtt with CC2531 USB stick.
ISSUE:
When I restart the zigbee2mqtt.service on my Raspberry PI 4, all registered Zigbee2Mqtt bulbs will turn on. How can I prevent this from happening?
- The bulbs were all OFF beforehand.
- This is happening only with bulbs registered via Zigbee2Mqtt
- Other MQTT devices like Shelly and Meross and Tuya will stay in their actual state.
**How can I prevent this behavior after restarting the zigbee2mqtt.service?
my state.json before starting the zigbee2mqtt.service clearly says “state”: OFF on the bulbs.
Or are e.g. the brightness state values forcing the bulbs to turn on?
{
“0x60a423fffef48cd4”: {
“occupancy”: true,
“battery”: 87,{
“0x60a423fffef48cd4”: {
“occupancy”: true,
“battery”: 87,
“update”: {
“state”: “idle”
},
“update_available”: false
},
“0x5c0272fffe52c1e2”: {
“update”: {
“state”: “idle”
},
“update_available”: false,
“state”: “OFF”,
“brightness”: 254
},
“0x5c0272fffe579b5d”: {
“brightness”: 15
},
“0x5c0272fffe628e1d”: {
“update”: {
“state”: “idle”
},
“update_available”: false,
“state”: “OFF”,
“brightness”: 254,
“color_temp”: 500
},
“0x086bd7fffe2f0f61”: {
“state”: “OFF”,
“update”: {
“state”: “idle”
},
“update_available”: false,
“brightness”: 251.46
},
“0x000b3cfffefda26b”: {
“update”: {
“state”: “idle”
},
“update_available”: false,
“state”: “OFF”,
“brightness”: 250
}
}