I just upgraded Hassbian to 0.56.0 and now none of my automations work. I narrowed it down to the fact that for some reason in 0.56.0 it is ignoring the names I have given devices in the configuration. so here is an example of the configuration for a light switch:
Now when I look at the logs this is what it shows when I turn that switch on:
[homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state switch.unnamed_device_2=on; friendly_name=Side Door Switch âŚ
So why is it calling it âswitch.unnamed_device_2â now instead of âswitch.sidedoorâ? Note that this worked perfectly before I upgraded.
Edit: I should mention that all my automatons involve Tp-link switches/plugs
Looks there were two changes to HA relating to TP-link switches recently:
In 0.56: switch.tplink, light.tplink: bump the pyhs100 version and adapt to api changes (@rytilahti - #9454)
In 0.55: TP-Link Switch: Attribute names now uses underscores and unnecessary capitalization was removed. (@djchen - #9607)
Not sure which of these broke it because I never installed 0.55. How would one go about reporting this bug to the people that made these changes? Iâm not familiar with the process there
Just tried it and it made no difference unfortunately. Now says it is âswitch.unnamed_device_5â. The number at the end seems to change every time home assistant is started
It just says âfriendly_name: Side Door Switchâ and the state is off
It seems to now be pulling the âfriendly_nameâ from what I named it in the tp-link kasa app rather than what I named it in the configuration.
I think the problem is here, PR# 9454 in homeassistant/components/switch/tplink.py. This stuff was taken out in the init section:
- # Use the name set on the device if not set
- if name is None:
- self._name = self.smartplug.alias
- else:
- self._name = name
and replaced with:
+ self._name = None
then later, this was added in the update routine:
+ if self._name is None:
+ self._name = self.smartplug.alias
So - what it looks like is happening is that the name set in configuration.yaml is always ignored. Maybe this can be fixed by rolling back the change in the init sectionâŚ
All my Sonos devices have been renamed since the .56 update
media_player.unnamed_device playing
media_player.unnamed_device_2 playing
media_player.unnamed_device_3 playing
media_player.unnamed_device_5
Confirmed 0.56.1 fixes the unnamed devices problem. But heads up for others with the tp-link problem, the name of the devices are now based on what you name them in Kasa and not based on what you name them in the configuration.yaml. So youâll need to update your automations and groups to reflect the new names.
Iâve updated to 0.56.2 and my TP-Link switches are still unnamed. Iâve also noticed that on reboot the unnamed sequence of devices would be shuffled even though the switches are assigned static IPs by the router.
TP-Link component documentation is still not updated too.