cyberjunky / home-assistant-toon_climate

This component provides a climate device for rooted Toon thermostats.
MIT License
33 stars 8 forks source link

Climate integration for Toon thermostat not working since 2024 update #48

Closed BuurmanG closed 11 months ago

BuurmanG commented 11 months ago

It appears that the climate integration for Toon is not working after the 2024 update of home assistant. I have two instances of HA running.... both do have this problem....

cyberjunky commented 11 months ago

What do you experience? Any debug log messages?

BuurmanG commented 11 months ago

Not in the log.

cyberjunky commented 11 months ago

What is the issue exactly? I have no crystal bowl ;-)

BuurmanG commented 11 months ago

image

BuurmanG commented 11 months ago

image

Does above make sense?

cyberjunky commented 11 months ago

The deprecation messages are non impacted, and are put on the todo list to fix before 2025.1 version

The first error: setting up... for climate is a breaking one. Can you post the configuration you made for toon_climate? You can x.x.x.x the IP address if you want.

BuurmanG commented 11 months ago

climate:

Above worked fine until I have upgrade this morning...

cyberjunky commented 11 months ago

The config format in the code didn't change, and i can't really see if formatting is correct. Can you use the <> code button in the editor bar to format the config text? Also can you enable debug log and restart to see if that shows more specific errors? See here https://github.com/cyberjunky/home-assistant-toon_climate?tab=readme-ov-file#debugging on how to do that...

BuurmanG commented 11 months ago

image

BuurmanG commented 11 months ago

The config format in the code didn't change, and i can't really see if formatting is correct. Can you use the <> code button in the editor bar to format the config text? Also can you enable debug log and restart to see if that shows more specific errors? See here https://github.com/cyberjunky/home-assistant-toon_climate?tab=readme-ov-file#debugging on how to do that...

I will check this out...

BuurmanG commented 11 months ago

2023-12-28 13:28:48.334 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration toon_climate which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-12-28 13:29:08.058 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'openweathermap', 'script', 'ipp', 'upnp_availability', 'oralb', 'google_mail', 'scene', 'file_upload', 'input_select', 'homewizard', 'cast', 'dlna_dmr', 'proxmoxve', 'climate', 'counter', 'automation', 'hardware', 'google_translate', 'ibeacon', 'dlna_dms', 'device_automation', 'schedule', 'trace', 'default_config', 'esphome', 'cpuspeed', 'input_text', 'hue', 'philips_js', 'nuki', 'sems', 'reolink_cctv', 'twinkly', 'lovelace', 'workday', 'config', 'icloud', 'netgear', 'analytics', 'local_ip', 'search', 'brother', 'input_number', 'weather', 'sensor', 'stream', 'rdw', 'moon', 'influxdb', 'mobile_app', 'diagnostics', 'zha', 'sun', 'my', 'afvalinfo', 'rpi_power', 'ble_monitor', 'device_tracker', 'input_boolean', 'timer', 'template', 'ecowitt', 'radio_browser', 'local_calendar', 'anniversaries', 'tuya', 'wake_word', 'blueprint', 'auth', 'tag', 'profiler', 'persistent_notification', 'goodwe', 'alarmo', 'map', 'energy', 'nmap_tracker', 'utility_meter', 'group', 'zha_toolkit', 'reolink', 'forecast_solar', 'shell_command', 'history', 'input_datetime', 'systemmonitor', 'openmediavault', 'ffmpeg', 'garmin_connect', 'panel_custom', 'binary_sensor', 'themeparks', 'uptime', 'zone', 'tts', 'repairs', 'onboarding', 'image_upload', 'homeassistant_alerts', 'buienradar', 'logbook', 'conversation', 'knmi', 'application_credentials', 'switch_as_x', 'mqtt', 'input_button', 'hacs', 'mass', 'tasmota', 'raspberry_pi', 'ios', 'version', 'system_health', 'bluetooth_adapters', 'media_source', 'google_sheets', 'person', 'stt', 'iss', 'assist_pipeline', 'kodi'} 2023-12-28 13:29:08.112 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_HEAT was used from toon_climate, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.HEATING instead, please create a bug report at https://github.com/cyberjunky/home-assistant-toon_climate/issues 2023-12-28 13:29:08.120 WARNING (MainThread) [homeassistant.components.climate.const] CURRENT_HVAC_IDLE was used from toon_climate, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACAction.IDLE instead, please create a bug report at https://github.com/cyberjunky/home-assistant-toon_climate/issues 2023-12-28 13:29:08.127 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_AUTO was used from toon_climate, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.AUTO instead, please create a bug report at https://github.com/cyberjunky/home-assistant-toon_climate/issues 2023-12-28 13:29:08.133 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_HEAT was used from toon_climate, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.HEAT instead, please create a bug report at https://github.com/cyberjunky/home-assistant-toon_climate/issues 2023-12-28 13:29:08.140 WARNING (MainThread) [homeassistant.components.climate.const] HVAC_MODE_OFF was used from toon_climate, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.OFF instead, please create a bug report at https://github.com/cyberjunky/home-assistant-toon_climate/issues 2023-12-28 13:29:08.147 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_PRESET_MODE was used from toon_climate, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.PRESET_MODE instead, please create a bug report at https://github.com/cyberjunky/home-assistant-toon_climate/issues 2023-12-28 13:29:08.154 WARNING (MainThread) [homeassistant.components.climate.const] SUPPORT_TARGET_TEMPERATURE was used from toon_climate, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_TEMPERATURE instead, please create a bug report at https://github.com/cyberjunky/home-assistant-toon_climate/issues 2023-12-28 13:29:08.161 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from toon_climate, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/cyberjunky/home-assistant-toon_climate/issues 2023-12-28 13:29:08.163 INFO (MainThread) [homeassistant.setup] Setting up climate 2023-12-28 13:29:08.168 INFO (MainThread) [homeassistant.setup] Setup of domain climate took 0.0 seconds 2023-12-28 13:29:28.893 INFO (MainThread) [homeassistant.components.climate] Setting up toon_climate.climate 2023-12-28 13:29:28.898 INFO (MainThread) [custom_components.toon_climate.climate] Toon Thermostat: Supported hvac modes ['heat', 'auto']. Supported preset modes ['away', 'home', 'comfort', 'sleep', 'eco']. Temperature can be set between 6.0°C and 30.0°C 2023-12-28 13:29:28.930 DEBUG (MainThread) [custom_components.toon_climate.climate] Toon Thermostat: request 'getThermostatInfo' 2023-12-28 13:29:29.364 DEBUG (MainThread) [custom_components.toon_climate.climate] Data received from Toon Thermostat: {'result': 'ok', 'currentTemp': '1987', 'currentSetpoint': '2000', 'currentInternalBoilerSetpoint': '42', 'programState': '2', 'activeState': '-1', 'nextProgram': '1', 'nextState': '0', 'nextTime': '1703775600', 'nextSetpoint': '2050', 'randomConfigId': '1804289383', 'errorFound': '255', 'connection': '0', 'burnerInfo': '1', 'otCommError': '0', 'currentModulationLevel': '0'} 2023-12-28 13:29:29.385 ERROR (MainThread) [homeassistant.components.climate] Error adding entities for domain climate with platform toon_climate File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 333, in capability_attributes if ClimateEntityFeature.TARGET_HUMIDITY in supported_features: 2023-12-28 13:29:29.436 ERROR (MainThread) [homeassistant.components.climate] Error while setting up toon_climate platform for climate File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 333, in capability_attributes if ClimateEntityFeature.TARGET_HUMIDITY in supported_features: 2023-12-28 13:29:46.757 INFO (MainThread) [homeassistant.components.climate] Setting up mqtt.climate 2023-12-28 13:29:47.684 INFO (MainThread) [homeassistant.components.climate] Setting up tuya.climate 2023-12-28 13:29:58.284 INFO (MainThread) [homeassistant.components.climate] Setting up zha.climate

cyberjunky commented 11 months ago

Ah it seems related to this: 2023-12-28 13:29:29.385 ERROR (MainThread) [homeassistant.components.climate] Error adding entities for domain climate with platform toon_climate File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 333, in capability_attributes if ClimateEntityFeature.TARGET_HUMIDITY in supported_features: 2023-12-28 13:29:29.436 ERROR (MainThread) [homeassistant.components.climate] Error while setting up toon_climate platform for climate File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 333, in capability_attributes if ClimateEntityFeature.TARGET_HUMIDITY in supported_features:

Seems they changed something related in 2024, but TARGET_HUMIDITY is not used in my code, cannot find a related issue in homeassistant repository either/yet, will have a look at the changelog

cyberjunky commented 11 months ago

It's maybe just a beta version bug in home assistant 2024, are you on latest build? I will test later today.

cyberjunky commented 11 months ago

Confirmed that it is an incompatibility from my integration, and because there is no 'deprecation check' on this from HA it generates an error... I will try to fix it asap.. thanks for reporting!

BuurmanG commented 11 months ago

Thanks for the swift replies!

cyberjunky commented 11 months ago

https://github.com/home-assistant/core/issues/106555

cyberjunky commented 11 months ago

Can you test the update to 1.0.15? I tested as much as I could on HA 2023 and 2024b

BuurmanG commented 11 months ago

image

It appears to be working now! Thanks!

cyberjunky commented 11 months ago

Nice, how did you get the preset buttons display below it? I only see the mode ones (heat/auto)

BuurmanG commented 11 months ago

Just installed the new lovelace thermostat card and configured it with the feature-editor: image