mjg59 / python-broadlink

Python module for controlling Broadlink RM2/3 (Pro) remote controls, A1 sensor platforms and SP2/3 smartplugs
MIT License
1.39k stars 480 forks source link

Can't get the learning code from IR/RF. #650

Closed luvmex closed 7 months ago

luvmex commented 2 years ago

Basic info

Device: Broadlink RM Pro 4 Wifi: 2.4 (excellent) IP: Get Version: Updated Device Lock: Off

Just trying to learn the code by typing: "device.enter_learning()"

On-time, the device lights up, and I trigger the remote control(Press multiple times). But nothing happened. I'm not sure it's getting the code or not, so I typing: "packet = device.check_date()"

And I get the result as below:

Traceback (most recent call last): File "", line 1, in File "/home/pi/.local/lib/python3.9/site-packages/broadlink/remote.py", line 37, in check_datareturn self._send(0x4) File "/home/pi/.local/lib/python3.9/site-packages/broadlink/remote.py", line 82, in _sende.check_error(resp[0x22:0x24]) File "/home/pi/.local/lib/python3.9/site-packages/broadlink/exceptions.py", line 152, in check_error raise exception(error_code) broadlink.exceptions.StorageError: [Errno -5] The device storage is full

Have no idea where and what goes wrong with the setting part, Hope to have any solution, and thanks in advance.

felipediel commented 2 years ago

Hi. Make sure you are using the right class to control the device. You can also select the class automatically with:

import broadlink as blk
device = blk.hello("192.168.0.16")  # Example IP address
Amoenus commented 2 years ago

I have the same problem with my 智能遥控 Broadlink RM4 pro 0x61a2

felipediel commented 2 years ago

Hi. Same solution

rxaviers commented 2 years ago

Dup of #404?