core: Samsung thermostat entities unavailable after update to 2023.12
The problem
After upgrading to 2023.12 the entities for my Samsun airconditioners show the following for the thermostat entity (i.e. climate.studyaircon): This entity is no longer being provided by the smartthings integration. If the entity is no longer in use, delete it in settings.
What version of Home Assistant Core has the issue?
core-2023.12.0
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
SmartThings
Link to integration documentation on our website
https://www.home-assistant.io/integrations/smartthings/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
2023-12-07 21:47:01.718 ERROR (MainThread) [homeassistant.components.climate] Error while setting up smartthings platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/smartthings/climate.py", line 117, in async_setup_entry
entities.append(SmartThingsAirConditioner(device))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/smartthings/climate.py", line 351, in __init__
self._attr_swing_modes = self._determine_swing_modes()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/smartthings/climate.py", line 505, in _determine_swing_modes
supported_swings = [
^
TypeError: 'NoneType' object is not iterable
2023-12-07 22:01:36.573 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.value }}'
2023-12-07 22:01:36.574 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.value }}'
2023-12-07 22:01:36.577 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.value }}'
2023-12-07 22:01:36.578 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.value }}'
2023-12-07 22:01:36.658 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.value|round(1) }}'
2023-12-07 22:01:36.659 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.value|round(1) }}'
2023-12-07 22:01:36.666 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.value }}'
2023-12-07 22:01:36.675 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.value }}'
2023-12-07 22:01:36.678 ERROR (MainThread) [homeassistant.helpers.template] Template variable error: 'value_json' is undefined when rendering '{{ value_json.value }}'
2023-12-07 22:11:28.547 ERROR (MainThread) [homeassistant.components.climate] Error while setting up smartthings platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/smartthings/climate.py", line 117, in async_setup_entry
entities.append(SmartThingsAirConditioner(device))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/smartthings/climate.py", line 351, in __init__
self._attr_swing_modes = self._determine_swing_modes()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/smartthings/climate.py", line 505, in _determine_swing_modes
supported_swings = [
^
TypeError: 'NoneType' object is not iterable
2023-12-07 22:11:36.937 DEBUG (MainThread) [homeassistant.components.smartthings.smartapp] Synchronizing subscriptions for 17 capabilities under app '0e9cce4a-4754-4748-9191-b1caecd5d712': {'dustSensor', 'airQualitySensor', 'mediaInputSource', 'switch', 'demandResponseLoadControl', 'tvChannel', 'relativeHumidityMeasurement', 'audioVolume', 'mediaPlayback', 'odorSensor', 'fanOscillationMode', 'airConditionerMode', 'airConditionerFanMode', 'thermostatCoolingSetpoint', 'audioMute', 'powerConsumptionReport', 'temperatureMeasurement'}
2023-12-07 22:11:37.148 DEBUG (MainThread) [homeassistant.components.smartthings.smartapp] Subscriptions for app '0e9cce4a-4754-4748-9191-b1caecd5d712' are up-to-date
2023-12-07 22:11:37.156 ERROR (MainThread) [homeassistant.components.climate] Error while setting up smartthings platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 361, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/smartthings/climate.py", line 117, in async_setup_entry
entities.append(SmartThingsAirConditioner(device))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/smartthings/climate.py", line 351, in __init__
self._attr_swing_modes = self._determine_swing_modes()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/smartthings/climate.py", line 505, in _determine_swing_modes
supported_swings = [
^
TypeError: 'NoneType' object is not iterable
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 17 (3 by maintainers)
hi, the 12.1 update didn’t solve the problem for me. I hope for a solution, thanks!
I can confirm that updating to 12.1 did not fix the climate entity bug. It still gave me unavailable entity.
The problem was with AC with WIND FREE mode, it was fixed in https://github.com/home-assistant/core/pull/105375 and will be available in version 2023.12.2
Good morning, I confirm that even when installing 12.1 the problem persists.
Hello, when installing 12.1, the entity A/C appeared again. So me this was a fix
@Jens-Wymeersch 2023.12.1
Fixed in https://github.com/home-assistant/core/pull/105205?notification_referrer_id=NT_kwDOABghB7I4Njc5NjYwMDU5OjE1ODEzMTk#event-11184520578