Mastering Universal Control: Integrating Broadlink RF/IR Remotes with Home Assistant
- #Home_Assistant
- #Broadlink
- #RF
- #IR
- #Smart_Home
- #Integration
- #Automation
Introduction
Broadlink universal remotes (like RM4 Pro, RM4 Mini) are essential for integrating older, "dumb" Infrared (IR) and Radio Frequency (RF) controlled devices (TVs, ACs, fans, RF blinds) into your Home Assistant smart home. They bridge the gap between traditional remote controls and modern automation. This guide covers integrating Broadlink remotes, learning commands, and automating your space for ultimate convenience.
Prerequisites & Initial Setup
Prerequisites:
- An operational Home Assistant instance.
- A Broadlink RM device (RM4 Pro for IR/RF, RM4 Mini for IR).
- The official Broadlink "BroadLink" or "Intelligent Home Center" (IHC) mobile app for initial network setup.
- A stable 2.4GHz Wi-Fi network (Broadlink devices typically don't support 5GHz).
Initial Device Setup:
- Plug in your Broadlink device (rapidly flashing blue LED = pairing mode).
- Use the Broadlink app to connect the device to your 2.4GHz Wi-Fi network.
- Once connected, the LED will be solid blue.
- Best Practice: Assign a static IP address to your Broadlink device via your router's DHCP reservation for consistent Home Assistant connectivity.
Home Assistant Integration
Home Assistant often auto-discovers Broadlink devices. If not, manual configuration is simple.
Automatic Discovery
Check "Settings > Devices & Services > Integrations." If discovered, click "Configure."
Manual Configuration
Add to your !$0$!
:
!$1$!
Restart Home Assistant. A new Broadlink device and !$2$!
entity (e.g., !$3$!
) will appear.
Learning IR/RF Codes
This is where you teach your Broadlink device commands from your original remotes.
Using the !$4$!
Service
Go to "Developer Tools > Services." Select !$5$!
. For "Target," choose your Broadlink !$6$!
entity (e.g., !$7$!
). Click "Call Service."
Your Broadlink's LED will flash purple/orange. Point your original remote and press the button. If successful, the LED stops flashing, and Home Assistant provides a notification with the learned code (e.g., !$8$!
).
Troubleshooting Learning:
- No code: Check remote battery, point directly at Broadlink, try closer.
- RF Learning: For RF, try pressing button multiple times or holding for duration. Broadlink primarily supports fixed-code RF; rolling codes are generally not compatible.
Storing Learned Codes:
Store codes in a dedicated YAML file, e.g., !$9$!
. Include it in !$10$!
:
!$11$!
Then, in !$12$!
, define your remote entity and commands:
!$13$!
Restart Home Assistant after modifying !$14$!
.
Sending IR/RF Codes
Use the !$15$!
service to send your stored codes.
Using !$16$!
In "Developer Tools > Services," select !$17$!
. Choose the specific remote entity you defined (e.g., !$18$!
). Enter the command name (e.g., !$19$!
) in the "Command" field.
Example service call:
!$20$!
Send multiple commands with delays for complex sequences:
!$21$!
Best Practices for Reliability
- Static IP: Assign a static IP to your Broadlink device via router DHCP.
- Organize Codes: Use dedicated YAML files and descriptive command names.
- Test Thoroughly: Verify learned codes immediately after learning and after configuration changes.
- Automate: Group commands into Home Assistant scripts or scenes.
- Add Delays: Use
!$22$!
in sequences for multi-step commands (e.g., TV power then input). - RF Considerations:
- IR Line of Sight: Ensure clear line of sight for IR devices.
- RF Range: Place Broadlink centrally for optimal RF coverage.
- Fixed Codes: Broadlink is best with fixed-code RF devices; rolling codes are usually unsupported.
- Backup: Regularly back up your Home Assistant configuration, including
!$23$!
.
Advanced Use Cases & Conclusion
With Broadlink, possibilities are vast:
- Voice Control: Expose remote entities or scripts to Google Assistant/Alexa.
- Conditional Automations: Trigger commands based on sensor states or time.
- Dashboard Integration: Create Lovelace buttons for easy control.
Broadlink RF/IR remotes are a powerful, cost-effective way to integrate legacy devices into Home Assistant. By mastering code learning and command sending, you achieve universal control, automate "dumb" appliances, and build a truly unified smart home. With careful setup and best practices, your Broadlink integration will be a reliable cornerstone, extending your smart home's reach beyond modern protocols.
NGC 224
Author bio: