Beta for Hysen thermostats powered by broadlink

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,


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?

Strange, I checked out the latest code from the master branch earlier. It definitely says 2.3.1.

Sorry, my bad. When I did a restore it overwritten the new file. It is working now. Thanks a lot.

lol np at all

Very nice , working very well but I wonder how I can see history graph directly on screen with :slight_smile: Main thermostat current temperature, Main Thermostat heating & Main Thermostat target temperature.
Also how to get all history data to Excel?

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?

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