home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.24k stars 29.86k forks source link

After Core update to 2023.12.1 one of my Aqara switches (lumi.switch.n2aeu1) detected as light #105593

Closed Ic1k-Git closed 9 months ago

Ic1k-Git commented 9 months ago

The problem

As a title says after update (i tried twice) one of Aqara switches changes itself as light. It is Aqara Smart Wall Switch H1 EU (With Neutral, Double Rocker) detected as lumi.switch.n2aeu1. Wierd thing is I have two identical that behaves differently.

What version of Home Assistant Core has the issue?

core-2023.12.1

What was the last working version of Home Assistant Core?

core-2023.11.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ZHA

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zha

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 9 months ago

Hey there @dmulcahey, @adminiuga, @puddly, @thejulianjes, mind taking a look at this issue as it has been labeled with an integration (zha) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `zha` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign zha` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


zha documentation zha source (message by IssueLinks)

Hilleard commented 9 months ago

I am having the same issue with a bunch of my Aqara H1 switches.

I have noticed that the devices that are still displaying as switches now have power sensors showing and they have the quirk of zhaquirks.xiaomi.aqara.switch_h1_double.AqaraH1DoubleRockerSwitchWithNeutral

This quirk isn't shown on the devices that have changed over to lights.

SneakieGargamel commented 9 months ago

Also having problems with the H1 L2aeu1. Switch was unavailable after update. Tried to reset the switch but its not pairing correctly now. Configuring indefinitely. When i leave the configuring screen, it is added without controls.

TheJulianJES commented 9 months ago

The next patch release should include zha-quirks 0.0.108 which contains a fix for this (and similar issues reported on the quirks repo).

The issue is that some Aqara switches report slightly different signatures each time they're paired. One signature was accidentally removed in zha-quirks 0.0.107 (HA Core 2023.12.0) which caused the quirk to not apply. These quirks change the device type (not done in newer quirks anymore), but that's why another entity appeared.

HA Core 2023.12.4 should restore restore the previous/correct behavior.