Do the service calls work? Share your Lovelace config if not
I tried to do a service call on "homeassistant.turn_on" and selecting the relevant entity id and still no response.
the same issue :) help me
no response from broadlink RM
no error in log
If the service call doesn't work, this is not a frontend issue
the solution is to update Home Assistant 0.106.1 and restart the server
Hey there @danielhiversen, @felipediel, mind taking a look at this issue as its been labeled with a integration (broadlink
) you are listed as a codeowner for? Thanks!
I already upgraded to 0.106.1, rebooted and still my broadlink switches not working. it is a crazy, when your house and family rely on them...
The same thing happened with my Broadlink device after upgrade to 0.106.2.
Well... At first glance, this commit by @bmfurtado seems to be irrelevant: https://github.com/home-assistant/home-assistant/commit/9f58e5d6eaed731be728596a5b06e981f604fe30#diff-d31d58995a6c8e6454413bfa41b9a588 (we do not learn any commands during normal operation). But when I reverted it, Broadlink devices started to work again.
So what is the solution for this issue? what can i do have broadlink switches working again, I need to have my home functioning again...
@abouelric I have just manually reverted this change in the HA code: https://github.com/home-assistant/core/commit/9f58e5d6eaed731be728596a5b06e981f604fe30#diff-d31d58995a6c8e6454413bfa41b9a588. Please note, I'm using Virtualenv, not hass.io. Or you may just re-install the previous HA version (0.105) :)
Like @OleksandrBerchenko suggested, reverting to whatever previous version you had installed before should help.
Meanwhile... it's definitely weird that my change to learn_command causes any issue with the normal operation of the switches but I'd definitely like to try to repro this on my computer.
Can someone affected share exactly what their switch config is and what exact Broadlink RM model and firmware version you have is?
@bmfurtado Your changes should not be related to this issue
@bmfurtado, I have Broadlink RM-Pro 3. Here is my config:
- platform: broadlink
friendly_name: rmpro
host: 192.168.1.190
mac: '78:0F:77:00:CD:47'
switches:
shutters_up:
command_on: 'swBsAggGCAUIBggGCAYIBQgGCAYIBQgGCAYIBQgGCAYIBggFCAYIBggGCAUIBggGCAUIBggGCAYIBQgGCAYIBggFCAYIBggFCAYIBggGCAUIBggGCAUIBggGCAYIBR0GCAwPBg8FDwYIDQ4GDwYOBggNCAwIDQgNDgYPBg8GDgYIDAgNCAwJDAgNDwUPBg8GBw0IDQgMCA0IDQcNCA0OBggNCAwIDQgMCA0IDQgMDwYIDAgNDwYIDAgNDwUIDQgMCQwPBggMDwYIDA8GDwYOBg8zCAYHBggGCAYHBggGCAYIBgcGCAYIBgcGCAYIBggGBwYIBggGBwYIBggGCAYHBggGCAYIBgcGCAYIBgcGCAYIBggGBwYIBggFCAYIBggGCAYHBggGCAUIBwcGHAYIDQ8FDwYPBggMDwYPBg4GCAwIDQgNCAwPBg8FDwYPBgcNCA0IDAgNCAwPBg8GDwUIDQgMCA0IDQcNCA0IDA8GCAwIDQgNCAwIDQgMCA0PBQgNCA0PBQgNCAwPBggMCA0IDQ8FCA0PBQgNDwYOBg8GDzQIBggGCAUIBggGCAYIBgcGCAYIBgcGCAYIBggGBwYIBggGBwYIBggGCAYHBggGCAYIBQgGCAYIBQgGCAYIBggGBwYIBggGBwYIBggGCAYHBggGCAYHBggGCAYcBggNDgYPBg4GCA0PBg4GDwYIDAgNCAwIDQ8GDgYPBg8GBw0IDAgNCA0IDA8GDwYOBggMCA0IDQgMCA0IDAgNDwYHDQgNCAwIDQgMCA0IDQ4GCA0IDA8GCAwIDQ8GCAwIDQgMDwYIDQ4GCA0PBQ8GDwUPAAXcAAAAAAAAAAAAAAAA'
command_off: 'swGEAwgNDwYPBQ8GCAwIDQgMCA0IDAgNCA0OBggNCAwIDQgMCA0IDQcNCA0PBQgNDwUIDQgNDgYIDQgMCA0PBQgNDwYHDQ8GDgYPBg80CAUIBggGCAUIBggGCAYIBgcGCAYIBgcGCAYIBgcGCAYIBggGBwYIBggGBwYIBggGCAYHBggGCAYHBggGCAYIBgcGCAYIBgcGCAYIBggGBwYIBggGBwYIBggGHAYIDA8GDwYOBggNDwUPBg8FCA0IDQgMCA0OBg8GDwYOBggNCAwIDQgMCA0PBQ8GDwYIDAgNCAwIDQgMCA0IDQ4GCA0IDAgNCAwIDQgMCA0IDQ8FCA0PBQgNCA0OBggNCAwIDQ8FCA0PBggMDwYPBQ8GDzMIBggGCAUIBggGCAUIBggGCAYIBQgGCAYIBgcGCAYIBggFCAYIBggGCAUIBggGCAYHBggGCAYHBggGCAYIBQgGCAYIBggFCAYIBggGBwYIBggGCAUIBggGCAUdBggMDwYPBg4GCA0PBQ8GDwUIDQgMCQwIDBAFDwYPBg4GCA0IDAgNCAwIDQ8FDwYPBggMCA0IDAgNCA0HDQgNDgYIDQgMCA0IDQgMCA0IDAgNDwYHDQ8GCAwIDQ8GBw0IDQgMDwYIDA8GCA0OBg8GDgYPMggGCAYIBgcGCAYIBggFCAYIBggGBwYIBggGCAYHBggGCAYHBggGCAYIBgcGCAYIBggGBwYIBggGBwYIBggGCAYHBggGCAYHBggGCAYIBgcGCAYIBgcGCAYIBhwGCA0OBg8GDwUIDQ8GDgYPBggMCA0IDAgNDwYOBg8GDwUIDQgMCA0IDQgMDwYPBg4GCAwIDQgNCAwIDQgMCA0PBQgNCA0IDAgNCAwIDQgNCAwPBggMDwYIDAgNDwYIDAgNCAwPBggNDgYIDQ8FDwYPBg41CAYIBggFCAYIBggFCAYIBggGCAUIBggGCAYHBggGCAYIBQgGCAYIBggFCAYIBggFCAYIBggGCAUIBggGCAUIBggGCAYIBQgGCAYIBgcGCAYIBggFCAYIBggGHAYIDA8GDwYOBggNDwYOBg8GBw0IDQgMCA0PBg4GDwYOBggNCAwIDQgNBw0PBg4HDgYIDAgNCAwJDAgNCAwIDQ8FCA0IDAkMCA0IDAgNCA0HDQ8GCAwPBggMCA0PBQgNCA0IDA8GCA0OBggNDwUPBg8FDwAF3AAAAAA='
...
@Danielhiversen Yes, that's strange, but when I reverted that change, Broadlink started to work again, Oh, well... I reverted the change and rebooted HA - there is still a chance that reboot actually helped, not reverthing that change.
To be absolutely honest I only have RM mini 3 at home so those are the only devices I tested my change with. Nevertheless I'd be surprised if that's the cause of the difference.
I haven't been able to reproduce any issues with switches with a config similar to yours and my devices at home so I don't think I'll be a lot of help in this issue. I'll keep following this issue out of curiosity though and if I can help with experiments let me know.
I have upgraded to 0.106.5 and still my broadlink switches not working. Moreover, I have 3 friends confirmed that they are having the same issue with broadlink switches. is it possible that anyone from Hassio to restore the Broadlink working component of 0.105.x version into the next release of 0.106.6.
I can not see any changes that can cause your problems: https://github.com/home-assistant/core/commits/f1a0ca7cd3ec384c4f6d71aefead59815b7f68e9/homeassistant/components/broadlink
Have you tested with a previous version of the component or HA?
You can also try to enable debug logging for the broadlink component
yes I have tested with another similar setup and it is working in 0.105
in order to enable the debug logging i need to add the following code in yaml, right?
logger:
default: error
logs:
homeassistant.components.broadlink.deluge: debug
I have the same problem. After upgrading from version 0.105.5, Broadlink does not work correctly with the TC switches. More precisely, it works, but time delays can be several minutes. At the same time, air conditioning and TV (smart components) are controlled without any delays. I downgrade back to version 0.105.5 and everything works fine again.
I still do not think it is related to any change in the broadlink component.
Could you test an older version of the broadlink component with 0.106.6?
how do we get to test that on 0.106.6 and it is not released yet?
Meant 0.106.5
Same problem in 0.106.5. My sp3 switch stop working, Resolved copying broadlink folder from an old working version to custom components folder.
also see https://community.home-assistant.io/t/broadlink-mp1-not-working-after-upgrade-to-0-94-0/120469/5
So i guess what @gsghirinzetti did proves that something changed in broadlink components starting version 0.106.x.
Strange.
You can see all the changes here: https://github.com/home-assistant/core/commits/dev/homeassistant/components/broadlink
Try to find which change that breaks your installation.
an update to my statement. even if you restore old "broadlink" folders and put them in custom components the problem persists on all broadlink components. All the on and off commands are executed but with a lot of delay.
@gsghirinzetti That's strange: I have just reverted this change: https://github.com/home-assistant/core/commit/9f58e5d6eaed731be728596a5b06e981f604fe30#diff-d31d58995a6c8e6454413bfa41b9a588 and after HA restart, Broadlink started to work 100% correctly again. I have one RM-Pro 3.
@gsghirinzetti That's strange: I have just reverted this change: 9f58e5d#diff-d31d58995a6c8e6454413bfa41b9a588 and after HA restart, Broadlink started to work 100% correctly again. I have one RM-Pro 3.
I can not find where to make the changes:
homeassistant/components/broadlink/__init__.py
@OleksandrBerchenko Are you sure it is not random if it works or not when you restart HA?
I do not see any way that change can cause component to stop working.
@gsghirinzetti That's strange: I have just reverted this change: 9f58e5d#diff-d31d58995a6c8e6454413bfa41b9a588 and after HA restart, Broadlink started to work 100% correctly again. I have one RM-Pro 3.
I tried, it doesn't work for me, this way it doesn't work at all
@OleksandrBerchenko Are you sure it is not random if it works or not when you restart HA?
I do not see any way that change can cause component to stop working.
I am sure. I have been informed by a friend who has the same problems
@Danielhiversen Yes. Reverting my revert back and restarting HA - Broadlink doesn't work. Reverting that commit and restarting again - Broadlink works. Yes, it's magic :) I don't see anything suspicious in the code too. I didn't debug it further, but I suspect this method is being accidentally called when HA starts.
So will it be fixed in the next update?
I can confirm problems with broadlink too. There are 5 devices: 3 switches SC1 (sp2), KIT s1c, RM-PRO. Everything stops working fine as soon as at least one of SC1 component is offline. That is, it is worth disconnecting SC1 from 220v and the whole system ceases to work adequately (exactly and only one of SC1).
Hi guys, I'm going to fix this. But first I need to understand exactly what is going on. I need you to follow the procedures exactly as I will explain. So I will have the necessary data to solve the problem.
1. First I need to debug you
python3 debug.py
This will give me all information I need about your device.
In this file I will get your device type, so we can check related issues.
I will also check if you have the evil byte set. If you have this byte set, you are unable to communicate locally. So I will help you to solve that.
2. Then I need you to inform me exactly where the problem is
Can you set up a switch? A remote? Or is the problem in broadlink.send specifically? Changing code is like a surgery, I can't go around cutting off the patient's limbs without knowing if they are working. You need to inform me exactly what is going on. What is working and what is not.
3. I need you to make some Wireshark captures while you use Home Assistant
Download and install Wireshark. Lets configure it.
Edit
-> Preferences
-> Capture
-> Capture packets in the promiscuous mode
and check that box.ip.addr == 192.168.0.12
(replace with the IP address of your Broadlink device).5a a5 aa 55 5a a5 aa 55
.4. Send me the files. I will analyze them, solve the problem and create a PR
I can do it right now ... but I do not have enough instructions (((how to run debug.py? Which command?
I downloaded Wireshark on my computer (Win10 x64), but it does not see any packages, but it’s understandable, apparently I need to download it to the server with hassio... I don’t understand how to do this ((
I have hassio: docker, intel-nuc, Ubuntu 18.04. I can connect via SSH.
@AndroVet Let's start simple, just debug it and I see how we should proceed.
here is a video - how it stops working. Shot right now.
https://youtu.be/9xhq46ahqN0
I have done it. But the script every time it executes produces different errors and different debug.txt
root@HASIO:/home/hom# python3 debug.py
Traceback (most recent call last):
File "debug.py", line 1032, in
device.enter_learning()
AttributeError: 'a1' object has no attribute 'enter_learning'
debug.txt
04:07:25,365 root INFO Broadlink API Debug
04:07:25,367 __main__ DEBUG Starting discovery...
04:07:25,379 __main__ DEBUG [Request]
bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe4\x07\x07\x04\x14\x01\t\x03\x00\x00\x00\x00\xc0\xa8\x01\xc8n\x93\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00')
04:07:25,490 __main__ DEBUG [Response]
bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe4\x07\x07\x04\x14\x01\t\x03\x00\x00\x00\x00\xc0\xa8\x01\xc8n\x93\x00\x00\xd9\xd1\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"\'\x9b\x01\xa8\xc0\x11_\x01w\x0fx\xe6\x99\xba\xe6\x85\xa7\xe5\xbe\xae\xe7\xae\xa1\xe5\xae\xb6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x01')
04:07:25,856 __main__ DEBUG [Response]
bytearray(b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe4\x07\x07\x04\x14\x01\t\x03\x00\x00\x00\x00\xc0\xa8\x01\xc8n\x93\x00\x00\x7f\xd1\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x9d\'\x96\x01\xa8\xc0**\xdaB\xf7\xc8\xe6\x99\xba\xe8\x83\xbd\xe9\x81\xa5\xe6\x8e\xa7\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x01")
04:07:25,858 __main__ DEBUG [Response]
bytearray(b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe4\x07\x07\x04\x14\x01\t\x03\x00\x00\x00\x00\xc0\xa8\x01\xc8n\x93\x00\x00\xb6\xd2\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14\'\x94\x01\xa8\xc0\x10\x9f{4\xea4\xe7\xa9\xba\xe6\xb0\x94\xe8\xb4\xa8\xe9\x87\x8f\xe4\xbb\xaa\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x01")
04:07:30,384 __main__ DEBUG [Device 0]
04:07:30,385 __main__ DEBUG Host: ('192.168.1.155', 80)
04:07:30,386 __main__ DEBUG Mac: 115f01770f78
04:07:30,386 __main__ DEBUG Type: 0x2722
04:07:30,387 __main__ DEBUG Starting authentication...
04:07:30,388 __main__ DEBUG [Request]
bytearray(b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x82\xf5\x00\x00"\'e\x00\x87[\x11_\x01w\x0fx\x00\x00\x00\x00\xa1\xc3\x00\x00E4R\xe7\xf9.\xda\x95\x83D\x93\x085\xef\x9am\xfbi-\xc3p\xb9\x04C\xac\\xd6?\xbbS\xad\xfa\x08\x81L\xa7\xf8\xcfAq\x002\x8eW\x0c;\x86\xc9M\x05p\x84I\xa3\x89\xe2\x9a\xe1\x04T6\xa0[\xdd\xdc\x02\xc1a\xaf\x13%\xe8~\x19\xb0\xf7\xd1\xce\x06\x8d\xe5\x1ba\x91V\x87m3\x8c\xff;\x99\x1e@\xcd\xb1')
04:07:30,403 __main__ DEBUG [Response]
(b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00s\xd7\x00\x00"\'\xe9\x03\x87[\x11_\x01w\x0fx\x00\x00\x00\x00G\xc7\x00\x00c\xca\xc5\xb6\xc7\nTd\x8f\xd0i9\xfc\x7f<\xf7\xe4\\xa1\x92J\x96g\x163\xc2~\xeb(\xad0!', ('192.168.1.155', 80))
04:07:30,404 __main__ DEBUG Authentication successful.
04:07:30,405 __main__ DEBUG Entering learning mode...
There is no idle device, 192.168.1.161, ... 162, ... 163 do not work.
@AndroVet I improved the debug tool to ignore this exception. Please try again.
I noticed that your devices have the evil byte enabled. You need to perform this procedure to control them correctly.
06:50:24,946 root INFO Broadlink API Debug
06:50:24,947 __main__ DEBUG Starting discovery...
06:50:24,958 __main__ DEBUG [Request]
bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe4\x072\x06\x14\x01\t\x03\x00\x00\x00\x00\xc0\xa8\x01\xc8h\x9d\x00\x00\x00\x00\x00\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x00\x00')
06:50:25,47 __main__ DEBUG [Response]
bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe4\x072\x06\x14\x01\t\x03\x00\x00\x00\x00\xc0\xa8\x01\xc8h\x9d\x00\x00\n\xd2\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"\'\x9b\x01\xa8\xc0\x11_\x01w\x0fx\xe6\x99\xba\xe6\x85\xa7\xe5\xbe\xae\xe7\xae\xa1\xe5\xae\xb6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x01')
06:50:25,308 __main__ DEBUG [Response]
bytearray(b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe4\x072\x06\x14\x01\t\x03\x00\x00\x00\x00\xc0\xa8\x01\xc8h\x9d\x00\x00\xe7\xd2\x00\x00\x00\x00\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14\'\x94\x01\xa8\xc0\x10\x9f{4\xea4\xe7\xa9\xba\xe6\xb0\x94\xe8\xb4\xa8\xe9\x87\x8f\xe4\xbb\xaa\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x01")
06:50:29,963 __main__ DEBUG [Device 0]
06:50:29,964 __main__ DEBUG Host: ('192.168.1.155', 80)
06:50:29,965 __main__ DEBUG Mac: 115f01770f78
06:50:29,966 __main__ DEBUG Type: 0x2722
06:50:29,966 __main__ DEBUG Starting authentication...
06:50:29,968 __main__ DEBUG [Request]
bytearray(b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00)\xf6\x00\x00"\'e\x00\xd9\xb0\x11_\x01w\x0fx\x00\x00\x00\x00\xa1\xc3\x00\x00E4R\xe7\xf9.\xda\x95\x83D\x93\x085\xef\x9am\xfbi-\xc3p\xb9\x04C\xac\\xd6?\xbbS\xad\xfa\x08\x81L\xa7\xf8\xcfAq\x002\x8eW\x0c;\x86\xc9M\x05p\x84I\xa3\x89\xe2\x9a\xe1\x04T6\xa0[\xdd\xdc\x02\xc1a\xaf\x13%\xe8~\x19\xb0\xf7\xd1\xce\x06\x8d\xe5\x1ba\x91V\x87m3\x8c\xff;\x99\x1e@\xcd\xb1')
06:50:29,987 __main__ DEBUG [Response]
(b'Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1a\xd8\x00\x00"\'\xe9\x03\xd9\xb0\x11_\x01w\x0fx\x00\x00\x00\x00G\xc7\x00\x00c\xca\xc5\xb6\xc7\nTd\x8f\xd0i9\xfc\x7f<\xf7\xe4\\xa1\x92J\x96g\x163\xc2~\xeb(\xad0!', ('192.168.1.155', 80))
06:50:29,988 __main__ DEBUG Authentication successful.
06:50:29,989 __main__ DEBUG Entering learning mode...
06:50:29,989 __main__ DEBUG This is device does not support enter learning.
06:50:29,989 __main__ DEBUG [Device 1]
06:50:29,990 __main__ DEBUG Host: ('192.168.1.148', 80)
06:50:29,990 __main__ DEBUG Mac: 109f7b34ea34
06:50:29,990 __main__ DEBUG Type: 0x2714
06:50:29,990 __main__ DEBUG Starting authentication...
06:50:29,991 __main__ DEBUG [Request]
bytearray(b"Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00!\xf7\x00\x00\x14\'e\x00\xc2\xc0\x10\x9f{4\xea4\x00\x00\x00\x00\xa1\xc3\x00\x00E4R\xe7\xf9.\xda\x95\x83D\x93\x085\xef\x9am\xfbi-\xc3p\xb9\x04C\xac\\xd6?\xbbS\xad\xfa\x08\x81L\xa7\xf8\xcfAq\x002\x8eW\x0c;\x86\xc9M\x05p\x84I\xa3\x89\xe2\x9a\xe1\x04T6\xa0[\xdd\xdc\x02\xc1a\xaf\x13%\xe8~\x19\xb0\xf7\xd1\xce\x06\x8d\xe5\x1ba\x91V\x87m3\x8c\xff;\x99\x1e@\xcd\xb1")
06:50:30,435 __main__ DEBUG [Response]
(b"Z\xa5\xaaUZ\xa5\xaaU\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xe4\xd7\x00\x00\x14'\xe9\x03\xc2\xc0\x10\x9f{4\xea4\x00\x00\x00\x00\xba\xcc\x00\x00\xf7\x8a\x92\xd3\x14,\x19\x86\xda;|\x10'\x8f5lO\x9e\xa5\xbb/0\xb9\xa6<\xba\xc7\xefI_\\x16", ('192.168.1.148', 80))
06:50:30,436 __main__ DEBUG Authentication successful.
06:50:30,436 __main__ DEBUG Entering learning mode...
06:50:30,437 __main__ DEBUG This is device does not support enter learning.
@AndreVet I'm watching your video right now. So sometimes the command works, sometimes not? It looks like an authentication error. If so, the problem may be related to the commit that has already been mentioned. But I still need to see those bytes to understand it, because I don't see any obvious problems with the code.
Your devices have evil bytes enabled (cloud). I cannot help you if you don't perform the procedure I've pointed out. There is nothing that can be done inside the Home Assistant to help you. It's up to you to disable those bytes. Read this discussion, it contains instructions on how to disconnect your device from the cloud. Do this and come back here, I can only help you after that.
I need details about what is going on. Is the problem just in broadlink.send or in the whole integration? If you try to do the same thing using the Broadlink remote platform, does the problem persist?
@Danielhiversen How about discontinuing broadlink.learn and broadlink.send and letting the remote platform handle it? I can add functionality to accept b64 codes.
Sorry I am not able to run the script at this time. Let me know if it is still needed, I can do so in a day or two. On the other hand, I can confirm that once I remove the disconnected device(s) from the config and I reboot, the broadlink switches works normally. Hope this small tip helps.
@abouelric What Broadlink devices are you using? What types are causing problems? The more information you give me, the sooner the solution will come.
This is how to help me to help you. Take your time.
@abouelric What Broadlink devices are you using? What types are causing problems? The more information you give me, the sooner the solution will come.
This is how to help me to help you. Take your time. I'm in no hurry.
SP2,SP3 MP1
I have: A1, s1c-kit (with 8 sensors), RM-PRO, RM-mini (temporarily not using), SC1 (3pcs.).
Problems ONLY with SC1-switches. The device has become completely unpredictable. Every time I don’t know whether it will turn on or not. But at the same time - it always works fine from the original Broadlink soft (ihc), even if it is not available from HA.
Note: if in HA-configuration all 3 pieces SC1 are registered (present) and all SC1 ONLINE - the system works more or less stably. But if any of SC1 is unavailable (disconnected from power) - this is where the problems begin.
@abouelric What Broadlink devices are you using? What types are causing problems? The more information you give me, the sooner the solution will come.
This is how to help me to help you. Take your time. I'm in no hurry.
I have 7 SC1 devices and two sp3 devices. I can confirm that if any of the devices goes offline and I reboot Hassio, the rest of Broadlink switches will not work. If all connected to the network and I reboot, all devices work Normally. I did the offline test on SC1 and SP3.
Okay, this is something. Now I need you to:
@AndroVet Did you manage to disable the bytes that I told you to do? Those steps are important to ensure that the Broadlink cloud is not interfering with the functioning of your devices on the local network.
How to disable the cloud (IMPORTANT):
Unfortunately, I was unable to complete this quest. I could not go beyond the 6th point. I have a computer with Windows10, I installed:
... and that's it, the command is executed, but nothing happens further, alas, but my knowledge is not enough...
PS: just in case for the test I downloaded and ran: python broadlink_discovery
here's the answer:
Discovering ...
Traceback (most recent call last):
File "broadlink_discovery", line 14, in
devices = broadlink.discover (timeout = args.timeout, local_ip_address = args.ip, discover_ip_address = args.dst_ip)
TypeError: discover () got an unexpected keyword argument 'discover_ip_address'
@AndroVet Run debug.py and send me the file.
...the difficulties of translation did not allow me to make it clear to you that now ALL of my broadlink devices have been reset and disconnected from my Wi-Fi. The second day I’m trying to figure out how to connect devices to my network without a native broadlink-app. Do I really need to run debug.py on a system without any broadlink-devices?
@AndroVet This important step has three purposes:
Hi felipediel, sorry for my bad English..
i have a bestcon rm4c
I did:
Remove the device from Broadlink App (you must be connected to the Internet).
Uninstall the Broadlink App.
Reset the Broadlink device.
Enter AP mode.
Connect your computer to the AP.
Use this CLI to add your devices to the local network.
I run debug.py and it works .. I am attaching the file
but when i use the broadlink component in homeassistant it doesn't work ..
my configuration in configuration.yaml:
smartir:
switch:
- platform: broadlink
host: 192.168.2.141
mac: '24: DF: A7: 4F: 79: E1 '
friendly_name: "IR Salone"
media_player:
- platform: smartir
name: TV lounge
unique_id: tv_samsung
device_code: 1060
controller_data: 192.168.2.141
power_sensor: binary_sensor.tv_power
thanks for the support
debug.txt
@mauro1966 The PR is not merged yet. You can follow these steps to make it work for now.
@felipediel many thanks i will try to follow the guide
everything works perfectly, thanks for your support!
After upgrading to HA 0.107.5, the issue disappeared by itself.
Doesn't work for me
Ottieni BlueMail per Android
Il giorno 22 mar 2020, 13:25, alle ore 13:25, Oleksandr Berchenko notifications@github.com ha scritto:
After upgrading to HA 0.107.5, the issue disappeared by itself.
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/home-assistant/core/issues/32313#issuecomment-602191871
@mauro1966 The PR is not merged yet. You can follow these steps to make it work for now.
Hi, is not merged in 107.7?
I am on 107.7 and none of the Broadlink devices work (SP1, SP2, RM mini, RMpro, SC1, TC2).
Please note that they all work with E-control broadlink app, and they were working fine in HASSIO for years until few versions ago.
Are the steps these?
https://github.com/home-assistant/core/issues/30215#issuecomment-598982872
do they work only for the RM mini, or for all devices?
After upgrading to HA 0.107.5, the issue disappeared by itself.
does not work for me in 107.7
I am getting one or two devices working, but most not. I don't get delays, the broadlink just does nothing on certain devices. They are all cover templates all configured identically, but one works, the others not! weird. Started happening after just upgrading to the latest 108.1 - from I think 106 or maybe 105.
Sorry when I say devices, I mean commands. When I send commands to devices the broadlink does nothing. Except for 1 device which uses 3 commands (up, down, stop) which all work! But don't work for any of the other broadlink commands sent.
Sorry when I say devices, I mean commands. When I send commands to devices the broadlink does nothing. Except for 1 device which uses 3 commands (up, down, stop) which all work! But don't work for any of the other broadlink commands sent.
Yes. For me very few work but with a Huuuuuge delay, like 10 minutes, crrazy. Some does not work at all. From the broadlink app everything works well
I saw a fix coming (don't remember where I saw it), any news?
The PR is not merged yet
any idea when will be released?
Hello,
I can confirm this does not work with recent versions of Home Assistant.
FWIW, it works perfectly with Broadlink CLI:
https://github.com/mjg59/python-broadlink/tree/master/cli
Maybe someone could compare the code and see the differences?
My 2 cents
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.
1.1. Follow this tutorial.
1.1. Disable Protected Mode
.
1.2. Set up a user name and password in the config file.
ssh USERNAME@HOST
docker exec -it homeassistant /bin/bash
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 device.py https://raw.githubusercontent.com/felipediel/home-assistant/fix_connection/homeassistant/components/broadlink/device.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
cd /usr/src/homeassistant/homeassistant/components/switch
wget -O __init__.py https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/components/switch/__init__.py
cd /usr/src/homeassistant/homeassistant/components/remote
wget -O __init__.py https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/components/remote/__init__.py
cd /usr/local/lib/python3.7/site-packages/broadlink
wget -O __init__.py https://raw.githubusercontent.com/mjg59/python-broadlink/master/broadlink/__init__.py
wget -O exceptions.py https://raw.githubusercontent.com/mjg59/python-broadlink/master/broadlink/exceptions.py
Please let me know if it worked so I can create a pull request.
I also think it's worth investigating this.
Hi,
I am using HASSIO 108.7 the path / usr / src / homeassistant / homeassistant / components / broadlink does not exist. I can't find the path components anywhere
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?
- Update Home Assistant to the latest dev version.
- Remove all your stuff from
custom_components/broadlink
folder.- Replace
__init__.py
at/usr/src/homeassistant/homeassistant/components/broadlink
.- Replace
switch.py
at/usr/src/homeassistant/homeassistant/components/broadlink
.Or just git pull this branch.
Please let me know if it worked so I can create a pull request.
Your solution should solve also the huuuuuge delay experienced by RM Pro users when trying to SEND RF commands?
@gsghirinzetti :point_up:
@Klagio There is only one way to know.
Doesn't work. now don't recognize my broadlink switches at all
Error messages?
I just improved socket communication in the library. Do you want to give it a try?
pip3 install git+https://github.com/felipediel/python-broadlink@socket
Log Details (ERROR)
Logger: homeassistant.components.hassio
Source: components/hassio/__init__.py:269
Integration: Hass.io (documentation, issues)
First occurred: 2:57:01 PM (1 occurrences)
Last logged: 2:57:01 PM
Platform error switch.broadlink - cannot import name 'DEFAULT_NAME' from 'homeassistant.components.broadlink.const' (/usr/src/homeassistant/homeassistant/components/broadlink/const.py) Platform error switch.broadlink - cannot import name 'DEFAULT_NAME' from 'homeassistant.components.broadlink.const' (/usr/src/homeassistant/homeassistant/components/broadlink/const.py) Platform error switch.broadlink - cannot import name 'DEFAULT_NAME' from 'homeassistant.components.broadlink.const' (/usr/src/homeassistant/homeassistant/components/broadlink/const.py) Platform error switch.broadlink - cannot import name 'DEFAULT_NAME' from 'homeassistant.components.broadlink.const' (/usr/src/homeassistant/homeassistant/components/broadlink/const.py) Platform error switch.broadlink - cannot import name 'DEFAULT_NAME' from 'homeassistant.components.broadlink.const' (/usr/src/homeassistant/homeassistant/components/broadlink/const.py) Platform error switch.broadlink - cannot import name 'DEFAULT_NAME' from 'homeassistant.components.broadlink.const' (/usr/src/homeassistant/homeassistant/components/broadlink/const.py)
- Update Home Assistant to the latest dev version.
hi, I never did this, is it mandatory?
@Klagio @gsghirinzetti I updated the instructions to make it easier. Could you please check if these steps work in HassIO?
Error installing DEV version
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip ins tall --ignore-installed --no-user --prefix /tmp/pip-build-env-p47cl2yx/overlay - -no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi .org/simple --pre -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_py thon_implementation != '"'"'PyPy'"'"''
cwd: None
Complete output (126 lines):
Keyring is skipped due to an exception: 'PosixPath' object has no attribute 'r ead_text'
Collecting setuptools>=40.6.0
Downloading setuptools-46.1.3-py3-none-any.whl (582 kB)
Collecting wheel
Downloading wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Collecting cffi!=1.11.3,>=1.8
Downloading cffi-1.14.0.tar.gz (463 kB)
Collecting pycparser
Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
Building wheels for collected packages: cffi
Building wheel for cffi (setup.py): started
Building wheel for cffi (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys .argv[0] = '"'"'/tmp/pip-install-pxz3yo88/cffi/setup.py'"'"'; __file__='"'"'/tmp /pip-install-pxz3yo88/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', ope n)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec( compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-gyb22dey
cwd: /tmp/pip-install-pxz3yo88/cffi/
Complete output (48 lines):
unable to execute 'gcc': No such file or directory
unable to execute 'gcc': No such file or directory
No working compiler found, or bogus compiler options passed to
the compiler from Python's standard "distutils" module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setup.py of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see http://stackoverflow.com/questions/22313407/
Otherwise, see https://wiki.python.org/moin/CompLangPython or
the IRC channel #python on irc.freenode.net.)
Trying to continue anyway. If you are trying to install CFFI from
a build done in a different context, you can ignore this warning.
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/cffi
copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/c
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD _STACK_SIZE=0x100000 -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/local /include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_ backend.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
ERROR: aiohomekit 0.2.37 has requirement zeroconf[ip]<0.25.0,>=0.24.4, but you 'll have zeroconf 0.25.0 which is incompatible.
Installing collected packages: setuptools, wheel, pycparser, cffi
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; s ys.argv[0] = '"'"'/tmp/pip-install-pxz3yo88/cffi/setup.py'"'"'; __file__='"'"'/t mp/pip-install-pxz3yo88/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', o pen)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exe c(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-2pc 6k0ls/install-record.txt --single-version-externally-managed --prefix /tmp/pip-b uild-env-p47cl2yx/overlay --compile --install-headers /tmp/pip-build-env-p47cl2y x/overlay/include/python3.7m/cffi
cwd: /tmp/pip-install-pxz3yo88/cffi/
Complete output (48 lines):
unable to execute 'gcc': No such file or directory
unable to execute 'gcc': No such file or directory
No working compiler found, or bogus compiler options passed to
the compiler from Python's standard "distutils" module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setup.py of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see http://stackoverflow.com/questions/22313407/
Otherwise, see https://wiki.python.org/moin/CompLangPython or
the IRC channel #python on irc.freenode.net.)
Trying to continue anyway. If you are trying to install CFFI from
a build done in a different context, you can ignore this warning.
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/cffi
copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/c
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHRE AD_STACK_SIZE=0x100000 -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/loc al/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cff i_backend.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'im port sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pxz3yo88/cff i/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pxz3yo88/cffi/setup.py'"'"';f=ge tattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn' "'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' ins tall --record /tmp/pip-record-2pc6k0ls/install-record.txt --single-version-exter nally-managed --prefix /tmp/pip-build-env-p47cl2yx/overlay --compile --install-h eaders /tmp/pip-build-env-p47cl2yx/overlay/include/python3.7m/cffi Check the log s for full command output.
ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/ lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /t mp/pip-build-env-p47cl2yx/overlay --no-warn-script-location --no-binary :none: - -only-binary :none: -i https://pypi.org/simple --pre -- 'setuptools>=40.6.0' whe el 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.
bash-5.0#
Did you try step 4 and it worked?
I had tried them yesterday without having updated to the dev version, then I rolled back.
Today because of the errors I have not tried the next steps.
Could you please check if these steps work in HassIO?
I can only late tonight
@gsghirinzetti There was a problem during your installation. Could you try again? Make sure you don't skip any steps. If an error occurs in any of them, stop everything and send me the error message so I can help you continue.
@Klagio Ok, thank you!
I receive error at the first step:
bash-5.0# pip3 install --pre --upgrade homeassistant
Collecting homeassistant
Using cached homeassistant-0.109.0b1-py3-none-any.whl (7.7 MB)
Requirement already satisfied, skipping upgrade: certifi>=2020.4.5.1 in /usr/local/lib/python3.7/site-packages (from homeassistant) (2020.4.5.1)
Requirement already satisfied, skipping upgrade: async-timeout==3.0.1 in /usr/local/lib/python3.7/site-packages (from homeassistant) (3.0.1)
Requirement already satisfied, skipping upgrade: voluptuous-serialize==2.3.0 in /usr/local/lib/python3.7/site-packages (from homeassistant) (2.3.0)
Requirement already satisfied, skipping upgrade: bcrypt==3.1.7 in /usr/local/lib/python3.7/site-packages (from homeassistant) (3.1.7)
Collecting cryptography==2.9
Using cached cryptography-2.9.tar.gz (517 kB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-_7ublk33/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --pre -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"''
cwd: None
Complete output (126 lines):
Keyring is skipped due to an exception: 'PosixPath' object has no attribute 'read_text'
Collecting setuptools>=40.6.0
Using cached setuptools-46.1.3-py3-none-any.whl (582 kB)
Collecting wheel
Using cached wheel-0.34.2-py2.py3-none-any.whl (26 kB)
Collecting cffi!=1.11.3,>=1.8
Using cached cffi-1.14.0.tar.gz (463 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Building wheels for collected packages: cffi
Building wheel for cffi (setup.py): started
Building wheel for cffi (setup.py): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tc7hogb8/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tc7hogb8/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ibaysik7
cwd: /tmp/pip-install-tc7hogb8/cffi/
Complete output (48 lines):
unable to execute 'gcc': No such file or directory
unable to execute 'gcc': No such file or directory
No working compiler found, or bogus compiler options passed to
the compiler from Python's standard "distutils" module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setup.py of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see http://stackoverflow.com/questions/22313407/
Otherwise, see https://wiki.python.org/moin/CompLangPython or
the IRC channel #python on irc.freenode.net.)
Trying to continue anyway. If you are trying to install CFFI from
a build done in a different context, you can ignore this warning.
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/cffi
copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/c
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
ERROR: aiohomekit 0.2.37 has requirement zeroconf[ip]<0.25.0,>=0.24.4, but you'll have zeroconf 0.25.0 which is incompatible.
Installing collected packages: setuptools, wheel, pycparser, cffi
Running setup.py install for cffi: started
Running setup.py install for cffi: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tc7hogb8/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tc7hogb8/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-79n6sz3z/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-_7ublk33/overlay --compile --install-headers /tmp/pip-build-env-_7ublk33/overlay/include/python3.7m/cffi
cwd: /tmp/pip-install-tc7hogb8/cffi/
Complete output (48 lines):
unable to execute 'gcc': No such file or directory
unable to execute 'gcc': No such file or directory
No working compiler found, or bogus compiler options passed to
the compiler from Python's standard "distutils" module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setup.py of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see http://stackoverflow.com/questions/22313407/
Otherwise, see https://wiki.python.org/moin/CompLangPython or
the IRC channel #python on irc.freenode.net.)
Trying to continue anyway. If you are trying to install CFFI from
a build done in a different context, you can ignore this warning.
running install
running build
running build_py
creating build
creating build/lib.linux-armv7l-3.7
creating build/lib.linux-armv7l-3.7/cffi
copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-3.7
creating build/temp.linux-armv7l-3.7/c
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-tc7hogb8/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-tc7hogb8/cffi/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-79n6sz3z/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-_7ublk33/overlay --compile --install-headers /tmp/pip-build-env-_7ublk33/overlay/include/python3.7m/cffi Check the logs for full command output.
ERROR: Command errored out with exit status 1: /usr/local/bin/python /usr/local/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-_7ublk33/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple --pre -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.
bash-5.0#
@gsghirinzetti You need to activate the virtual envinronment first (step 4). You don't need to upgrade Home Assistant anymore, as it is already being done in step 5.
➜ ~ docker exec -it homeassistant /bin/bash
bash-5.0# cd /
bash-5.0# source srv/homeassistant/bin/activate
bash: srv/homeassistant/bin/activate: No such file or directory
bash-5.0#
@gsghirinzetti find . -name activate
/usr/local/lib/python3.7/venv/scripts/common/activate
@gsghirinzetti find . -name broadlink
I think in HassIO there is no way around, you will have to replace the files manually. HassIO uses a different method for managing packages. I will adapt the instructions. I am using Hassbian, that's why the confusion.
./usr/local/lib/python3.7/site-packages/broadlink
./usr/src/homeassistant/homeassistant/components/broadlink
New instructions here.
now it works fine for me.
many thanks Felipe
Tonight I will create a pull request.
now it works fine for me.
which problem did you have? Also RM PRO not sending, or sending with huge delay, RF signal (to TC2 and others)?
I have the same problem. After upgrading from version 0.105.5, Broadlink does not work correctly with the TC switches. More precisely, it works, but time delays can be several minutes. At the same time, air conditioning and TV (smart components) are controlled without any delays. I downgrade back to version 0.105.5 and everything works fine again.
I have similar issue wioth RMPRO for RF to TC2 switches, not checked with RMPRO for IR commands.
Hope this fix will solve it
now it works fine for me.
which problem did you have? Also RM PRO not sending, or sending with huge delay, RF signal (to TC2 and others)?
I don't have RM PRO, onnly MP and SP
It is OK now. Have done according this instruction and everything works perfectly. Thanks Felipe.
I just submitted the changes for review. This process takes some time. Those in a hurry can follow these instructions to get their device working. I ask everyone who tests to report the result. The more tests you do, the easier it will be to approve the changes.
@abouelric @AndroVet @Klagio @LeoCal @lockyt @OleksandrBerchenko Would you mind checking if this solution solves your problems?
@felipediel My problem was magically solved in 0.107 - only 0.106 was completely broken for me.
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.
@indyster Thanks for the feedback!
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. DisableProtected 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
@Klagio Great! Thank you!
@Klagio Great! Thank you!
@felipediel
may I know what was the issue?
These RM PRO worked fine since many years, together with TC2 and other broadlink devices, Was one of the first IOT devices I bought like 3-4 years ago, and they always worked until 105 or 106 ... what happened? Which was the fix?
Out of curiosity.
TC2 work now fine, as devices with IR. Tonight I will try my SC1 and a MP1 (power strip)
@Klagio In the library, sockets were being created during device initialization and they were never closed or updated. When an error ocurred, the socket would break silently and could no longer be used. I fixed with https://github.com/mjg59/python-broadlink/pull/350.
In Home Assistant, this commit brought a logic error that breaks the sockets. So I proposed https://github.com/home-assistant/core/pull/34670.
There were actually two errors, which together were creating the problem.
No any solutions work, I think there is some misunderstanding. I will describe the problem step by step. There is a Broadlink system which includes:
The whole system (all devices) works fine: management (on/off, remote controll, etc) responds quickly. All statuses are changing correctly and quickly... but only (any one) Broadlink SC1 (DIY Smart Switch) device leads to problems in the entire system.
If at least one SC1 device "drops out" of the network (that is, it receives a status - unavailable, does not respond, no ping), AND if then this device tries to turn it on/off from HA -
You can restore the system to working. If SC1 (that was offline) is now online - reboot HA. If SC1 is still offline, be sure to remove the description of this SC1 from HA configuration and restart HA.
PS: this experiment has a 100500% repeatability.
I have an SC1 and do not have your problem, at least think so
@AndroVet Did you try the solution?
yes, I did it immediately
I have an SC1 and do not have your problem, at least think so
It is very important to repeat exactly as I described - disconnect one of your SC1 from the power and then try to on/off this offline SC1 via interface HA. Very well, if you have another SC1 (that remains connected to the network) - try to control it (right after you tried on / off any unavailable SC1)...
Could anyone try to reproduce this error? :point_up:
Please make sure to update first.
I have an SC1 and do not have your problem, at least think so
It is very important to repeat exactly as I described - disconnect one of your SC1 from the power and then try to on/off this offline SC1 via interface HA. Very well, if you have another SC1 (that remains connected to the network) - try to control it (right after you tried on / off any unavailable SC1)...
I have only 1 SC1
I have only 1 SC1
I checked - if SC1 is alone, there is no such problem. That is why in the initial message I wrote: "SC1 (DIY Smart Switch) - 2,3 ... or more pcs."
I have 2 HA systems in different places (different networks). Different platforms, different operating systems (Ubuntu 20.04 and Ubuntu 16.04). They behave exactly the same.
@AndroVet I found your problem. Tomorrow I will start working on a solution.
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!
Could you please also integrate into your development a file that adds support "BroadLink S1C (Security Alarm kit)". Now it has to be perforce installed in "custom_components/broadlink_s1c".
Suddenly, any incompatibility of this particular file with the main integration of brodlink leads to possible failures in the whole system?
Could anyone try to reproduce this error? ☝️
Please make sure to update first.
today I upgraded to 109
I do have to repeat your instaructions again, correct?
EDIT. I did, now commands sometimes are slow ( very sloooooow, like 20 seconds) sometimes are ok
I have the same issue with broadlink rm3 pro and TC switches
I already found the problem, I'm fixing it, but it will take a while because I want to start clean. I will improve the library to raise firmware exceptions and only then will I upgrade the Home Assistant to handle these exceptions.
I updated to 109.2, then redid the instructions. Now it is slower, manageable (it takes 3 to 5 seconds for the RM PRO to turn on/off a TC2), but not perfect: a light should switch on/off instantly, as the app, especially when combined to motion sensors.
WOnder if it can be fixed?
EDIT: now its fast again, I guess you need to wait some minutes after a HASSIO restart to have it working well again (why that??)
@Klagio I'm working on it. I already changed the library, now I need to bring these changes to Home Assistant. By the way, the instructions I put above are out of date. I am preparing a new version. I'll let you know when I finish.
@Klagio I'm working on it. I already changed the library, now I need to bring these changes to Home Assistant. By the way, the instructions I put above are out of date. I am preparing a new version. I'll let you know when I finish.
thanks a lot for your work. HA team is giving as an update a day, difficult to keep up :p
Hi guys. I just finished the solution. Here are the new instructions. I hope it works.
I followed the instruction but its breaking my Homeassistant(109.5)
Platform error switch.broadlink - cannot import name 'SwitchEntity' from 'homeassistant.components.switch' (/usr/src/homeassistant/homeassistant/components/switch/__init__.py)
Platform error switch.broadlink - cannot import name 'SwitchEntity' from 'homeassistant.components.switch' (/usr/src/homeassistant/homeassistant/components/switch/__init__.py)
Platform error switch.broadlink - cannot import name 'SwitchEntity' from 'homeassistant.components.switch' (/usr/src/homeassistant/homeassistant/components/switch/__init__.py)
Platform error switch.broadlink - cannot import name 'SwitchEntity' from 'homeassistant.components.switch' (/usr/src/homeassistant/homeassistant/components/switch/__init__.py)
Platform error switch.broadlink - cannot import name 'SwitchEntity' from 'homeassistant.components.switch' (/usr/src/homeassistant/homeassistant/components/switch/__init__.py)
@ishalem This class exists only in the latest versions. Are you sure you have 109.5? If not, please update Home Assistant and perform the steps again.
I'm on Home Assistant 0.109.5 and I'm also getting this error:
Log Details (ERROR)
Logger: homeassistant.config
Source: components/broadlink/switch.py:10
First occurred: 4:35:00 PM (2 occurrences)
Last logged: 4:35:00 PM
Platform error: switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config.py", line 777, in async_process_component_config
platform = p_integration.get_platform(domain)
File "/usr/src/homeassistant/homeassistant/loader.py", line 279, in get_platform
f"{self.pkg_path}.{platform_name}"
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 10, in <module>
from homeassistant.components.switch import DOMAIN, PLATFORM_SCHEMA, SwitchEntity
ImportError: cannot import name 'SwitchEntity' from 'homeassistant.components.switch' (/usr/src/homeassistant/homeassistant/components/switch/__init__.py)
I'm on latest 109.5
On 7 May 2020, at 16:29, Felipe Martins Diel notifications@github.com wrote:
@ishalem This class exists only in the latest versions. Are you sure you have 109.5? If not, please update Home Assistant and perform the steps again.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Ok, I think this hasn't been released yet. We are going for a manual update. Gosh. Just a sec.
I added two new instructions: Update switch component
and Update remote component
.
installed it and it looks like it works, ill give it few more hours to see its stable
Thanks!
@ishalem Great! Thanks for the feedback!
Mine says bad file descriptor when trying to switch a switch, is there something I can do on my side?
Log Details (ERROR)
Logger: homeassistant.components.websocket_api.http.connection.1800308976
Source: components/broadlink/device.py:49
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 5:13:36 PM (1 occurrences)
Last logged: 5:13:36 PM
[Errno 9] Bad file descriptor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1247, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1282, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 213, in handle_service
self._platforms.values(), func, call, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 453, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 596, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 484, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 198, in async_turn_on
if await self._async_send_packet(self._command_on):
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 214, in _async_send_packet
await self.device.async_request(self.device.api.send_data, packet)
File "/usr/src/homeassistant/homeassistant/components/broadlink/device.py", line 49, in async_request
result = await self.hass.async_add_executor_job(partial_function)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/broadlink/__init__.py", line 608, in send_data
response = self.send_packet(0x6a, packet)
File "/usr/local/lib/python3.7/site-packages/broadlink/__init__.py", line 296, in send_packet
cs.sendto(packet, self.host)
OSError: [Errno 9] Bad file descriptor
@ov1d1u I just updated the instructions. Please update python-broadlink again.
@felipediel Sorry, I ony ran the code from the Update switch component and Update remote component sections. The errors are gone now, but RF commands still doesn't work and the component seems to keep losing connection with the RM pro:
2020-05-07 17:20:37 ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to send packet: The device is offline
2020-05-07 17:21:29 ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to send packet: The device is offline
2020-05-07 17:21:36 ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to send packet: The device is offline
2020-05-07 17:21:44 WARNING (MainThread) [homeassistant.components.broadlink.device] Connected to device at 192.168.0.101
2020-05-07 17:23:53 WARNING (MainThread) [homeassistant.components.broadlink.device] Disconnected from device at 192.168.0.101: The device is offline
2020-05-07 17:23:53 ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to send packet: The device is offline
2020-05-07 17:24:12 ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to send packet: The device is offline
2020-05-07 17:24:24 ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to send packet: The device is offline
2020-05-07 17:24:27 WARNING (MainThread) [homeassistant.components.broadlink.device] Connected to device at 192.168.0.101
2020-05-07 17:25:05 WARNING (MainThread) [homeassistant.components.broadlink.device] Disconnected from device at 192.168.0.101: The device is offline
2020-05-07 17:25:05 ERROR (MainThread) [homeassistant.components.broadlink.switch] Failed to send packet: The device is offline
2020-05-07 17:25:07 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.broadlink_temperature is taking over 10 seconds
2020-05-07 17:25:07 WARNING (MainThread) [homeassistant.components.broadlink.device] Disconnected from device at 192.168.0.101: The device is offline
I'm trying now to remove the device's temperature sensor from HA (if that's possible), will come back with feedback.
@ov1d1u Are you using custom components?
Yes, I'm using hacs, smartir and customizer. I renamed the custom_components
directory to something else but this doesn't seems to change anything.
@ov1d1u What is the model of your device?
@felipediel Broadlink RM Pro+
@ov1d1u I need to debug you. Please run this script using python3 debug.py
. If the LED blinks, try to learn a code. Then send me debug.txt.
@felipediel Unfortunately I don't have physical access to the device right now (I'm not at home), I'll try the script as soon as possible.
@ov1d1u Okay.
works well for me
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.
Still slow, it took 50 seconds to turn on a light with RM PRO
@Klagio Any error messages? Could you try a clean installation, with minimal configuration and no custom components?
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".
In which version of Homeassistant it will be updated?
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.
maybe you can release this part and add more fix later?
can it be deployed using HACS? if yes we can take it as BETA and keep
updating HA
On Sun, May 10, 2020 at 9:35 AM AndroVet notifications@github.com wrote:
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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/core/issues/32313#issuecomment-626281607,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA5FXFGHKU4WUPJQXK5W4VLRQZDMHANCNFSM4K5RUYTQ
.
@AndroVet Thanks for the feedback. I just solved the problem. Update the sensor platform to fix it.
@ishalem This process takes time and I have no control over it. I recommend that you create a bash script to automate file replacement for now.
Hi guys. I just finished the solution. Here are the new instructions. I hope it works.
have done according your instruction (HA 0.109.6). RM Pro and SP3 work perfectly but have the problem with MP1 switches. After restarting HA for some time they (MP1) work correctly but after that are lost and do not work.
Here is the log:
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_3_1_bath_room_1 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_3_2_heating_motor fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_3_3_slot_3 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_3_4_slot_4 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_4_1_heating_parent fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_4_2_heating_anna fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_4_3_heating_lera fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_4_4_heating_viktoriya fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_5_1_bath_room_2 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_5_2_wardrobe fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_5_3_heating_motor fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_5_4_slot_4 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_6_1_heating_attic fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_6_2_heating_server fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_6_3_heating_library fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_6_4_heating_study fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_1_1_heating_summer_kitchen fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_1_2_heating_shed fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_1_3_heating_motor fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_1_4_slot_4 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_2_1_heating_living_room fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_2_2_heating_kitchen fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_2_3_heating_guest fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:07 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_2_4_heating_hall_1 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
2020-05-10 22:42:13 ERROR (MainThread) [homeassistant.helpers.entity] Update for switch.mp1_3_1_bath_room_1 fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 279, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 470, in async_device_update
await self.async_update()
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 298, in async_update
self._state = self._parent_device.get_outlet_status(self._slot)
File "/usr/src/homeassistant/homeassistant/components/broadlink/switch.py", line 324, in get_outlet_status
return self._states[f"s{slot}"]
TypeError: 'coroutine' object is not subscriptable
@pimenkov Thank you! It's fixed now. Please update switch platform.
@pimenkov Thank you! It's fixed now. Please update switch platform.
what do you mean to update switch platform? how?
@pimenkov Follow the instructions. In the fourth step, update only the switch platform of the Broadlink integration.
@pimenkov Follow the instructions. In the fourth step, update only the switch platform of the Broadlink integration.
Grate. Thanks, after 10 hours of work it is OK. When all this changes will be integrated in HA? Updates of HA are very often and each time we have to make these manipulations.
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. DisableProtected 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 device.py https://raw.githubusercontent.com/felipediel/home-assistant/fix_connection/homeassistant/components/broadlink/device.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 switch component
cd /usr/src/homeassistant/homeassistant/components/switch
wget -O __init__.py https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/components/switch/__init__.py
Update remote component
cd /usr/src/homeassistant/homeassistant/components/remote
wget -O __init__.py https://raw.githubusercontent.com/home-assistant/core/dev/homeassistant/components/remote/__init__.py
Update python-broadlink
cd /usr/local/lib/python3.7/site-packages/broadlink
wget -O __init__.py https://raw.githubusercontent.com/mjg59/python-broadlink/master/broadlink/__init__.py
wget -O exceptions.py https://raw.githubusercontent.com/mjg59/python-broadlink/master/broadlink/exceptions.py
7. Restart Home Assistant
Please let me know if it worked so I can create a pull request.
Hello! after doing this my Broadlink devices are working but i get this in my logs:
Logger: homeassistant.components.switch
Source: components/switch/__init__.py:125
Integration: Switch (documentation, issues)
First occurred: 10:53:32 AM (5 occurrences)
Last logged: 10:53:46 AM
SwitchDevice is deprecated, modify MqttSwitch to extend SwitchEntity
SwitchDevice is deprecated, modify SwitchTemplate to extend SwitchEntity
SwitchDevice is deprecated, modify InsteonSwitchDevice to extend SwitchEntity
SwitchDevice is deprecated, modify InsteonOpenClosedDevice to extend SwitchEntity
SwitchDevice is deprecated, modify SmartThingsSwitch to extend SwitchEntity
Apparently everything works Ok but why this for the first time?
has relation with your update process?
@alfonsolsl You components are out of date. These messages will disappear in the next release.
@pimenkov The PR is open. I have no control over the release.
@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!
@Klagio Could you help me improve support for your SP1 device? You just need to run a few debug scripts...
Sure, but from Monday, tomorrow busy and weekend far from home
Would love to help but I only have SP2, SP3, RM mini and RM pro
On Fri, Jun 19, 2020 at 1:13 AM Klagio notifications@github.com wrote:
Sure, but from Monday, tomorrow busy and weekend far from home
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/core/issues/32313#issuecomment-646331630,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AA5FXFCFDW2PHB4LJ5BEMFTRXKGQDANCNFSM4K5RUYTQ
.
@ishalem Thank you! I will definitely need your help in the future. I am working on a complete refactoring of the Broadlink integration and I would like to ensure that everything is working before the release.
@AndroVet Are you able to ping your SC1 devices?
Most helpful comment
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!