Core: Ikea Signal Repeaters under ZHA lost user given name/area in 0.110

Created on 22 May 2020  路  17Comments  路  Source: home-assistant/core

The problem


I have 5 Ikea Signal Repeaters in my ZHA network. each had a user given name and area set. With 0.110 that name is gone, and the areas have been lost. Attempting to rename or add them to an area does not stick either.

repeater-naming

Environment

  • Home Assistant Core release with the issue:
  • Last working Home Assistant Core release (if known): 0.109.x
  • Operating environment (Home Assistant/Supervised/Docker/venv): Supervised
  • Integration causing this issue:
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml


Traceback/Error logs


Additional information

These zigbee devices do not have any entities. maybe related to #35106 ?

core core zha

Most helpful comment

All 17 comments

Hey there @dmulcahey, @adminiuga, mind taking a look at this issue as its been labeled with a integration (zha) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

i'm seeing similar behavior in 0.110.0 with lutron connected bulb remotes. they are handled by https://github.com/zigpy/zha-device-handlers

they do not have entities - only device entries - so #35106 was deleting them upon startup. they disappeared from all automations and the devices page after upgrading to 0.110.0.

i re-paired all of them, and i was able to use them until restarting HA. they then disappeared from all automations and the devices page.

i've reverted #35106 locally for the time being, which allows the lutron zigbee remotes to survive a restart of home assistant.

@balloob, were devices without entities like these zigbee remotes/repeaters considered when making the change? i guess adding entities would need to be done by the zha integration?

@dmulcahey is it because the device_registry is not updated with config_entry id, unless there are entities present? Nah, we do update device registry regardless of the entities

@tube0013 does the name dis-appear after a reboot or does not stick at all?

The name and area sticks on my repeater, but it was freshly added and not migrated. Waiting for OTA to complete and trying to reboot

It doesn鈥檛 ever stick. I can鈥檛 give it a user given name at all. As soon as I leave the device details page on the zha config panel it is gone. I鈥檒l restart again in a bit but restarted a bunch last night and didn鈥檛 see any difference.

it sticks in the current dev
image

But area is not displayed correctly in ZHA device page
image

and it's gone after a reboot
image

unrelated question. The latest firmware on Tradfri is Zigbee 3, isn't it? Does it still drop old xiaomi devices if paired through it?

But I'm positive this is related to https://github.com/home-assistant/core/pull/35106 as in my case those disappear after a reboot

Not that I鈥檝e noticed. I have a few xiaomi devices that drop but can never remember where they were paired.

I'm tagging this for core and open for suggestiosn.
Synopsis: ZHA integration has a corner case for "Ikea Signal Repeaters" which is a Zigbee device but it does not have any entities. Since it doesn't have any entities, with https://github.com/home-assistant/core/pull/35106 it is getting clean-up automatically -- not expected user experience for those who gave it a specific device name and zone assignment

per #35106 device will be cleaned up if "no config entries reference them". In this case ZHA config entry still references it, no? https://github.com/home-assistant/core/blob/0514960bda07b9d503efaf3d0482ece66b849342/homeassistant/components/zha/core/gateway.py#L461-L468 Why is it still being clean-ed up? what am i missing?

This case was not considered and we should disable that check in a hot fix.

35977 did indeed fix it, thanks.

Excellent. Closing this one as the fix should be in 0.110.2

Was this page helpful?
0 / 5 - 0 ratings