Core: The device storage is full when trying to learn new codes on broadlink.remote component

Created on 20 May 2020  ·  114Comments  ·  Source: home-assistant/core

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.

service: remote.learn_command
entity_id: remote.living_room
device: television
command: test

Environment

  • Home Assistant Core release with the issue: 0.110.0
  • Last working Home Assistant Core release (if known):
  • Operating environment (Home Assistant/Supervised/Docker/venv): Docker
  • Integration causing this issue: Broadlink
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/broadlink/

Problem-relevant configuration.yaml

platform: broadlink
name: "Living Room"
host: 10.10.10.xx
mac: 'XX:XX:XX:XX:XX:XX'
type: rm_mini

Traceback/Error logs

Log Details (ERROR)
Logger: homeassistant.components.broadlink.remote
Source: components/broadlink/remote.py:305
Integration: broadlink (documentation, issues)
First occurred: 2:04:46 PM (1 occurrences)
Last logged: 2:04:46 PM

Failed to learn 'test/television': The device storage is full

Additional information

broadlink

Most helpful comment

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.

All 114 comments

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!
(message by CodeOwnersMention)

Hi @mikepruett3. Thanks for reporting this error.
I'll fix it, but since I don't have the device, I'll need help to test the solution.

Testing the solution

1. Set up SSH add-on

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

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

ssh USERNAME@HOST

3. Change user to homeassistant.

docker exec -it homeassistant /bin/bash

4. Let's update some files

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

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

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

7. Restart Home Assistant

Please 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.

Broadlink

switch:

  • platform: broadlink
    host: "192.168.101.214"
    mac: '24:DF:A7:36:D0:74'
    # type: rm_mini3_newblackbean
    switches:
    ac:
    friendly_name: "Chris Office AC"
    command_on: 'JgCSAAABIpIXNRUSFjYWNRY2FjUWEhYRFjYWEhU2FhIWERYSFhEWEhYRFhIWERYSFhEWNhY1FhIWERYSFjYVNhY2FhEWNhYRFhIWNRYSFgACjhYRFhIWEhUSFhIVEhYSFRIWEhUSFjYVEhYSFhEWNhUSFhIWERYSFhEWEhYRFhIWERYSFhEWEhYSFRIWERY2FjYVAA0FAAAAAAAA'
    command_off: 'JgCSAAABIZMVNxUSFTcVExQ3FRMUNxUSFRMVNhU3FRMVExQTFRIVExUSFRMVExQTFRMUExUTFBMVEhUTFTYVNxU2FRMVNxUSFRMVNxQTFQACjxUSFRMVExQTFRIVExUSFRMVEhUTFRMUExUSFRMVNhUTFRIVExUTFBQUExQUFBMUFBQTFBQUExUTFDcVEhU3FRIVAA0FAAAAAAAA'
    string:
    friendly_name: "LED String Lights"
    command_on: 'JgBwAAABJZISExIUEhQSFBIUEhQSFBIUEjcTNhM2FDYSNxM2EzYTNxI3ExMSNxMTExMTExM2FBITExU1EhQSNxI3FTQTExM3FQAFCQABKUkTAAxHAAEoSRQADEgAASdJFAAMRwABJ0oSAAxJAAEnSRQADQUAAAAAAAAAAA=='
    command_off: 'JgBwAAABI5MUExMTEhQTExMTEhQTExMTEzYUNRQ2EzYTNhM3EzYTNhQ1FDQVNhQSFBIUEhM3ExMTExMTEhQSNxM2FDYTExI3EwAFDQABKEkUAAxHAAEpSRMADEkAASdJFAAMSAABJ0oTAAxIAAEnShQADQUAAAAAAAAAAA=='

@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 python3 debug.py and send me debug.txt.

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.

debug.txt

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
the python-broadlink github page.

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...

debug-outside-container.txt

Note, when I run the debug.py from inside the homeassitant container, I get this debug.txt output

debug-inside-container.txt

Here is the debug.txt from my workstation...

debug-from-workstation.txt

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.

code-learn-debug.txt

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,
landing here after searching.. same problem here with 0.110 on hassOS via Hyper-V and a RM4 mini.
Launching services broadlink.learn and remote.learn_command report same error:

image

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)
ERROR (MainThread) [homeassistant.components.broadlink] Failed to learn: The device storage is full

Same error here And no notifications when learning. Hassio 0.110.0.

Thank you @felipediel
Unfortunately i cant learn any command because the RM4 dont receive any ir code. After call the services the error appearing immediately and with any iteraction with the broadlink.
The white led doesnt appear.. it works only if i manually send an ir but i dont have finished the capture work... 😄
I will put my self in queue for the fixing! 🤞
See you

@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.

I'm able to test, and it's no longer throwing the error in the logs.

But this is also my first time setting up this integration, and I'm unsure how to view the learned code. Where do I see the learned code?

@JayNewstrom Are you using broadlink.learn or remote.learn_command?

I'm using remote.learn_command. But I can setup something else if that's the way to go.

I see now, I just didn't finish reading the documentation, my bad.

I see the learned commands in the json file/root/config/.storage

Everything seems to be working as expected on my end.

Great! I will create a PR.

@felipediel Will the solution also work for Hassio?

I was testing in Hassio and broadlink rm mini 4

I just tested this, but still getting the error.

Even tried rebooting the entire host-system.
What kinda info do you need to debug?

@sebastian-steinmann Are you sure? Storage error?
Please run this file using python3 debug.py and send me debug.txt.

Getting no device discovered, not sure how to get the text-file out, but that seems like the gist of it. So might be something on my end.

But yeah, getting the full error:
Failed to learn 'power/tv': The device storage is full

I just updated the files to wait a second before reading the data. Could you try again?

Still the same error, but I got the debug.py script working by adding my localip and discoverip in the script.

Its all seemed to work fine then.
Do you want the debug.txt after my changes?

Also, best way to get the file out of the container?

You can run debug.py on your computer.

I just saw I was getting the error on the wrong type of component, set type: rm4_mini, and now it works!

it was on switch:218, and thats sp1

I'l kill you hahahaha :smile:
Great! Ready to merge.

Testing the solution

1. Set up SSH add-on

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

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

ssh USERNAME@HOST

3. Change user to homeassistant.

docker exec -it homeassistant /bin/bash

4. Let's update some files

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

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

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

7. Restart Home Assistant

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

Just tried these new files, and its working for me now! No storage error, and I was able to learn and use the code.

Thanks!

@mikepruett3 Thanks for the feedback!

@felipediel having the same issue.
Merged in your change and now I get Platform error switch.broadlink - cannot import name 'DOMAIN' from 'homeassistant.components.broadlink' (/usr/src/homeassistant/homeassistant/components/broadlink/__init__.py) Platform error switch.broadlink - cannot import name 'DOMAIN' from 'homeassistant.components.broadlink' (/usr/src/homeassistant/homeassistant/components/broadlink/__init__.py)

@Critical2104 You did something wrong. Replace all files in the folder and it will work fine. If it doesn't work, the problem is being caused by a custom component.

@Critical2104 You did something wrong. Replace all files in the folder and it will work fine. If it doesn't work, the problem is being caused by a custom component.

Flashed a new HA instance, only other custom component is SmartIR, merged in again your changes and now I always get
Failed to send packet: The device storage is full

I have two rm mini 3, one bought almost one year ago and it is working fine, and another one bought last week that is causing me this issue. Apparently the two devices are identical.

Testing the solution

1. Set up SSH add-on

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

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

ssh USERNAME@HOST

3. Change user to homeassistant.

docker exec -it homeassistant /bin/bash

4. Let's update some files

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

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

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

7. Restart Home Assistant

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

works on my broadlink RM mini 3 (new firmware):
remote:

  • platform: broadlink
    host: '10.0.0.82'
    mac: 'XX:XX:XX:XX:XX'
    type: rm_mini3_newblackbean

Thanks!!!

I also had this problem and I just upgraded to the 0.110.2 and it seems to have fixed the problem, buuuttt... :-)
I just installled a new remote, and noticed the following. All of the other remotes I have create 2 files in the .storage folder.
broadlink_remote__flags
broadlink_remote__codes

This time only the _codes file was created, but not the _flags file.
I don't know if this means anything, but I just thought you should know @felipediel .

Everything works fine.
Thank you.

@anamika784 @marco76mk Thanks for the feedback.

@orson1282 That's ok, the file will be created when you capture a toggle command. But thanks for the feedback anyway.

@Critical2104 Could you try without SmartIR?

I updated to version 0.110.2
With this change it works "broadlink.learn"
"remote.learn_command" doesn't work

here is the error:
2020-05-24 19:58:04 ERROR (MainThread) [homeassistant.components.broadlink.remote] Failed to learn 'Turn off/television': The device storage is full

@marco76mk This error seems quite impossible to happen with this update. Or maybe there is something I don't know. Could you please check if you have this file in /usr/src/homeassistant/homeassistant/components/broadlink/remote.py?

I'm having this same "Storage is Full" running 0.110 in Docker on Ubuntu. I'm not sure where the homeassistant/components folder is so I can test this fix you have. Is there a way to make this happen? Of will the fix be in the next full release?
I'm working with a RM Mini 3, the red one, and I have been able to get HA to see the device and connect, but have had no luck sending or learning any codes using the remote or switch components.For reference, I have a RM Pro in another room and I have successfully use broadlink.send everyday for months. I got the remote.learn to work for that one as well, but have not implemented it yet.

@ericksonian It's merged. You just need to update Home Assistant.

Okay thank you! I'm on 0.110.1 in docker, and it says its updated. So I'll try again later today or tomorrow and see how it goes

@ericksonian You need 0.110.2.

@marco76mk This error seems quite impossible to happen with this update. Or maybe there is something I don't know. Could you please check if you have this file in /usr/src/homeassistant/homeassistant/components/broadlink/remote.py?

I confirm that the file on HASSIO is exactly that.

@marco76mk Do you have anything in the custom_components/broadlink folder?

@marco76mk Do you have anything in the custom_components/broadlink folder?

no, I don't have any "custom_components/" folders in my config folder

Strange. Look. This error shouldn't be raised. Perhaps it is being generated here, but until then I thought it was impossible.

I need to debug you. Please run this file using python3 debug.py. If the LED blinks, try to learn a code. Then send me debug.txt.

@marco76mk Do you have anything in the custom_components/broadlink folder?

no, I don't have any "custom_components/" folders in my config folder

bash-5.0# cd /usr/src/homeassistant/homeassistant/components/broadlink
bash-5.0# ls -lah
total 88K
drwxr-xr-x 1 root root 4.0K May 24 16:05 .
drwxr-xr-x 1 root root 28.0K May 24 16:05 ..
-rw-r--r-- 1 root root 3.9K May 24 15:01 __init__.py
drwxr-xr-x 2 root root 4.0K May 24 16:05 __pycache__
-rw-r--r-- 1 root root 711 May 24 15:01 const.py
-rw-r--r-- 1 root root 1.8K May 24 15:01 device.py
-rw-r--r-- 1 root root 219 May 24 15:01 manifest.json
-rw-r--r-- 1 root root 10.5K May 24 15:01 remote.py
-rw-r--r-- 1 root root 5.1K May 24 15:01 sensor.py
-rw-r--r-- 1 root root 465 May 24 15:01 services.yaml
-rw-r--r-- 1 root root 10.5K May 24 15:01 switch.py

this is what I find in the component folder

Try this: rm -r __pycache__

Sorry for my bad English.
If I use the command "broadlink.learn" it works !!! and returns the button code.
If I use the "remote.learn_command" command it doesn't work and returns the error "The device storage is full"
I tried clearing the folder cache. It does not solve.

reboot not solve

I tried to run the debug but it returns me this. I don't know if I did the right thing.

bash-5.0# cd /usr/src/homeassistant/homeassistant/components/broadlink
bash-5.0# ls -lah
total 112K
drwxr-xr-x 1 root root 4.0K May 24 22:03 .
drwxr-xr-x 1 root root 4.0K May 24 16:05 ..
-rw-r--r-- 1 root root 3.9K May 24 15:01 __init__.py
-rw-r--r-- 1 root root 711 May 24 15:01 const.py
-rw-r--r-- 1 root root 38.1K May 24 22:00 debug.py
-rw-r--r-- 1 root root 381 May 24 22:00 debug.txt
-rw-r--r-- 1 root root 1.8K May 24 15:01 device.py
-rw-r--r-- 1 root root 219 May 24 15:01 manifest.json
-rw-r--r-- 1 root root 10.5K May 24 15:01 remote.py
-rw-r--r-- 1 root root 5.1K May 24 15:01 sensor.py
-rw-r--r-- 1 root root 465 May 24 15:01 services.yaml
-rw-r--r-- 1 root root 10.5K May 24 15:01 switch.py
bash-5.0# python3 debug.py
bash-5.0# cat debug.txt
22:09:51,731 root INFO Broadlink API Debug
22:09:51,733 __main__ DEBUG Starting discovery...

22:09:51,749 __main__ DEBUG [Request]
bytearray(b'x00x00x00x00x00x00x00x00x01x00x00x00xe4x07\tx16x14x07x18x05x00x00x00x00xacx1e x01xc7x93x00x00x00x00x00x00x00x00x06x00x00x00x00x00x00x00x00x00')

22:09:56,755 __main__ DEBUG No device discovered.

debug.txt
This is the txt file when starting debugging from my PC.
the led flashes and has captured the code

The debug is ok, no errors.

head -328 remote.py | tail -1

What is the output?

ha > login
docker exec -it homeassistant /bin/bash
bash-5.0# cd /usr/src/homeassistant/homeassistant/components/broadlink
bash-5.0# head -328 remote.py | tail -1
except (ReadError, StorageError):
bash-5.0#

The "remote.learn_command" doesn't work for me either. I deleted the __pycache__ file. Here is the error:
2020-05-24 22:45:30 ERROR (MainThread) [homeassistant.components.broadlink.remote] Failed to learn 'Turn on/television': The device storage is full

I'm working on an update that will help us understand what is going on.

Could anyone get this update, call remote.learn_command and send me the error message?

@marco76mk @anamika784 :point_up:

does not work.
I have deleted the pycache folder
I restarted "ha"
the error message has changed:

2020-05-25 08:30:32 ERROR (MainThread) [homeassistant.components.broadlink.remote] Failed to enter learning mode: The device storage is full
2020-05-25 08:30:32 ERROR (MainThread) [homeassistant.components.broadlink.remote] Failed to learn 'Turn on': The device storage is full

I still have the same problem:
Failed to learn 'mute / television': The device storage is full
Device: RM4_PRO
Home Assistant: 0.110.2
I also tried with Switch
And also with Remote

Hi!

I'm having the same problem with the storage is full, but trying to call the service broadlink.learn gives a Service not found error.

Mine is a Manual installation on a RPi

Thank you

In case it helps anyone, I had the "storage full" a few days ago, when using the remote.learn_command service on Broadlink "RM4c mini" after updating from 0.109.6 to 0.110.1 but, today, after updating to 0.110.2, it started working again (and remote.send_command was able to send the learned command/code)

@marco76mk @anamika784 @maorbenamer @Critical2104 I understand the problem now. You specified the wrong type in the remote platform config. Remove type: whatever and it will work fine.

@mikicof Your problem is different. You need to set up a switch to register broadlink.learn service.

The 'type' attribute is clearly causing confusion. This will be no longer necessary soon. For now, the rule is not to specify the type if you are not experiencing problems.

The 'type' attribute is clearly causing confusion. This will be no longer necessary soon. For now, the rule is not to specify the type if you are not experiencing problems.

I try to give my 2 cents, but I'm a beginner so I may have done something wrong, expecially while applying the update you suggested.

I'm having the same problem of the users above while trying to learn a command via service remote.learn_command and via broadlink.learn.

I'm running a supervised install (if it can help) and I have not specified any type in my remote platform config.

These are the errors I get via remote.learn_command:

Logger: homeassistant.components.broadlink.remote
Source: components/broadlink/remote.py:302
Integration: broadlink (documentation, issues)
First occurred: 18:24:07 (1 occurrences)
Last logged: 18:24:07

Failed to enter learning mode: The device storage is full
Logger: homeassistant.components.broadlink.remote
Source: components/broadlink/remote.py:288
Integration: broadlink (documentation, issues)
First occurred: 18:24:09 (1 occurrences)
Last logged: 18:24:09

Failed to learn 'Turn on': The device storage is full

I followed the update instructions minus the SSH part because I have access to my RPi with VNC, so I did it with his terminal. If this is a bad practice or if it was useless I can try with SSH.

I'm sorry if I said or did something wrong, but I'm just beginning to learn linux and ha in this quarantine period :)

I have removed type: from my config. I' sorry , but it's doesn't work yet.

Logger: homeassistant.components.broadlink.remote
Source: components/broadlink/remote.py:306
Integration: broadlink (documentation, issues)
First occurred: 19:02:19 (1 occurrences)
Last logged: 19:02:19
Failed to learn 'Turn on/television': The device storage is full

Strange. Did you restart Home Assistant? Please show me your config.

Of course I restarted. My configuration.yaml:
remote:

  • platform: broadlink
    host: 192.168.0.184
    mac: 'xx:xx:xx:xx:xx:xx'

Home Assistant 0.110.2
The "broadlink.learn" works well.

I removed the "type" from the configuration.
now if i start the command "remote.learn_command" the led turns on and in notifications it asks me to press the button on the remote control.
I press and the led turns off, but in the logs I get this error:

2020-05-25 19:50:16 ERROR (MainThread) [homeassistant.components.broadlink.remote] Failed to learn 'Turn on/television': No code received

in the "config/.storage" only this file

bash-5.0# cat broadlink_remote_24dfa727d9ee_flags
{
"data": {},
"key": "broadlink_remote_24dfa727d9ee_flags",
"version": 1

@mikicof Your problem is different. You need to set up a switch to register broadlink.learn service.

I’ve changed the configuration and now the error is the same as remote.learn_configuration: Failed to enter learning mode: The device storage is full

Something really obscure is going on. Those services have the same internal logic. If one works, the other should also work. I changed the file to display more error messages. Could someone update and send me the errors?

@anamika784 @maorbenamer Sorry, I was wrong about your config. I just realized that you have RM4 series devices. You should stick to type: rm4_mini and type: rm4_pro, respectively.

this update not work:

2020-05-25 22:55:51 ERROR (MainThread) [homeassistant.components.remote] Error while setting up broadlink platform for remote
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/broadlink/remote.py", line 134, in async_setup_platform
d = next(filter(lambda d: d.host[0] == host, devices))
StopIteration

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
RuntimeError: coroutine raised StopIteration

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

2020-05-25 23:21:41 ERROR (MainThread) [homeassistant.components.broadlink.remote] Learning: host=10.0.0.82, class=, request_header=b''
2020-05-25 23:21:49 ERROR (MainThread) [homeassistant.components.broadlink.remote] Learning: host=10.0.0.82, class=, request_header=b''

No other error? It seems to be working fine. Check the .storage folder.

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

python3 --version

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 !!
I copied the "broadlink_remote_24dfa727d9ee_flags" file again and tried to run the "remote.learn_configuration" command again
now the files broadlink_remote_24dfa727d9ee_codes has been created

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.
Thank you for your help.

Update to 0.110.3 and add typed the "type"( rm4_pro),
Now it worked and can learned only IR.
Cant learn RF
Error:
Failed to learn: No signal received

@maorbenamer RF is not yet supported. I will add this feature after the refactor I'm doing.

@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...

@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.
debug.txt

@sebastian-steinmann Ah, sorry, I thought you had an SP1.

@jose4191 You need to specify the correct type in the config. Use type: rm4c_mini.

@sebastian-steinmann Ah, sorry, I thought you had an SP1.

@jose4191 You need to specify the correct type in the config. Use type: rm4c_mini.

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.

@felipediel

@maorbenamer RF is not yet supported. I will add this feature after the refactor I'm doing.

RF is supported already?
Thanks

@maorbenamer Nope. You can use this workaround for now.

I had this issue until I set in configuration.yaml the device type.
in my case:
type: rm4_mini

@felipediel

@maorbenamer RF is not yet supported. I will add this feature after the refactor I'm doing.

RF is supported already?
Thanks

@felipediel
Any update?
Thanks

It will take some time, we have two updates in the queue.

It will take some time, we have two updates in the queue.

Thanks for the response, were can I update about the release day?

https://www.home-assistant.io/blog

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 rm_mini3_newblackbean. If it doesn't work you can try rm_mini. This will no longer be necessary after this update, which is already merged into the dev branch. I think that in a week or two it will be available. You can track the master branch for real time updates.

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.

Was this page helpful?
0 / 5 - 0 ratings