Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

How I finally managed to learn IR codes to Broadlink RM Pro

$
0
0

@charism wrote:

Hi,
I only recently discovered HA and I’ve spent hours looking for instructions for learning Broadlink RM Pro IR codes without success. I was only founding instructions that most possibly apply to earlier versions of HA (never found the “States page with the persistent notification” that is mentioned in several guides!) or involving complicated steps installing other apps etc.
Here’s how it can be done very easily from HA

Step 1
Add your Broadlink to configuration.yaml with it’s IP and mac address and restart HA

# Broadlink
remote:
 - platform: broadlink
   host: 192.168.1.12
   mac: 34:xx:xx:xx:xx:xx

Step 2
In developer tools call remote.learn_command with the following data. Once service is called, Broadlink lights the orange led and waits for the remote button to be pressed. Once you press the button broadlink learns the command and the light goes off (sometimes broadlink cannot learn on the first try so you can repeat this step as many times as needed). You can change the command in service data and call the service again to learn a different code.

Step 3
HA creates automatically a json file in the directory .storage with the name broadlink_remote_xxxxxxxxxxxx_codes (where xx… is broadlink’s mac address) that contains all the codes(this is the piece of information that I didn’t find anywhere and took me hours to figure out!)

Step 4
You add the following to configuration.yaml copying the codes from the json file from the previous step. Restart HA and you are done. You should now be able to find the new switch

switch:
 - platform: broadlink
   host: 192.168.1.12
   mac: 34:xx:xx:xx:xx
   switches:
     alarm:
       friendly_name: "Home Alarm"
       command_on: 'shg0ACgOKQ4OKCkOKA4OKCkOKA4OKCkOKQ4OKCkODikoDxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
       command_off: 'sho0ACkNKg0PJykNKQ0PKCoNKg0Pxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Hope that the post helps. I’m very new to HA so any corrections are welcome

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>