New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The device storage is full when trying to learn new codes on broadlink.remote component #35875
Comments
Hey there @Danielhiversen, @felipediel, mind taking a look at this issue as its been labeled with a integration ( |
Hi @mikepruett3. Thanks for reporting this error. |
Testing the solution1. Set up SSH add-on1.1. Follow this tutorial. 2. Open a terminal and connect to your device via SSH
3. Change user to homeassistant.
4. Let's update some files
7. Restart Home AssistantPlease let me know if it worked so I can create a pull request. |
@felipediel I had the same issue and just tried your potential fix, same behavior. |
I removed the "type" from my configuration.yaml and it fixed the issue. Broadlinkswitch:
|
@chrisfonte Your problem was in the config file, it is different. |
So I already had SSH access to the ubuntu server running my hassio_supervisor and homeassistant containers. I did docker exec into the homeassistant container, and pull the init.py file down and restart. Still having the same issue. |
@mikepruett3 Please run this file using |
If the LED blinks during debugging, try to capture a code. |
Here is the debug.txt file. I did look at the closest device when I ran the debug, and no LED activity at all. |
Your firewall is blocking discovery. You can run debug.py using your computer if you want, just make sure you are on the same network. |
So this worked before updating to 0.110.0 this morning. I have not made any other network changes, or any changes on my firewall (Ubiquity EdgeRouterX). Having said that, I did do a few tests using the broadlink python3 library (my python sucks, but I did find some discovery steps on From my workstation on the same network python3
Python 3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import broadlink
>>> devices = broadlink.discover(timeout=30)
>>> print(devices)
[<broadlink.rm object at 0x0000021898400820>, <broadlink.rm object at 0x00000218984007C0>] yet when I try from the homeassistant container... docker exec -it homeassistant /bin/bash
bash-5.0# python3
Python 3.7.7 (default, Apr 28 2020, 13:57:57)
[GCC 9.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import broadlink
>>> devices = broadlink.discover(timeout=30)
>>> print(devices)
[] Could this have something to do with hassio ingress or apparmor? |
On a whim, I tried the same test from the bash console of the ubuntu server hosting the homeassistant container, and discovery works there as well... $ python3
Python 3.6.9 (default, Apr 18 2020, 01:56:04)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import broadlink
>>> devices = broadlink.discover(timeout=30)
>>> print(devices)
[<broadlink.rm object at 0x7f52dc838438>, <broadlink.rm object at 0x7f52dc8385f8>]
>>> |
You need to run debug.py on your workstation. |
Ok, so I ran the debug.py from the ubuntu server running the homeassistant container (not from inside the container), and this is the debug.txt file that was created... Note, when I run the debug.py from inside the homeassitant container, I get this debug.txt output |
Here is the debug.txt from my workstation... |
Ok, the debug is working. Now try to learn a code when the LED blinks and send me debug.txt. Don't do it inside the container. |
Here is the debug.txt, I ran it from the ubuntu server console. |
Strange, there are no error codes in the response. Tomorrow I will create a custom debug script to understand what is going on. I'll keep you informed. |
Hi Guys, If i send a command previously learned from itself all works, i see the white led blink. Available for testing or debug.... |
I have a same problem |
I have a same problem too - 0.110.0 and a RM3 mini |
I have a same problem too. ( Home Assistant Core release with the issue: 0.110.0 and a RM4 mini) |
Same error here And no notifications when learning. Hassio 0.110.0. |
Thank you @felipediel |
@felipediel Does that mean the codes are sent, and the error is kinda irrelevant? |
I deleted my previous comment because I was wrong and I don't want to create confusion. I just implemented a possible solution based on a deeper analysis of the debug files. Could anyone help me test it? @sebastian-steinmann I was wrong. The error needs to be handled. |
this update not work: 2020-05-25 22:55:51 ERROR (MainThread) [homeassistant.components.remote] Error while setting up broadlink platform for remote The above exception was the direct cause of the following exception: Traceback (most recent call last): |
I updated the file to handle this exception. Please try again. |
mmmm error: 2020-05-25 23:19:57 ERROR (MainThread) [homeassistant.components.broadlink.remote] The selected class for 10.0.0.82 is <class 'broadlink.rm'> 2020-05-25 23:21:41 ERROR (MainThread) [homeassistant.components.broadlink.remote] Learning: host=10.0.0.82, class=<class 'broadlink.rm'>, request_header=b'' |
No other error? It seems to be working fine. Check the |
2020-05-25 23:22:19 ERROR (MainThread) [homeassistant.components.broadlink.remote] Failed to learn 'Turn on': No code received in the ".storage" folder I had removed the broadlink files, but now no file that starts with "broadlink_..." _appears |
|
Not sure if this helps, but I just had the exact same issue. Updated to 0.110.2 and got "The device storage is full" errors when trying to learn remote codes. In my case, adding the type field to the configuration (in my case, rm4_mini) actually fixed the problem. |
now it works !! the latest update fixes |
The last update contains only error messages. I have no idea what was going wrong. But I am happy to know that your problem is solved. |
I typed the "type"( rm4c_mini) again, restarted. Everything is working fine now. |
Update to 0.110.3 and add typed the "type"( rm4_pro), |
@maorbenamer RF is not yet supported. I will add this feature after the refactor I'm doing. |
Thanks for the fast reply. 😀 And I thought I was wrong in one of the settings 🤦🏻♂️ |
@sebastian-steinmann Could you help me improve support for your SP1 device? You just need to run a few debug scripts... |
Yeah, hit me. Unsure of the classifications tho, thought I had an rm device. |
Hey guys, I'm really new to H.A. I think I'm having the exact same issue with rm4c. It can use remote.send_command to send the only code I managed to make it learn, but learn_command and broadlink services also gives the storage full error. I did run the solution suggested by @felipediel but so far nothing has change. I ran the debug too. |
@sebastian-steinmann Ah, sorry, I thought you had an SP1. @jose4191 You need to specify the correct type in the config. Use |
Hi! You're right. I did change it, but broadlink switch still gives the storage full error. I did manage to get a template switch working using scripts and remote.send_command. Edit: just in case, broadlink services dissapeared after adding type. |
@jose4191 You need to specify the device type for switches as well. |
RF is supported already? |
@maorbenamer Nope. You can use this workaround for now. |
I had this issue until I set in configuration.yaml the device type. |
@felipediel |
It will take some time, we have two updates in the queue. |
Thanks for the response, were can I update about the release day? |
Thanks for your hard work. i can't seem to find anything about the update on the blog? i have one rm3_mini working perfectly but the new one doesn't work and says "Failed to learn 'Turn on': The device storage is full" |
@Leeharg You need to specify the correct device type. It is probably |
FYI. It tried rm_mini3_redbean and rm_mini3_newblackbean but it was not working until I tried rm_mini. I dont know how to to see which model im using but rm_mini works for me. I have had this problem for quite a while and now it is finally solved for me. Thank you. |
The problem
I was able to use the remote.learn_command service yesterday, before upgrading to 0.110.0 this morning. Now when I try to learn a code, I get an error about The device storage is full. I have plenty of disk space available for my HASS install... and I have tried this on multiple Broadlink RM Mini 3's and have the same issue.
Environment
Problem-relevant
configuration.yaml
Traceback/Error logs
Additional information
The text was updated successfully, but these errors were encountered: