Koenkk / zigbee2mqtt

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

Legrand 600081 dimmer switch #23452

Open fenouil-r opened 1 month ago

fenouil-r commented 1 month ago

What happened?

Hello, When using this Legrand Dimmer 600081 (firmware 004b), it gets identified as 067771 and everything seems fine until I use the physical buttons on the switch.

I want to set the "Level config" (Configure genLevelCtrl : Specifies the level that shall be applied, when an on/toggle command causes the light to turn on) to a low value, say 3.

After that, toggling on and off from Z2M and/or HA interface, it always restart from 3, as expected.

If I turn the switch on by selecting a value on the slider (HA or Z2M), then press a physical button, it shuts the light off as expected, but sometimes also modifies the LevelControl value previously set. Sometimes LevelControl only gets updated when turning back on...

In this setup, it is easier to notice than when setting LevelControl to "previous", so I don't know for sure if "previous" works ok or not...

On a side note (maybe not related), in Z2M I need to update the page manually to keep consistent reactivity between 'state' toggle and 'Brightness' slider. Otherwise one does not reflect change made by the other (or externally).

Using 1.39.0-dev commit: 3a573da

Thank you for your help !

What did you expect to happen?

I expected that after switching using physical button, the light would use the "Level Control" preset value when turning it on again. I also expected LevelControl to keep it's value unchanged on button press.

How to reproduce it (minimal and precise)

Turn on the light directly to a large value, then switch off with physical button. Sometimes (often), the value in "Level Control" changes to the initial value.

It can take few seconds (1 to 5s) to appear on Z2M, (or need a manual refresh).

Zigbee2MQTT version

1.39.0-dev commit: 3a573da

Adapter firmware version

20210708

Adapter

zStack3x0 SONOFF ZigBee 3.0 USB Dongle Plus, TI CC2652P

Setup

Docker on Rock64 SOC (Armbian)

Debug log

No response

fenouil-r commented 1 month ago

Closest (related ?) issue found: https://github.com/dresden-elektronik/deconz-rest-plugin/issues/883

Updated Coordinator firmware to 20230507 and same problem.

Thank you.

fenouil-r commented 1 month ago

Hi again,

Looking at OTA, I get an error :

zhc:ota:common: Firmware on '0x0004740000214513' ( Dimmer switch w/o neutral) is newer than latest firmware online.

Not sure if related.

I spent some time trying to force the update for NLFE before realizing it is NLF device... Forcing worked but version was identical (004b)... Still same message for OTA... And same functional problem as described in first message.