Skip to content

[BUG] smart relays switch entity duplication issue after upgrading from HA 2026.1.3 to 2026.2 #4722

@cb2206

Description

@cb2206

Bug description

I have a bunch of Zigbee smart relays - two types:

1 channel (around 35 of these) - zhaquirks.tuya.ts000x.Switch_1G_Metering:

Image

4 channel (3 of these) - zhaquirks.tuya.ts000x.Switch_4G_GPP:

Image

After initially adding them to ZHA 6+ months ago, they showed up as lights. I changed the device type through configurations.yaml:

Image

This all worked fine from mid 2025 through all monthly HA updates until 2026.1.3. After upgrading from 2026.1.3 to 2026.2 last night, within each device the original switch entity I have been using the last 6+ months showed as unavailable and a new entity was created with the same name + “_2” at the end. As it was later at night when I noticed and our heating system is controlled by those relays, I restored the 2026.1.3 backup without taking additional logs/screenshots.

Is this a known issue? Anything I can do to prevent this from happening?

Steps to reproduce

Upgrade HA from 2026.1.3 to 2026.2

Expected behavior

not duplicating switch entities after upgrade

Screenshots/Video

see above

Diagnostics information

Diagnostics file from after the 2026.1.3 restore.

zha-01JPH0THWQ3ENQW67X0TD4Q1TY-_TZ3000_tqlv4ug4 TS0001-c5f4c7b9876eea9ffeec5c121da56d20.json

Device signature

Device signature
[Paste the device signature here]

Logs

Logs
[Paste the logs here]

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    possible bugPossible bug, yet to be confirmed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions