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
70.02k stars 29.09k forks source link

All Trådfri switches got greyed out. #101543

Open dront242 opened 9 months ago

dront242 commented 9 months ago

The problem

Updated to 2023.10.0 yesterday. Since then I'm having serious trouble with the Trådfri integration. All things connected through the Trådfri gateway that are "binary" are now greyed out. Looking at them in the entity list HA tells me they're no longer available from the Trådfri integration. This is for example all Trådfri outlets and also Åskväder outlets. In other words, all switch entities has stopped working.

I've looked around and they're still possible to manage through IKEAs Home Smart 1 app and Google Home.

What version of Home Assistant Core has the issue?

2003.10.0

What was the last working version of Home Assistant Core?

The last previous version 2023.9.7?

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Trådfri

Link to integration documentation on our website

No response

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

tradfri documentation tradfri source

wim-bart commented 9 months ago

Integration is broken in 2023.10.0 and higher.

Must be corrected. Switches are renamed to sensor._battery or sensor._batterij (in Dutch).

I don’t know if it is due to 2023.10.0 or to a Hub firmware update.

kongjudas commented 9 months ago

Same here, but the switches seems to have kept their names. No new entities from hub. All lights are dead. EDIT: Everything came back suddenly. Can it be that the hubs are being upgraded?

Ovenlade commented 9 months ago

I had the same problem. After removing the intergration in HA and resetting my IKEA hub I could add and use the integration again.

All devices names remained the same, so I needn't to do anything else.

JacobWBos commented 9 months ago

I had the same problem. After removing the intergration in HA and resetting my IKEA hub I could add and use the integration again.

All devices names remained the same, so I needn't to do anything else.

Thanks, this worked fine!

niklasgisselman commented 9 months ago

I had the same problem. After removing the intergration in HA and resetting my IKEA hub I could add and use the integration again.

All devices names remained the same, so I needn't to do anything else.

What do you mean with resetting? Losing all devices or just restarting?

Ovenlade commented 9 months ago

I had the same problem. After removing the intergration in HA and resetting my IKEA hub I could add and use the integration again. All devices names remained the same, so I needn't to do anything else.

What do you mean with resetting? Losing all devices or just restarting?

disconnect power to the Hub, connect power again.

in Home assistant I just went to the intergration screen and removed the intergration.

dront242 commented 9 months ago

Didn't work for me... Instead of greyed out the binary switches went totally missing. Restoring backup

DuzAwe commented 9 months ago

This happened to me as well. Re-adding the integration fixed the issue. I did not remove it before adding it again. I did reboot the hub to make it work.

sldewit commented 9 months ago

Had the same problem here after update to version 2023.10.3. But after rebooting the gateway and reloading the integration it all worked again.

LDEelco commented 9 months ago

Updated to 2023.10.3 and rebooted the gateway and reloaded the integration but switches keep grey. Running a Virtualbox machine on Windows 11. Current versions where it works for me: Home Assistant 2023.9.2 Supervisor 2023.10.0 Operating System 11.0 Frontend-versie: 20230911.0 - latest Hope this helps.

wim-bart commented 9 months ago

Updated to 2023.10.3 and rebooted the gateway and reloaded the integration but switches keep grey. Running a Virtualbox machine on Windows 11. Current versions where it works for me: Home Assistant 2023.9.2 Supervisor 2023.10.0 Operating System 11.0 Frontend-versie: 20230911.0 - latest Hope this helps.

The switches are renamed in the integration to sensor.switchname_battery or sensor.switchname_batterij depending on the language of your ha/Tradific setup.

I think it is a IKEA issue after a firmware update or something like that.

dront242 commented 9 months ago

Just to clarify. This issue regards equipment called "switches" in HA but "outlets" in real life. The battery issue is regarding "sensors" in HA which in real life is called "switches", "dimmers" or "buttons".

I sense it's a mixup in these two issues because of the word "switches" meaning two different things.

wim-bart commented 8 months ago

Just to clarify. This issue regards equipment called "switches" in HA but "outlets" in real life. The battery issue is regarding "sensors" in HA which in real life is called "switches", "dimmers" or "buttons".

I sense it's a mixup in these two issues because of the word "switches" meaning two different things.

Lamps = light.name Outlets = switch.name (that is the white thing to switch some non intelligent thing on and off) Buttons and motion sensor = sensor.name_battery battery only How other

issue-triage-workflows[bot] commented 5 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

kempd commented 5 months ago

This issue is still randomly popping up.

DuzAwe commented 5 months ago

Woke up this morning to This entity is no longer being provided by the tradfri integration. If the entity is no longer in use, delete it in settings. on al of my bulbs

home-assistant_tradfri_2024-02-14T09-27-07.236Z.log home-assistant_tradfri_2024-02-14T09-04-50.367Z.log

jnow commented 4 months ago

Hello, I can confirm the same issue since yesterday. I made an update of the IKEA Gateway to 1.21.31 which I GUESS is the reason. I had several issues in HA with Tradfri entities. I removed the TRADFRI Integration and reinstalled in HA. Now everything works normal (Bulbs, power sockets) despite that all switches are gone. I have HA 2024.2.3 installed running in Docker on a Synology.

felixmueller commented 2 months ago

Hello everyone, I'm having the same issue starting a few days ago. I think it started with HA Core 2024.5.x. My Gateway is also on firmware version 1.21.31, but all my battery sensors were working fine until 2024.5.x.

Here is an excerpt of the log:

Logger: homeassistant.components.sensor Quelle: helpers/entity_platform.py:356 Integration: Sensor (Dokumentation, Probleme) Erstmals aufgetreten: 09:30:24 (1 Vorkommnisse) Zuletzt protokolliert: 09:30:24

Error while setting up tradfri platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 356, in _async_setup_platform await asyncio.shield(awaitable) File "/usr/src/homeassistant/homeassistant/components/tradfri/sensor.py", line 162, in async_setup_entry TradfriSensor( File "/usr/src/homeassistant/homeassistant/components/tradfri/sensor.py", line 186, in init super().init( File "/usr/src/homeassistant/homeassistant/components/tradfri/base_class.py", line 65, in init sw_version=info.firmware_version, ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pytradfri/device/init.py", line 177, in firmware_version return self.raw[ATTR_DEVICE_FIRMWARE_VERSION]


KeyError: '3'
felixmueller commented 2 months ago

Update: today all battery sensors suddenly came back to life without altering anything ¯\_(ツ)_/¯

tradfri-batteries
dstapp commented 1 month ago

Same here. Everything works except for tradfri integration devices. I'm on HaOS 12.3 and HA Core 2024.5.5, but it at least appened with the last two core releases as well.