hoodox
July 5, 2022, 1:16pm
408
hoodox:
Logger: homeassistant.components.climate
> Source: components/climate/__init__.py:220
> Integration: Climate ([documentation](https://www.home-assistant.io/integrations/climate), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+climate%22))
> First occurred: 13:56:34 (2 occurrences)
> Last logged: 13:56:34
>
> * Error adding entities for domain climate with platform hysen
> * Error while setting up hysen platform for climate
>
> Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity await entity.add_to_platform_finish() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 810, in add_to_platform_finish self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 533, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 571, in _async_write_ha_state state = self._stringify_state(available) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in _stringify_state if (state := self.state) is None: File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 220, in state return HVACMode(self.hvac_mode).value File "/usr/local/lib/python3.9/enum.py", line 384, in __call__ return cls.__new__(cls, value) File "/usr/local/lib/python3.9/enum.py", line 702, in __new__ raise ve_exc ValueError: 'unavailable' is not a valid HVACMode
I am getting similar errors for all versions from 22022.5.0 to 2022.6.7. I am using HASSIO by the way. Not sure if its something to do with that.
This is my config climate.yaml (this uses include in the main config i.e. configurations.yaml has a line climate: !include climate.yaml
).
- platform: hysen
scan_interval: 15
devices:
reception1_thermostat:
name: "reception1_thermostat"
host: 192.168.1.80
mac: '78:0F:77:EB:CC:58'
update_timeout: 20
sync_clock_time_per_day: True
reception2_thermostat:
name: "reception2_thermostat"
host: 192.168.1.117
mac: '78:0F:77:EB:C2:06'
update_timeout: 20
sync_clock_time_per_day: True
kitchen_thermostat:
name: "kitchen_thermostat"
host: 192.168.1.192
mac: '78:0F:77:EB:C9:10'
update_timeout: 20
sync_clock_time_per_day: True
dinning_thermostat:
name: "dinning_thermostat"
host: 192.168.1.197
mac: '78:0F:77:EB:C2:56'
update_timeout: 20
sync_clock_time_per_day: True
groundshower_thermostat:
name: "groundshower_thermostat"
host: 192.168.1.217
mac: '78:0F:77:EB:D2:66'
update_timeout: 20
sync_clock_time_per_day: True
office_thermostat:
name: "office_thermostat"
host: 192.168.1.242
mac: '78:0F:77:EB:F5:39'
update_timeout: 20
sync_clock_time_per_day: True
masterbedroom_thermostat:
name: "masterbedroom_thermostat"
host: 192.168.1.56
mac: '78:0F:77:EB:C8:42'
update_timeout: 20
sync_clock_time_per_day: True
walkinwardrobe_thermostat:
name: "walkinwardrobe_thermostat"
host: 192.168.1.11
mac: '78:0F:77:EB:C3:CE'
update_timeout: 20
sync_clock_time_per_day: True
bathroom_thermostat:
name: "bathroom_thermostat"
host: 192.168.1.155
mac: '78:0F:77:FA:99:85'
update_timeout: 20
sync_clock_time_per_day: True
gym_thermostat:
name: "gym_thermostat"
host: 192.168.1.228
mac: '78:0F:77:EB:C5:34'
update_timeout: 20
sync_clock_time_per_day: True
gymshower_thermostat:
name: "gymshower_thermostat"
host: 192.168.1.172
mac: '78:0F:77:EB:C5:F3'
update_timeout: 20
sync_clock_time_per_day: True
boule_thermostat:
name: "boule_thermostat"
host: 192.168.1.227
mac: '78:0F:77:EB:ED:2C'
update_timeout: 20
sync_clock_time_per_day: True
kipper_thermostat:
name: "kipper_thermostat"
host: 192.168.1.29
mac: '78:0F:77:EB:C6:A2'
update_timeout: 20
sync_clock_time_per_day: True
zen_thermostat:
name: "zen_thermostat"
host: 192.168.1.39
mac: '78:0F:77:EB:CA:AB'
update_timeout: 20
sync_clock_time_per_day: True
zenshower_thermostat:
name: "zenshower_thermostat"
host: 192.168.1.225
mac: '78:0F:77:EB:F2:66'
update_timeout: 20
sync_clock_time_per_day: True
# - platform: badnest
# scan_interval: 10
Hi hoodox,
opened 08:54PM - 04 May 22 UTC
closed 01:44PM - 05 May 22 UTC
Hysen stopped working after latest update:
Logger: homeassistant.components… .climate
Source: components/climate/__init__.py:220
Integration: Climate (documentation, issues)
First occurred: 11:48:37 PM (2 occurrences)
Last logged: 11:48:37 PM
Error adding entities for domain climate with platform hysen
Error while setting up hysen platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 619, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 810, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 533, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 571, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 220, in state
return HVACMode(self.hvac_mode).value
File "/usr/local/lib/python3.9/enum.py", line 384, in __call__
return cls.__new__(cls, value)
File "/usr/local/lib/python3.9/enum.py", line 702, in __new__
raise ve_exc
ValueError: 'unavailable' is not a valid HVACMode
…
ValueError: ‘unavailable’ is not a valid HVACMode
Suggests you are not running the Hysen 2.3.1 code, as this was the problem addressed above?
hoodox
July 5, 2022, 1:38pm
410
Strange, I checked out the latest code from the master branch earlier. It definitely says 2.3.1.
hoodox
July 5, 2022, 2:39pm
411
Sorry, my bad. When I did a restore it overwritten the new file. It is working now. Thanks a lot.
oded
October 26, 2023, 9:05pm
413
Very nice , working very well but I wonder how I can see history graph directly on screen with Main thermostat current temperature, Main Thermostat heating & Main Thermostat target temperature.
Also how to get all history data to Excel?
meresgr
(meresgr)
December 20, 2023, 2:19pm
414
My basic config is working fine, but I am trying to get sensor outputs according to the documentation, in order to get some historic data.
Unfortunately, I cannot find the sensor in "Dev tools, States, Enities
Can anyone check what I am missing?
climate:
- platform: hysen
devices:
main_thermostat:
name: Main Thermostat
host: 192.168.1.144
mac: "34:EA:34:75:C7:A6"
target_temp_step: 0.5
target_temp_default: 17
#template sensors
sensor:
- platform: template
sensors:
main_thermostat_heating_state:
icon_template: mdi:fire
friendly_name: "Heating Demand"
value_template: "{% if states.climate.main_thermostat.attributes.heating_active == 1 %}On{% else %}Off{% endif %}"
Edit: Seemed to be a problem with my config.
Also changed this to a binary sensor
@mark.carter - Been using the integration for a while now, thank you so much!
I am not seeing any entries in the logbook, is this normal behaviour?
Luinorn
October 18, 2024, 8:54pm
416
Hi, is this integration still alive and maintained? I would like to install it but installation fails with message:
The version 36dab58 for this integration can not be used with HACS 2.0.1
I submitted a bug issue into the repository The version 36dab58 for this integration can not be used with HACS 2.0.1 · Issue #61 · mairas/hysen · GitHub