jmcollin78 / versatile_thermostat

A full featured Thermostat for Home Assistant: presets, window, motion, presence and overpowering management
MIT License
257 stars 25 forks source link

Entities unknown #443

Closed tbrasser closed 2 months ago

tbrasser commented 2 months ago

Version of the custom_component

Latest

Configuration

My VTherm attributes are the following:

hvac_modes: []
min_temp: 15
max_temp: 25
target_temp_step: 0.5
current_temperature: null
temperature: null
icon: phu:aqara-thermo-e1
friendly_name: Badkamer
supported_features: 385

If it is releveant to regulation performance or optimisation some curves are needed

To have a great curves demonstrating what you think is a problem, please install and configure what is described here: Even better with Plotly to tune your Thermostat

Describe the bug

A clear and concise description of what the bug is.

I'm trying to:

Donanything

And I expect:

But I observe this ....

I read the documentation on the README.md file and I don't find any relevant information about this issue.

Debug log

Logger: homeassistant Bron: components/climate/init.py:328 Eerst voorgekomen: 11:09:12 (2 gebeurtenissen) Laatst gelogd: 11:09:12

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/versatile_thermostat/base_thermostat.py", line 1460, in _async_temperature_changed self.recalculate() File "/config/custom_components/versatile_thermostat/thermostat_climate.py", line 552, in recalculate self.update_custom_attributes() File "/config/custom_components/versatile_thermostat/thermostat_climate.py", line 539, in update_custom_attributes self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 998, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1119, in _async_write_ha_state state, attr, capabilities, shadowed_attr = self.async_calculate_state() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1051, in async_calculate_state capability_attr = self.capability_attributes ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 328, in getattribute return super().getattribute(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 501, in capability_attributes data[ATTR_PRESET_MODES] = self.preset_modes ^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 328, in getattribute return super().getattribute(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/versatile_thermostat/base_thermostat.py", line 1141, in preset_modes return self._attr_preset_modes ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 328, in getattribute return super().getattribute(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 328, in getattribute return super().getattribute(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ThermostatOverClimate' object has no attribute 'attr_preset_modes'. Did you mean: 'attr_preset_mode'?

Deze fout is ontstaan door een aangepaste integratie.

Logger: homeassistant Bron: custom_components/versatile_thermostat/thermostat_climate.py:213 integratie: Versatile Thermostat (documentatie, problemen) Eerst voorgekomen: 11:09:11 (1 gebeurtenissen) Laatst gelogd: 11:09:11

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/config/custom_components/versatile_thermostat/init.py", line 109, in _async_startup_internal await api.init_vtherm_links() File "/config/custom_components/versatile_thermostat/vtherm_api.py", line 178, in init_vtherm_links await entity.async_startup(self.find_central_configuration()) File "/config/custom_components/versatile_thermostat/base_thermostat.py", line 664, in async_startup await self.get_my_previous_state() File "/config/custom_components/versatile_thermostat/base_thermostat.py", line 839, in get_my_previous_state await self._async_internal_set_temperature( File "/config/custom_components/versatile_thermostat/thermostat_climate.py", line 140, in _async_internal_set_temperature await self._send_regulated_temperature(force=True) File "/config/custom_components/versatile_thermostat/thermostat_climate.py", line 213, in _send_regulated_temperature and self.target_temperature > self.current_temperature ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: '>' not supported between instances of 'float' and 'NoneType'

logger:
    default: info
    logs:
        custom_components.versatile_thermostat: info

Add your logs here.
jmcollin78 commented 2 months ago

Hello @tbrasser ,

Is it just at startup or still in normal use ? If it is only at startup this not a real problem and can be ignored. Else it is a real issue that should not occurs.

tbrasser commented 2 months ago

I removed and reinstalled everything (including scrubbing .storage ) and now it seems to work pretty okay but there is still some bug with startup. I have to configure and modify 1 entry for everything to come up correctly.

I'm also seeing this behaviour with the custom integration magic_areas so I suspect a change in HA startup/loading/config/climate happened.

It only seems to be not correct initially on vtherm-over-climate , my vtherm-over-switch is not showing the issue.

jmcollin78 commented 2 months ago

Yes, with type over_climate VTherm need that the underlying climate is initialized. So there may be some temporary errors that could be ignored after the complete startup. I will keep the issue open for a while, don't hesitate to add more info if needed

tbrasser commented 2 months ago

Just updated to your latest version and everything came up properly, will update here if anything strange happens again.

tbrasser commented 2 months ago

Well, now I cant set anything anymore...

Screenshot_2024-04-16-14-06-58-947_io.homeassistant.companion.android.jpg

Screenshot_2024-04-16-14-12-41-019_io.homeassistant.companion.android.jpg

Everytime I change something it resets to before

jmcollin78 commented 2 months ago

Do you have logs and the attributes of your VTherm (not the attributes of the underlying as in your first post) ?

tbrasser commented 2 months ago

Actually those were the vtherm attributes :(

I downgraded to 6.1.0 and things work okay now.