Ok, so, the Broadlink device is an IR / RF hub?
And, historically you were able to control devices managed by Broadlink by sending commands via a HomeAssistant user interface?
And, with the integration, you figured out how for myServer to send to HomeAssistant to send to Broadlink?
Correct, BroadLink is an IR/RF hub that I can control as a Remote entity in HomeAssistant. The way it works in HA is like this:
- Set up BroadLink integration
- Send a remote.learn_command call to BroadLink via HA. This step lets you name the device, name the call, and select whether it's an IR or an RF call
- HA tells you what to do next (either press/hold the button so BroadLink can determine the specific frequency then short press to learn for RF, or just short press the button if it's an IR)
- The IR/RF code gets stored in HA somewhere
- After learning, you can do the remote.send_command and specify the device name + call you want to use
This video demonstrates that workflow:
How is the response time on command execution?
It's pretty quick, though I'm doing fire/forget as opposed to parsing the response. I'm not noticing significant delays or lag.
Do you expect to use the SmartRemote to send commands too?
Yeah, so I have some questions about this. I've just been doing server commands thus far, haven't jumped into client commands much yet. I'd like to avoid the hop to myServer if possible. Is there a best practice for what types of commands should be run on the client vs on the server?
Neat. Nice discovery!
I added your script to the HAGateway driver documentation for others to find. Thanx!
So now, RF devices are supported via SmartRemote / myServer.