Open antonrez89 opened 2 months ago
I noticed with Gledopto-GL-C-009 that by default there are no "effects" such as set brightness to 2 when turn off from HA. BUT if you set transition time in special settings - appeared buggable behaviar with set brightness to 2.
if you change transition time to 0 not helps!
After reset, the value 0 is printed in input transition duration (by default there is no value). and "effect" to set low brightness saved after reset
How can I return to default state? Help please!
UPD: solve is simple: just set the input empty and strange behavior will disappear!
What happened?
continues for issue https://github.com/Koenkk/zigbee2mqtt/issues/21531 problem: when you turn on device by push switch the brightness level is 3 (but should be 254).
I have two differnt devices from different manufactures, with same bug. looks strange.
first device: manufacture - Gledopto model - GL-C-008P
second device: manufacture - Tuya model - TS0502B
In my opinion problem happened because HA publishe extra messages with set brightness to level 3. In other side if I turn off/on by push switch there are no messages about change brightness - only state change
why brightness changed to level 3 when turn off from dashboard?
What did you expect to happen?
I expect that after turn on by push switch I get the previous brightness level (254)
How to reproduce it (minimal and precise)
steps to reproduce: 1) turn off by z2mqtt dashboard 2) turn on by push swith
Zigbee2MQTT version
1.39.1
Adapter firmware version
6.10.3.0 build 297
Adapter
EZSP v8
Setup
PI_4, x86 containerized
Debug log
push switch off:
2024-08-21 22:47:52z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{"brightness":255,"color_mode":"xy","do_not_disturb":null,"linkquality":176,"state":"OFF"}' info 2024-08-21 22:47:52z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{"brightness":255,"color_mode":"xy","do_not_disturb":null,"linkquality":172,"state":"OFF"}' info 2024-08-21 22:47:52z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{"brightness":255,"color_mode":"xy","do_not_disturb":null,"linkquality":176,"state":"OFF"}' info 2024-08-21 22:47:52z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{"brightness":255,"color_mode":"xy","do_not_disturb":null,"linkquality":172,"state":"OFF"}'
push switch on:
2024-08-21 22:48:25z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{"brightness":255,"color_mode":"xy","do_not_disturb":null,"linkquality":176,"state":"ON"}' info 2024-08-21 22:48:25z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{"brightness":255,"color_mode":"xy","do_not_disturb":null,"linkquality":172,"state":"ON"}' info 2024-08-21 22:48:25z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{"brightness":255,"color_mode":"xy","do_not_disturb":null,"linkquality":168,"state":"ON"}' info 2024-08-21 22:48:25z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{"brightness":255,"color_mode":"xy","do_not_disturb":null,"linkquality":164,"state":"ON"}'
turn off from dashboard:
2024-08-21 22:50:26z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{"brightness":255,"color_mode":"xy","do_not_disturb":null,"linkquality":172,"state":"OFF"}' info 2024-08-21 22:50:26z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{**"brightness":1,"**color_mode":"xy","do_not_disturb":null,"linkquality":172,"state":"OFF"}' info 2024-08-21 22:50:26z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{**"brightness":3,**"color_mode":"xy","do_not_disturb":null,"linkquality":172,"state":"OFF"}' info 2024-08-21 22:50:30z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{"brightness":3,"color_mode":"xy","do_not_disturb":null,"linkquality":176,"state":"OFF"}'
turn on from dashboard:
2024-08-21 22:51:59z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{"brightness":255,"color_mode":"xy","do_not_disturb":null,"linkquality":176,"state":"ON"}'
turn on after off from dashboard (brightness 3 is saved):
2024-08-21 22:53:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/miboxer_dimmer_1', payload '{"brightness":3,"color_mode":"xy","do_not_disturb":null,"linkquality":172,"state":"ON"}'