core: Broadlink switches not working after upgrading to 0.106.0

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.

The problem

Expected behavior

Steps to reproduce

Environment

  • Home Assistant release with the issue: 0.106.0 and 0.106.1
  • Last working Home Assistant release (if known): 0.105
  • UI Type (States or Lovelace):
  • Browser and browser version: Chrome Version 79.0.3945.130 (Official Build) (64-bit)
  • Operating system: RPI

Problem-relevant configuration


Javascript errors shown in your browser console/inspector


Additional information

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 165 (72 by maintainers)

Most upvoted comments

@ov1d1u Okay.

Finally I got physical access to my RM PRO+, after disconnecting it from power and connecting it back, the RF switches works again. Thank you for your work!

Fine! Everything began to work. Now the switches show the correct status if unavailable (this has never happened before). Inaccessible switches no longer affect the operation of other Broadlink components.

There is only one minus - after your instruction I must delete 2 files (.storage/core.config_entries & .storage/core.device_registry) and restart HA once because eAir and s1kit stop working. All Broadlink entities (in the files above) for some reason get the addition of “_2”.

After full day and multiple restarts still works perfect thanks!! Great work

On 8 May 2020, at 10:54, gsghirinzetti notifications@github.com wrote:

works well for me

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

works well for me

installed it and it looks like it works, ill give it few more hours to see its stable Thanks!

You can’t imagine how pleased I was with your phrase that the problem was found - that means - the problem really is, but not me - the fool))) Thanks you!

I think I found the problem with this commit. I created a possible solution, but I will need help to test it, as I do not have the devices with problems.

How to test the solution in HassIO?

1. Set up SSH add-on

1.1. Follow this tutorial. 1.1. Disable Protected Mode. 1.2. Set up a user name and password in the config file.

2. Open a terminal and connect to your device via SSH.

ssh USERNAME@HOST

3. Change user to homeassistant.

docker exec -it homeassistant /bin/bash

4. Let’s replace some files.

Update the Broadlink integration

cd /usr/src/homeassistant/homeassistant/components/broadlink

wget -O __init__.py https://raw.githubusercontent.com/felipediel/home-assistant/fix_connection/homeassistant/components/broadlink/__init__.py

wget -O remote.py https://raw.githubusercontent.com/felipediel/home-assistant/fix_connection/homeassistant/components/broadlink/remote.py

wget -O sensor.py https://raw.githubusercontent.com/felipediel/home-assistant/fix_connection/homeassistant/components/broadlink/sensor.py

wget -O switch.py https://raw.githubusercontent.com/felipediel/home-assistant/fix_connection/homeassistant/components/broadlink/switch.py

wget -O const.py https://raw.githubusercontent.com/felipediel/home-assistant/fix_connection/homeassistant/components/broadlink/const.py

wget -O manifest.json https://raw.githubusercontent.com/felipediel/home-assistant/fix_connection/homeassistant/components/broadlink/manifest.json

Update python-broadlink

cd /usr/local/lib/python3.7/site-packages/broadlink

wget -O __init__.py https://raw.githubusercontent.com/felipediel/python-broadlink/socket/broadlink/__init__.py

7. Restart Home Assistant

Please let me know if it worked so I can create a pull request.

if I apply the fix, and then it comes a HASSIO updates, do I have to revert back some of your instructions?

EDIT. Ok I applied the fix, and seems working fine. Great, thanks

It is OK now. Have done according this instruction and everything works perfectly. Thanks Felipe.

now it works fine for me. many thanks Felipe

Sure, but from Monday, tomorrow busy and weekend far from home

Unfortunately, now I have a new big problem - after this update, Broadlink e1Air no longer works. Rather, it works very strange - out of 4 parameters it gives out only 1 - temperature. Humidity, noise and lighting - from HA is completely gone.

Hi @felipediel, I have RM pros and RM minis (new and old). I use both RF (for blinds) and IR (for aircons). All except new RM mini3 were working in 0.106.5.

In core 0.108.6 with your fix, new mini3 started working but RF on RM Pros were playing funny buggers. some commands work but mostly didn’t. IR continued to work on all units.

I tried the fix you mention here on my test RP3 running 0.108.9 and all seem to work, both RF and IR.

Awesome coding buddy!! and thanks for all your hard work.

@felipediel My problem was magically solved in 0.107 - only 0.106 was completely broken for me.

New instructions here.

@felipediel many thanks i will try to follow the guide

everything works perfectly, thanks for your support!