Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broken climate in v5.2.2 #1787

Open
zenguru84 opened this issue Sep 9, 2024 · 6 comments · Fixed by pando85/localtuya#3 · May be fixed by #1822
Open

broken climate in v5.2.2 #1787

zenguru84 opened this issue Sep 9, 2024 · 6 comments · Fixed by pando85/localtuya#3 · May be fixed by #1822
Labels
bug Something isn't working

Comments

@zenguru84
Copy link

climate is broken in v5.2.2
i have 8 Avatto ME81H thermostats, al "unavailable" after update.
reverted to v5.2.1, all working fine again.

i have tried to reconfigure one thermostat under v5.2.2, it showed up, but it was uncontrollable.

Core 2024.9.1
Supervisor 2024.08.0
Operating System 13.1
running as proxmox vm.

@zenguru84 zenguru84 added the bug Something isn't working label Sep 9, 2024
@Bezzaee
Copy link

Bezzaee commented Sep 11, 2024

Same issue, here is my log. Seems to be an issue importing default values:

ERROR (MainThread) [homeassistant.components.climate] Error adding entity None for domain climate with platform localtuya
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 598, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 816, in _async_add_entity
capabilities=entity.capability_attributes,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 323, in getattribute
return super().getattribute(__name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 495, in capability_attributes
ATTR_MIN_TEMP: show_temp(hass, self.min_temp, temperature_unit, precision),
^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 323, in getattribute
return super().getattribute(__name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/localtuya/climate.py", line 427, in min_temp
return self._config[CONF_TEMP_MIN]
~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'min_temperature_const'

@proosth
Copy link

proosth commented Sep 11, 2024

I have the same problem with 3x Magnum thermostats

@ksandig
Copy link

ksandig commented Sep 11, 2024

Same issue with two "Decdeal WLAN Thermostat" (Amazon)

Error adding entity None for domain climate with platform localtuya
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 595, in _async_add_entities
await coro
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 813, in _async_add_entity
capabilities=entity.capability_attributes,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 323, in getattribute
return super().getattribute(__name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 495, in capability_attributes
ATTR_MIN_TEMP: show_temp(hass, self.min_temp, temperature_unit, precision),
^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 323, in getattribute
return super().getattribute(__name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/localtuya/climate.py", line 427, in min_temp
return self._config[CONF_TEMP_MIN]
~~~~~~~~~~~~^^^^^^^^^^^^^^^
KeyError: 'min_temperature_const'

@DeeSaR47
Copy link

Same issue with two "Danyon Split AC Devices" after update to v5.2.2 they are "unavailable".
Restored Backup with v5.2.1 everything ist working again.

@Kydonakis
Copy link

Any progress on this one guys? Or we will stick to 5.2.1 forever?

Thanks for the support.

pando85 added a commit to pando85/localtuya that referenced this issue Oct 14, 2024
pando85 added a commit to pando85/localtuya that referenced this issue Oct 14, 2024
@proosth
Copy link

proosth commented Oct 18, 2024

I can confirm that this has solved the problem. Thank you for your work on this issue!

pando85 added a commit to pando85/localtuya that referenced this issue Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
6 participants