From db12f783c5dceaaa923b7be4387d25bba5b57aff Mon Sep 17 00:00:00 2001 From: Valentin Petkov Date: Fri, 16 Dec 2016 07:42:13 +0200 Subject: [PATCH] Add broadlink switch support (#1485) * Add broadlink switch support * Update switch.broadlink.markdown Add missing period. --- source/_components/switch.broadlink.markdown | 48 ++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 source/_components/switch.broadlink.markdown diff --git a/source/_components/switch.broadlink.markdown b/source/_components/switch.broadlink.markdown new file mode 100644 index 00000000000..af65fa555c7 --- /dev/null +++ b/source/_components/switch.broadlink.markdown @@ -0,0 +1,48 @@ +--- +layout: page +title: "Broadlink RM Switch" +description: "Instructions how to have Broadlink RM switches." +date: 2016-11-22 22:41 +sidebar: true +comments: false +sharing: true +footer: true +logo: broadlink.png +ha_category: Switch +ha_release: 0.34 +--- + +This `Broadlink` switch platform allow to you control Broadlink RM2 Pro and RM mini IR+RF [devices](http://www.ibroadlink.com/rm/). + +To enable it, add the following lines to your `configuration.yaml`: + +```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. + + +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.