New Broadlink SP2/SP3/SP3S controller

Hi

I wonder if your HA is in some safe state that does not allow custom addons. Also the exact location /config/custom_components applies only to hass.io; other versions may require different location.

About TC2, isn’t that a 433 MHz device that is supposed to be controlled using Broadlink remote? Or is it also WiFi connected? To my experience, all unidirectional 433 MHz devices are more or less good for landfill but not much else.

20-04-13 15:35:18 INFO (MainThread) [supervisor.store.git] Update add-on github.com/home-assistant/hassio-addons repository
20-04-13 15:35:18 INFO (MainThread) [supervisor.store.git] Update add-on github.com/rinne/broadlink-hub-hass-component.git repository
20-04-13 15:35:18 INFO (MainThread) [supervisor.store.git] Update add-on github.com/hassio-addons/repository repository
20-04-13 15:35:20 ERROR (MainThread) [supervisor.utils.json] Can't read json from /data/addons/git/2555fc69/repository.json: [Errno 2] No such file or directory: '/data/addons/git/2555fc69/repository.json'
20-04-13 15:35:20 WARNING (MainThread) [supervisor.store.data] Can't read repository information from /data/addons/git/2555fc69/repository.json
20-04-13 15:35:20 INFO (MainThread) [supervisor.store] Load add-ons from store: 65 all - 0 new - 0 remove
20-04-13 15:41:58 INFO (MainThread) [supervisor.host.info] Update local host information
20-04-13 15:41:58 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
20-04-13 15:41:58 INFO (MainThread) [supervisor.host.services] Update service information
20-04-13 15:41:58 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
20-04-13 15:41:59 INFO (MainThread) [supervisor.host.network] Update local network DNS information
20-04-13 15:41:59 INFO (MainThread) [supervisor.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/NetworkManager/DnsManager
20-04-13 15:41:59 INFO (MainThread) [supervisor.host.sound] Update PulseAudio information
20-04-13 16:35:18 INFO (MainThread) [supervisor.updater] Fetch update data from version.home-assistant.io/stable.json
20-04-13 17:23:21 INFO (MainThread) [supervisor.store.git] Update add-on github.com/rinne/broadlink-hub-hass-component.git repository
20-04-13 17:23:21 INFO (MainThread) [supervisor.store.git] Update add-on github.com/home-assistant/hassio-addons repository
20-04-13 17:23:21 INFO (MainThread) [supervisor.store.git] Update add-on github.com/hassio-addons/repository repository
20-04-13 17:23:23 ERROR (MainThread) [supervisor.utils.json] Can't read json from /data/addons/git/2555fc69/repository.json: [Errno 2] No such file or directory: '/data/addons/git/2555fc69/repository.json'
20-04-13 17:23:23 WARNING (MainThread) [supervisor.store.data] Can't read repository information from /data/addons/git/2555fc69/repository.json
20-04-13 17:23:23 INFO (MainThread) [supervisor.store] Load add-ons from store: 65 all - 0 new - 0 remove

Yes rf working with tc2 433mhz

I try to remove it and try again.

I think you are trying to add the broadlink addon as a addon store repo. It is not such a repo but instead a single addon. It must be cloned or copied into the system manually as described in the readme.

I am very interested, also for TC2.

Usually hassio addon just need to put address in add on stores. Why do we need to ssh?

TC2 are the best solution if you don’t have neutral at your dumb switch

As you can see in the picture, I installed at zero, renewed many times, restarted. but custom_addons die does not come an episode. Broadlink plugin is not visible.
I tried to install via ssh folder but it gives error.

Hi

Because it’s not a store, but just an individual addon.

component goes to /config/custom_components and copy only directory broadlink_hub there, not the entire cloned component repository.

addon goes to /addons and there you can just clone the addon repository directly.

I understand, not sure if its difficult or easy to do, I am no programmer

Hi. Well, I am. I did it already and it works. I will let it stew for a while and hope someone will try it out and maybe after that try and get it integrated to Hassio or something. I’m already using it in “production” myself in both of my homes in two countries and it works amicably. I have only Broadlink SP2, SC1, SP3 and SP3S devices and in a few days I should also have some MCB1 switches, which I assume are alike the others.

After I started to use my “hub”, i’ve had zero problems and also I’ve been able to configure the switches via UI.

I do not know how to SSH to my config, I can access it via Samba, but when I accesss SSH I get the HASSIO console
EDIT Ok I managed, but nothing in addon store

Cattura

can’t you just program it as a normal addon?

I cannot see the addon in the store, even after the above instructions

I have all of them plus TC2 and RM mini and RM pro (all 3 do NOT work properly on HASSIo at the moment, but were working fine for years, a recent change broke it).

So it would be nice to have your addon woirking, I can’t make it to work

Oh, I’m sorry. It seems that there is an error in addon README. It wrongly tells you to install component repo to /addon direactory. I fixed it now. Sorry about wasting your time.

And yes, it is programmed as an addon. But things like this, need two parts. Addon actually producing the functionality and integration (= component) actually making it visible and usable in Hassio.

But naturally all these need people to test and play with them, before trying to get them included into the distribution. So for now, please just try it out. As I said, I’m using it all the time. While I have some ideas, I’ll probably at some time write to the Hub part, it already works well as it is.

I still do not get it. Never mind, I will wait for a standard integration, or an official fix

Too bad. It may be a long wait in open source world, if nobody is willing to step up. I think the installation instruction steps in addon repository README are not impossible to follow. And of course if someone goes through with it and gets it to work and has time to improve the instructions, I’m more than willing to accept the improvements.

1 Like

After the both repositories have been cloned and component subdirectory moved to the correct location, the files you should see are as follows (I trimmed the output a bit, but all the files are there):

$ ls -l /addons
total 4
drwxr-xr-x  3 root    4096 Apr  7 18:33 broadlink-hub-hassio-addon

$ ls -l /addons/broadlink-hub-hassio-addon
total 316
-rw-r--r--  1 root     318 Apr  7 18:33 Dockerfile
-rw-r--r--  1 root    1091 Apr  7 18:33 LICENSE
-rw-r--r--  1 root    1091 Apr  7 18:33 MIT-RINNE
-rw-r--r--  1 root     240 Apr  7 18:33 README.md
-rw-r--r--  1 root     884 Apr  7 18:33 config.json
-rw-r--r--  1 root   50355 Apr  7 18:33 icon.png
-rw-r--r--  1 root  242459 Apr  7 18:33 logo.png
-rw-r--r--  1 root     512 Apr  7 18:33 run.sh

$ ls -l /config/custom_components
total 4
drwxr-xr-x  4 1000    4096 Apr 12 11:53 broadlink_hub

$ ls -l /config/custom_components/broadlink_hub
total 40
-rw-r--r--  1 1000    3917 Apr 12 11:46 __init__.py
-rw-r--r--  1 1000    2005 Apr  9 13:15 config_flow.py
-rw-r--r--  1 1000    6012 Apr  9 13:15 connector.py
-rw-r--r--  1 1000     415 Apr  9 13:15 const.py
-rw-r--r--  1 1000    2213 Apr  9 13:15 entity.py
-rw-r--r--  1 1000     586 Apr  9 13:15 get.py
-rw-r--r--  1 1000     251 Apr  9 13:15 manifest.json
lrwxrwxrwx  1 1000      21 Apr  9 13:15 strings.json -> .translations/en.json
-rw-r--r--  1 1000    3153 Apr 12 11:51 switch.py

After that, the rest should be done with UI. (i.e. installing addon and adding an integration).

In addon store screen under supervisor menu, you should then see:

addon

And in add integration dialog under configuration menu, you should then see:

integration

If you can’t see them, refresh web page, restart core, check that you copied the files to correct locations.

Hi, i have a problem. I’m the user that pointed out the correct git location on github, i’d like to help.

First of all I managed to install the addon in hassio but I have problem with the config.
If i set password_hash: null i got and error saving

Failed to save addon configuration, not a valid value for dictionary value @ data['options']. Got {'name': 'Home', 'user': 'test', 'password': 'test', 'password_hash': None, 'device_ips': ['192.168.98.16', '192.168.98.17'], 'device_ip_ranges': [], 'device_timeout': 500, 'update_interval': 5000, 'power_set_timeout': 10000, 'unreachable_grace_time': 10000, 'debug': False}

After setting sha56 for password_hash and the correct computed password i can login from http://ip:8525

Hmmh, maybe it can just be omitted. I also added ‘none’ as an option, so it can be used too. However, addon needs to be rebuild so that hub version 2.1.1 gets included.

Anyways, did you get the switches to show up in in the UI?

Has MCB1 been supported?