zigpy / zha-device-handlers

ZHA device handlers bridge the functionality gap created when manufacturers deviate from the ZCL specification, handling deviations and exceptions by parsing custom messages to and from Zigbee devices.
Apache License 2.0
721 stars 669 forks source link

Aqara H1EU Double Rocker WS-EUK04 - some exposed entities/sensors are incorrect/not working [BUG] #2907

Open danielshiloah opened 8 months ago

danielshiloah commented 8 months ago

Bug description

Recently new support for Aqara WS-EUK04 in ZHA was added by @TheJulianJES. much appreciated btw! Using ZHA on Core 2024.1.3 , Supervisor: 2023.12.0, Operating System: 11.4, Frontend: 20240104.0 Not using the switch in decoupled mode.

I found a few bugs in the exposed entities:

  1. Both switches are labeled the same as Switch (not switch 1/2 or L/R) I changed the name of one switch to switch2.
  2. The "Summation delivered" sensor does not work, state is always 0 (left lights on for a hole day)
  3. The "Voltage" sensor does not work, always on 0V (in my case it should be 220V)

Screenshot 2024-01-14 133947 aqara

Steps to reproduce

Add WS-EUK04 to ZHA via coordinator. Look at added device in HA devices list.

Expected behavior

Expect each rocker(switch) to have a different name , ex: Switch1, Switch 2 or Switch L, Switch R. Expect "Summation delivered" sensor to show the sum of all power used. Expect "Voltage" sensor to show correct voltage, ex: 220V or 110V.

Screenshots/Video

Screenshots/Video ![Screenshot 2024-01-14 133947 aqara](https://github.com/zigpy/zha-device-handlers/assets/24811386/08da4e14-ec14-4024-9f65-0c1e9782feff)

Device signature

Device signature ```json { "node_descriptor": "NodeDescriptor(logical_type=, complex_descriptor_available=0, user_descriptor_available=0, reserved=0, aps_flags=0, frequency_band=, mac_capability_flags=, manufacturer_code=4447, maximum_buffer_size=127, maximum_incoming_transfer_size=100, server_mask=11264, maximum_outgoing_transfer_size=100, descriptor_capability_field=, *allocate_address=True, *is_alternate_pan_coordinator=False, *is_coordinator=False, *is_end_device=False, *is_full_function_device=True, *is_mains_powered=True, *is_receiver_on_when_idle=True, *is_router=True, *is_security_capable=False)", "endpoints": { "1": { "profile_id": "0x0104", "device_type": "0x0000", "input_clusters": [ "0x0000", "0x0002", "0x0003", "0x0004", "0x0005", "0x0006", "0x0009", "0x0012", "0x0702", "0x0b04", "0xfcc0" ], "output_clusters": [ "0x000a", "0x0019" ] }, "2": { "profile_id": "0x0104", "device_type": "0x0000", "input_clusters": [ "0x0000", "0x0003", "0x0004", "0x0005", "0x0006", "0x0012", "0xfcc0" ], "output_clusters": [] }, "21": { "profile_id": "0x0104", "device_type": "0x0100", "input_clusters": [ "0x000c" ], "output_clusters": [] }, "31": { "profile_id": "0x0104", "device_type": "0x0100", "input_clusters": [ "0x000c" ], "output_clusters": [] }, "41": { "profile_id": "0x0104", "device_type": "0x0100", "input_clusters": [ "0x0012" ], "output_clusters": [] }, "42": { "profile_id": "0x0104", "device_type": "0x0100", "input_clusters": [ "0x0012" ], "output_clusters": [] }, "51": { "profile_id": "0x0104", "device_type": "0x0100", "input_clusters": [ "0x0012" ], "output_clusters": [] }, "61": { "profile_id": "0x0104", "device_type": "0x0100", "input_clusters": [ "0x0012" ], "output_clusters": [] }, "242": { "profile_id": "0xa1e0", "device_type": "0x0061", "input_clusters": [], "output_clusters": [ "0x0021" ] } }, "manufacturer": "LUMI", "model": "lumi.switch.n2aeu1", "class": "zhaquirks.xiaomi.aqara.switch_h1_double.AqaraH1DoubleRockerSwitchWithNeutral4" } ```

Diagnostic information

Diagnostic information ```json [Paste the diagnostic information here] ```

Logs

Logs ```python [Paste the logs here] ```

Additional information

Was asked by @TheJulianJES (https://github.com/TheJulianJES) to open issue.

thedeemling commented 7 months ago

Also 4) The switch_mode attribute does not work and always returns None: image

This attribute disables the 500ms waiting period for events - enabling instantaneous single-click-only mode.

andrewolfy commented 6 months ago

Hi all,

I have home assistant Yellow Core 2024.2.3 Supervisor 2024.02.0 Operating System 11.5 Frontend 20240207.1

and I'm experience this dificultie for Aqara WS-EUK04 and also to Aqara WS-EUK03

image

image

As this solution been implemented in the new release?

baulaergrungim commented 3 months ago

I have the same issue on Aqara H1 double rocker with neutral image As per suggestion on Discord, I tiried reconfiguring it, and even removing and readding it, didn't help. I use SkyConnect's dongle and RPi5 in Supervisor as my HA server.

Maks1983 commented 3 months ago

+1

Cyruz143 commented 2 months ago

+1