1.7 KiB
1.7 KiB
layout | title | description | date | sidebar | comments | sharing | footer | logo | ha_category | ha_release |
---|---|---|---|---|---|---|---|---|---|---|
page | Broadlink RM Switch | Instructions how to have Broadlink RM switches. | 2016-11-22 22:41 | true | false | true | true | broadlink.png | Switch | 0.34 |
This Broadlink
switch platform allow to you control Broadlink RM2 Pro and RM mini IR+RF devices.
To enable it, add the following lines to your configuration.yaml
:
# Example configuration.yaml entry
switch:
platform: broadlink
host: IP_ADDRESS
mac: 'MAC_ADDRESS'
switches:
reciever:
command_on: 'switch_packet on'
command_off: 'switch_packet off'
Configuration variables:
- host (Required): The hostname/IP address to connect to.
- mac (Required): Device mac address.
- switches (Required): The array that contains all switches.
- identifier (Required): Name of the command switch as slug. Multiple entries are possible.
- command_on (Required): Base64 encoded packet from RM device to take for on.
- command_off (Required): Base64 encoded packet from RM device to take for off.
- optimistic (Optional): Default true: Flag that defines if switch works in optimistic mode.
- friendly_name (Optional): The name used to display the switch in the frontend.
- identifier (Required): Name of the command switch as slug. Multiple entries are possible.
How to obtain IR/RF packet while in learning mode?
Run: hass --script broadlink --ip YOUR_DEVICE_IP
--mac YOUR_DEVICE_MAC
If the orange LED is on point the remote to device and press the matching button on remote. If the orange LED is off it means the learning is successful and packet will be printed on console. Then you can copy and paste this packet.