Wifi thermostat (Beok, Floureon, Beca Energy) component

That good news. I’m running 0.92.2 “only”, will be upgrading to 93 soon.
Have you created a manifest.json and did you add the “DOMAIN” directive in the __init.py__ ? I’m still not sure if they’re needed and what for !!

Not necesary for me do it, I only update version broadlink.py of march '19 and rename to beok and work fine

I have those two, 0.93.1 working fine. I don’t get what they’re for, nevermind !
Important thing is, this component is still amazing :+1:

It was quite easy actually: just need to edit a file in your system. I’m running Hass.io and the file to edit is here:

/config/deps/lib/python3.7/site-packages/BroadlinkWifiThermostat/__init__.py

Just change line 45 from:

            device.set_time(now.hour, now.minute, now.second, now.weekday())

to

            device.set_time(now.hour, now.minute, now.second, now.weekday()+1)

It did the trick.

Worked for me coming from a working 91.x to 93.2

as in under the tee/mo/custom_component/broadlink/
to
tee/mo/custom_component/beok/

1 Like

I had to rename it with beok or i have “component not found”

2019-05-26 09:45:16 ERROR (MainThread) [homeassistant.components.climate] Error while setting up platform beok
Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py”, line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 416, in wait_for
return fut.result()
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/beok/climate.py”, line 93, in setup_platform
import BroadlinkWifiThermostat
ModuleNotFoundError: No module named ‘BroadlinkWifiThermostat’

Any idea? I’m using the latest pr, the file are in the right directory and this is my configuration.yaml Entry:
climate:

  • platform: beok
    friendly_name: Termostato
    mac: “78:0F:77:FA:AD:01”
    host: “192.168.1.243”

THANKS!!!
ps the home assistant is the latest version aviable

Do you have the BroadlinkWifiThermostat-2.4.1.dist-info and BroadlinkWifiThermostat folders in your HA library installation ?
On my ubuntu system, it’s in /usr/homeassistant/lib/python3.6/site-packages

i don’t know!! i’m using hass.os in a virtual machine! I can’t find the folder you say!

Let’s hope someone can tell where those libraries are on hass.os, because I guess there are libraries missing (or path to the libraries missing).

Just thought I’d check in and see how your getting on with the PR?

The libs doesn’t missing. By updating hassio to 0.94 you need to include the libs by the manifest.json file (inside the thermostate component folder).

It looks like this code in climate.py doesnt include the libs anymore in home assistant 0.94:
REQUIREMENTS = ['broadlink==0.9.0', 'BroadlinkWifiThermostat==2.4.0']

So includes them by the manifest.json file (see below requirements):

{
      "domain": "bot313",
      "name": "bot313",
      "documentation": "https://www.home-assistant.io/components/bot313",
      "requirements": [
    	"broadlink==0.9.0",
    	"BroadlinkWifiThermostat==2.4.0"
      ],
      "dependencies": [],
      "codeowners": []
    }

My file structure:

  • custom_components
    – bot313
    ---- climate.py
    ---- manifest.json

Broken with the upgrade to 0.95

message=The following components and platforms could not be set up:

[climate.hysenheating](https://home-assistant.io/components/climate.hysenheating/)

Forget that - had to change the config from friendly name to name - looks like old warnings are now enforced

Can I confirm that this is broken in 0.96 due to the new Climate cleanup?

I don’t know, can you ?

I’ve not take the plunge get.

I can confirm :slight_smile:
I will try and have a look at the code today (although I’m not great at coding ;-))

Confirmed for me it’s not working in 0.96

If the little one has a nap I’ll do a test upgrade and see if I can figure out what needs to change (well try)

1 Like

Strange i get no error at all !
2019-07-22 07:55:39 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for beok 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.

Thanks all i got, i’ll review the pull request https://github.com/home-assistant/home-assistant/pull/23899
and see if i can bash my head on it …

Edit
Without an error code I’m rather lost.

1 Like

Same with me on 0.96.5

2019-07-26 10:20:46 WARNING (MainThread) [homeassistant.loader] 
You are using a custom integration for beok 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.