Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
12.17k stars 1.68k forks source link

When I control the Zigbee device, MQTT will send 2 command messages, which will cause the problem that some dimmable lamps suddenly go off after being turned on. #23794

Open yuanxin32323 opened 2 months ago

yuanxin32323 commented 2 months ago

What happened?

All along, my Zigbee lamps have occasionally had the situation where they suddenly go off after being controlled to turn on, occurring once or twice every day. This experience is very bad. Later, I monitored the MQTT messages and found that each command of the control device was repeatedly issued twice. By calling the services "turn_on" and "turn_off" of HomeAssistant, MQTT would receive 2 commands. By calling the service "toggle" of HomeAssistant, MQTT would receive 3 commands. Repeated commands have little impact on switch-type devices, but the impact on dimmable lamps is fatal, resulting in the situation where they suddenly go off after being turned on.

image image

What did you expect to happen?

No response

How to reproduce it (minimal and precise)

No response

Zigbee2MQTT version

1.39.1

Adapter firmware version

20221226

Adapter

CC2652P

Setup

x86-64

Debug log

No response

frag-duino commented 2 months ago

I'm experiencing the same problem since the update to 1.40.0 yesterday: Every message is being sent two times, which makes toggeling lights annoying:

twice1 twice2 twice3

I'm using: Zigbee2MQTT version [1.40.0] commit: 6fa1dabe Coordinator type: ConBee2/RaspBee2 Coordinator revision: 0x26780700 Openhabian with openhab 4.2.1

frag-duino commented 2 months ago

Still facing the same problem with 1.40.1. Found a workaround: Set a debounce of 0.1