Beta for Hysen thermostats powered by broadlink

Hello, any idea if the Hysen HY08WE-2-WIFI is compatible with Home Assistant using any integration?
The thermostat is setup with the Smart RM aplication and works, I have the MAC and IP address and I’m 100% sure they are correct.

I have tested the following:

None of them work “hysen integration” with this error:


Sorry don’t think it will, think it’s a later version and different protocol. Cloud control rather than local

@mpetcu
As it says in the link, HY08WE-2-WIFI is Tuya.
You can use Local Tuya integration.

Cheers,
us

1 Like

@FF-Fox thanks for sharing, appreciate. I was able to sort it but had to add the following:

On the week period temp setting add the following: this is new from the 2021.10.x versions

week_period1_temp: '{{states(''input_number.termtest_week_period1_temp'') | float(default=''none'')}}'

and on the Week period start this code also worked:

week_period1_start: '{{state_attr("input_datetime.termtest_week_period1_start","timestamp") | timestamp_custom("%H:%M",false)}}

My thermostats look like this now:

Hello. I want to connect to HA thermostat Beok tr9b.
When I check the server config after installation repository GitHub - mairas/hysen: Home-assistant support for Broadlink Hysen thermostat controllers I get the error:
“Invalid config for [climate.hysen]: [device] is an invalid option for [climate.hysen]. Check: climate.hysen->device. (See ?, line ?).”
Where could there be a mistake?

Does anyone receive warning messages in logs after updating home system to 2021.12.x?

Logger: homeassistant.helpers.entity
Source: helpers/entity.py:549
First occurred: 10:17:51 (1 occurrences)
Last logged: 10:17:51

Entity climate.termostato (<class 'custom_components.hysen.climate.HASS_Hysen_Climate_Device'>) implements device_state_attributes. Please report it to the custom component author.

I’ve opened this issue:

I also see another warning, but I’m not sure it’s hysen related:

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:74
First occurred: 10:17:53 (1 occurrences)
Last logged: 10:17:53

Detected code that uses str for device registry entry_type. This is deprecated and will stop working in Home Assistant 2022.3, it should be updated to use DeviceEntryType instead. Please report this issue.

Can anyone confirm the first or both warnings?

I get the error:
“Invalid config for [climate.hysen]: [device] is an invalid option for [climate.hysen]. Check: climate.hysen->device. (See ?, line ?).”
Where could there be a mistake?

@goodvin86 , it would be good idea to share your config. In the error message we can see the resulting error but not the code where the error ocurred

Published new version 2.2.3 hopefully works for all,(GitHub - mairas/hysen: Home-assistant support for Broadlink Hysen thermostat controllers)

2 Likes

Thanks for the new version. First warning has disappeared.
And I’m pretty sure that my second warning has no relation with hysen integration

Thanks for the answer. here is a piece of code from configuration.yaml:

climate:
    platform: hysen
    device:
        house_thermostat:
            name: House Thermostat
            host: 192.168.0.2
            mac: '8c:14:7d:67:c1:6b'

found an error: I need devices, but I wrote device

Hi did you get it working ? I got TR9B Wifi EP from Beok and can’t get it into HA. Here is my config:

climate:
  - platform: hysen
    devices:
      office_room_thermostat:
        name: Office Room Thermostat
        host: 10.10.1.162
        mac: '50:8A:06:BC:C6:81'

Hi does anyone else have a problem with this recently?
My thermostat entity is nowhere to be found, it has been working perfectly for ages.
No matter what i try i can’r get the actual thermostat entity to return.

We are waiting for a fix…

1 Like

Think I’ve fixed it if you want to grab new 2.3.0 version and confirm

2 Likes

Working great once again, thank you so much.

Hello, how can I set a schedule in the thermostat via hysen_set_time schedule if loop_mode mode is set: 2 (1234567) without weekend_period?

You can’t, just send values for the weekend periods as your loopmode setting will ignore them

is there a way to fix this?

Hi I downloaded the latest hysen code 2.3.1. It works great with HA 2022.4.7.
However, when I upgrade to 2022.5.x it seems non of my thermostats were found.
I tried rebooting but to no avail.

I am using Hassio.

Are there any config changes I need to do?
Thanks

I am getting this error in the logs

> 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

In running 2022.6.7 with hysen 2.3.1 and everything is good, are you getting any errors in the HA log