ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
336 stars 48 forks source link

All entities are unavailable after update #209

Closed adamchemiawppl closed 4 months ago

adamchemiawppl commented 4 months ago

Describe the bug After update all entities are missing/unavailable

To Reproduce Steps to reproduce the behavior: Update working setup 2023.9 to 2023.10 or 2024.2

Expected behavior After updating from 2023.9 to 2023.10 or 2024.2 my configuration stopped working. I read through readme and changelog - but found no indication of any breaking changes or any adjustments I'm expected to make.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

ScratMan commented 4 months ago

Could you please provide some logs ?

dexteria01 commented 4 months ago

Hi,

I am having the same issue, updated Smart Thermostat (PID) in HACS and it stopped working. I'm using HA in docker, 2024.2

Logger: homeassistant.components.climate Source: helpers/entity_platform.py:360 Integration: Climate (documentation, issues) First occurred: 16:37:21 (4 occurrences) Last logged: 16:37:21

Error while setting up smart_thermostat platform for climate Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 360, in _async_setup_platform await asyncio.shield(task) File "/config/custom_components/smart_thermostat/climate.py", line 192, in async_setup_platform smart_thermostat = SmartThermostat(**parameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/smart_thermostat/climate.py", line 288, in init self._support_flags |= ClimateEntityFeature.TURN_OFF ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/enum.py", line 784, in getattr raise AttributeError(name) from None AttributeError: TURN_OFF

image

thanks

Mark

ScratMan commented 4 months ago

It looks like it misses the ClimateEntityFeature from HA core. What are your Home Assistant release versions ? It seems this part is new in 2024.2.0

Edo78 commented 4 months ago

I just noticed this issue with 2024.1.5

UPDATE: on 2024.2.2 the issue is solved so I think it's something related to HA Core