I have rollarhouse shades motors that work perfectly in my shades. I have the broadlink rf remotes configured and the motors programmed.
I have a BroadLink RM4 Pro and have it setup in HA with the built in integration. I know about the different methods to use the remote learn function to learn the codes, but what is the best and easiest method that I should use??
I have no difficulty with the remote.learn_command service in Developer Tools. But depending on what you’re trying to control, SmartIR may already know the Broadlink codes.
Learning the TV power button
Call Service: Remote: Learn Command
Target: Broadlink-Office Remote
Device: office_tv
Command: power
When executed, press the power button on the remote. This adds the data to the file: *U:\.storage\broadlink_remote_780f774830de_codes*
Example data
"office_tv": { "power": "JgDEAE0WJhUSFSYVExQmFBMWEhUmFRMUEhYSFRIAA1BNFSYVExQnFBMVJhUSFRIVJxQTFREWExQSAANQThQmFRMVJRYSFSYVExQTFSYVERYSFRIWEgADT04VJRYSFSYVEhUnFBIWEhUlFhIVEhYSFRMAA09NFSUWEhUnFBIWJRYRFhIVJxQSFhEWEhUSAANQTRUnFBMVJhUSFSUWEhUSFiUWEhUSFRIWEgADT04VJRYRFiYVExQnFBMVEhUmFRIVEhYRFhMADQUAAAAA" }
Test the code
Call Service: Remote: Send Command
Target: Broadlink-Office Remote
Device: office_tv
Command: power
Make a script for the button
Add script
Name: Office TV Power
Sequence
Action Type: Call Service
Call Service: Remote: Send Command
Target: Broadlink-Office Remote
Device: office_tv
Command: power
Save and run the script.
From Home Assistant, you can run *script.office_tv_power*
From Node Red, Call Service node.
Domain: remote
Service: send_command
Entity: remote.broadlink_office_remote
Data:
"device": "office_tv"
"command": "power"