Koenkk / zigbee2mqtt

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

BTICino K4003CWI not reporting correctly, both the hardware and the result from the interview #22703

Open langas6 opened 2 months ago

langas6 commented 2 months ago

What happened?

OTA not working for K4003CWI, Once updated, showing incorrect firmware details and won't allow normal "on"/"off" functionality with each of the 2 buttons, only "toggle" for both buttons. Also showing the wrong model/manufacturer for the switch. Not sure if this is a z2m reporting/interview error or a firmware error. But this only started when i tried the firmware update. Have a second switch without the OTA update, and it is reporting the same thing. So i'm leaning towards a z2m reporting issue.

What did you expect to happen?

To update firmware, cos there was a shiny button saying i could do so. Did not expect the model/firmware and manufacturer code to change for the switch. Identifying switch to be: https://www.zigbee2mqtt.io/devices/067773.html But actually is: https://www.zigbee2mqtt.io/devices/K4003C_L4003C_N4003C_NT4003C.html

How to reproduce it (minimal and precise)

Pressing buttons on the switch to get results shown in the debug logs below.

Zigbee2MQTT version

1.37.1

Adapter firmware version

7.3.1.0 build 176

Adapter

EZSP v12

Setup

Home Assistant OS in a Virtual Machine on Synology NAS

Debug log

Device is: 0x0004740000801117 log1.log

Sequence of pushes on buttons is on/off/on/off, brightness_move_up/Brightness_move_down (2 x) then double tap up and double tap down, which gives a "off" for both double taps (on and off buttons report "off" for double tap")

Nerivec commented 1 month ago

@FabianMangold Any chance you can test this? Seems firmware versions have some breaking changes or something. original mention

FabianMangold commented 1 week ago

Hi @Nerivec, Sorry for the delay, I've been out of town for quite a while. Will take a look ASAP, but this might be tricky since i exclusively have Legrand HW, no BTicino. Let's see what we can do here.

langas6 commented 1 week ago

Thanks so much for the help with this one.

Just a side note, it seemed to be an issue when i tried to do the OTA update, and after that, all the CWI ones are reporting the wrong information. I have also a K4027C and this is showing the correct image and reporting the correct info when the button is pushed.

I've been able to get a work around for the time being (using the "toggle" output from the switch instead of it's intended "on" and "off" outputs. And also not sure if it's just my instance of HA that's stuffing things up. Need to get one of the switches connected to another HA setup to test that out. (hoping to get a chance this weekend)

Thanks again for looking into this :) Much appreciated!!!