Beta for Hysen thermostats powered by broadlink

@mark.carter
I have integrated the later broadlink into the hysenheating_device.

I have also tried to make your marriage life easier :wink: by adding operation state idle to be used with Alexa. I don’t have an Alexa so please, check that for me.

Cheers,
us

Hi, thanks for sharing your work, I could get my broadlink (chineese) thermostat controlled by my hass.io but now I’m moving to a home assistant installation (0.93.2) and seems that the component isn’t liked.

I got this message:
You are using a custom integration for hysenheating which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
And when trying to check the configuration I got:
Platform not found: climate.hysenheating

I put the custom_components folder at the same place where the file configuration.yaml is.
homeassistant/.homeassistant/custom_components/hysenheating

My code is:
*climate: *

    • platform: hysenheating*
  • name: Entrada*
  • host: 192.168.xx.xx*
  • mac: 34:EA:xx:xx:C5:xx*
  • timeout: 10*
  • scan_interval: 10*

Can you help me and tell what I’m doing wrong?

The message is normal. All custom components get this warning message.
Do you have any other message in log?
Another thing, use mac: ‘34:EA:xx:xx:C5:xx’ instead of mac: 34:EA:xx:xx:C5:xx

> - platform: hysenheating
>   name: Entrada
>   host: 192.168.xx.xx
>   mac: '34:EA:xx:xx:C5:xx'
>   timeout: 10
>   scan_interval: 10

Reboot the system and see if it works

Cheers,
us

1 Like

@uss, will do thanks :slight_smile:

Hi, I’m sorry, I tried that but no luck the thermostat isn’t recognized.
It’s weird but I got no errors written in the log, I’m not sure what I’m doing wrong
Sorry but I’m a noob here.

Let’s start from the beginning.
What was the last HA version you upgraded from to 0.93.2?
Was hysenheating working in that version?

1793/5000

Thanks for your understanding.
First of all I have a Raspberry pi with Hass.io installed.
The HASS.IO version is v0.93.1, the component works well at this point.
Then I have another PI, a pc pi orange with armbian and I installed home-assistant v0.93.2 in a Python Venv following this guide: [Installation - Home Assistant] ( Installation - Home Assistant)
I copied the configuration, yaml and custom_components of the other installation and then I receive only the warning message and the component is not recognized.
It is simply ignored, only the warning message regarding hysenheating was found.

2019-06-03 23:13:24 INFO (MainThread) [homeassistant.setup] The domain sensor configuration took 3.4 seconds.
2019-06-03 23:13:24 INFO (MainThread) [homeassistant.components.climate] Climate settings.generic_thermostat
2019-06-03 23:13:24 INFO (MainThread) [homeassistant.setup] The domain’s climate settings took 1.0 seconds.
2019-06-03 23:13:24 INFO (MainThread) [homeassistant.setup] The configuration of the zeroconf domain took 0.8 seconds.
2019-06-03 23:13:24 INFO (MainThread) [homeassistant.setup] Configuration of default_config
2019-06-03 23:13:24 INFO (MainThread) [homeassistant.setup] Domain configuration default_config took 0.0 seconds.
2019-06-03 23:13:24 INFO (MainThread) [homeassistant.bootstrap] Home Assistant initialized in 8.76s
2019-06-03 23:13:24 INFO (MainThread) [homeassistant.core] Startup Assistant

This time I only noticed that the loading of the components stopped loading on the component of the shaft and if I comment the hysenseheating platform, everything is loaded.

I regret not being more precise, but I hate that it does not show any error, it annoys me.
This occur when I try to restart Home Assistant thru the UI. It do not restart at all, I need to restart the service.

2019-06-03 23:51:55 INFO (MainThread) [homeassistant.components.generic_thermostat.climate] Obtained current and target temperature. Generic thermostat active. 25.2, 7.0
2019-06-03 23:53:10 INFO (SyncWorker_1) [homeassistant.loader] Loaded hysenheating from custom_components.hysenheating
2019-06-03 23:53:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hysenheating which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-06-03 23:54:26 ERROR (MainThread) [homeassistant.components.homeassistant] Platform not found: climate.hysenheating

Ah! notice that I have a generic_thermostat working fine. Made with an esp01 temp sensor and a switch.

  • platform: generic_thermostat
    name: Cuartito
    target_sensor: sensor.temp_01
    heater: switch.dummy_switch

Please, tell me what is the content of the config\custom_components\hysenheating\ folder

Here’s a snapshot:
image
Editted:
My custom_component folder is located at the same place as configuration.yaml file.
I tried to delete pycache also, but no luck.

Did you copy the last version of hysenheating from Github?

Yes I do.
I downloaded the github and copied it. I’ve downloaded it now again.

I’m not sure, but reading The great migration blog, seems that the directory structure is inverted, isn’t it?
See the notes for custom component developers.
What I understood is that directory structure may be “config”/custom_components/climate and into it the “platform”.py
I tried that structure, but fails loading integration due to missing setup.py

Of course, I’m not a developer and I can missunderstood it.

No. The structure is right. From The great migration blog:
Components are created in <config>/custom_components/<integration name>/
That is:
<config>/custom_components/hysenheating/
What is odd is, when you get the message:

2019-06-03 23:53:10 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hysenheating which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.

it actually means the component is installed.
It looks like the you have in configuration.yaml a hidden character where the climate platform hysenheating is.
Try to erase that part and write it again as follows:

climate:
  - platform: hysenheating
    name: Entrada
    host: 192.168.xx.xx
    mac: '34:EA:xx:xx:C5:xx'
    timeout: 10
    scan_interval: 10

watch out how many blanks you write before each line

Okay, you’re right I missunderstood the blog.

So I deleted the component in configuration.yaml and write it down again from the beginning.
Character by character, but nothing works.

What I will do is start everything from zero with other version of Home assistant,

I’ll come again and share what i find.

I’m here again…
Really I don’t know how but it’s working now.
Installed the same way, and now it works!!!
I’m really confused:

image

Thank you so much for this component. :clap:t3:

Im trying to make that work but unforunately dont know where to put sensors and switches as for the main config when i put it in configuration yaml I cant reach lovelace , sorry but I cannot fetch any error logs cause hassio homeassistant check doesnt respond for me any help to make that work ? I have 3 thermostats and I also used the components a member here wrote : https://github.com/uspass/hysenheating any ideas?

I have the TH12 thermostat from Floureon.

I’ve set up as per the above using the latest hysenheating config. The error messages I get are something regarding authentication:

'2019-06-23 13:13:07 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hysenheating which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-06-23 13:13:17 WARNING (MainThread) [homeassistant.components.climate] Setup of platform hysenheating is taking over 10 seconds.
2019-06-23 13:13:18 ERROR (MainThread) [custom_components.hysenheating.climate] [192.168.1.15] Device authentication error: timed out
2019-06-23 13:13:28 ERROR (MainThread) [custom_components.hysenheating.climate] [192.168.1.15] Error in get_device_status: timed out
2019-06-23 13:13:49 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.fleuron is taking over 10 seconds
2019-06-23 13:13:49 ERROR (MainThread) [custom_components.hysenheating.climate] [192.168.1.15] Device authentication error: timed out
2019-06-23 13:13:50 WARNING (MainThread) [homeassistant.components.climate] Updating hysenheating climate took longer than the scheduled update interval 0:00:10
2019-06-23 13:13:59 ERROR (MainThread) [custom_components.hysenheating.climate] [192.168.1.15] Error in get_device_status: timed out
2019-06-23 13:14:04 ERROR (MainThread) [custom_components.hysenheating.climate] [192.168.1.15] Error in set_temperature: timed out
2019-06-23 13:14:10 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.fleuron is taking over 10 seconds
2019-06-23 13:14:10 ERROR (MainThread) [custom_components.hysenheating.climate] [192.168.1.15] Device authentication error: timed out
2019-06-23 13:14:11 WARNING (MainThread) [homeassistant.components.climate] Updating hysenheating climate took longer than the scheduled update interval 0:00:10
2019-06-23 13:14:20 ERROR (MainThread) [custom_components.hysenheating.climate] [192.168.1.15] Error in get_device_status: timed out
2019-06-23 13:14:32 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.fleuron is taking over 10 seconds
2019-06-23 13:14:32 ERROR (MainThread) [custom_components.hysenheating.climate] [192.168.1.15] Device authentication error: timed out
2019-06-23 13:14:33 WARNING (MainThread) [homeassistant.components.climate] Updating hysenheating climate took longer than the scheduled update interval 0:00:100:

restart the system

I’m still getting errors. I’ve restarted everything.

019-06-23 20:37:21 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.fleuron is taking over 10 seconds
2019-06-23 20:37:21 ERROR (MainThread) [custom_components.hysenheating.climate] [192.168.1.4] Device authentication error: timed out

hello when I place the switch in switch.yaml and include it in configuration.yaml then I get these errors :

2019-06-25 17:30:44 WARNING (MainThread) [homeassistant.components.climate] Updating hysenheating climate took longer than the scheduled update interval 0:00:10

2019-06-25 17:30:53 ERROR (MainThread) [custom_components.hysenheating.climate] [192.168.x.xxx] Error in get_device_status: timed out

2019-06-25 17:31:05 WARNING (MainThread) [homeassistant.helpers.entity] Update of climate.hallway is taking over 10 seconds

2019-06-25 17:31:05 ERROR (MainThread) [custom_components.hysenheating.climate] [192.168.x.xxx] Device authentication error: timed out

2019-06-25 17:31:15 ERROR (MainThread) [custom_components.hysenheating.climate] [192.168.x.xxx] Error in get_device_status: timed out

You need to create a folder named custom_components in config.
In the custom_components folder, create a folder named hysenheating.
In the hysenheating folder, put the files from:
https://github.com/uspass/hysenheating/tree/master/config/custom_components/hysenheating .
In config folder put the file (climate.yaml) from:
https://github.com/uspass/hysenheating/blob/5665e6c47006df2d2f0190e676c99c57757047a7/config/climate.yaml .
Adapt this file to your needs (Name, IP, Mac address).
Add to configuration.yaml the following line:
climate: !include climate.yaml
Restart system.

Cheers,
us