Skip to content

Commit a69c8b5

Browse files
Danielhiversenfabaff
authored andcommitted
Update switch.broadlink.markdown (home-assistant#1605)
* Update switch.broadlink.markdown * Update switch.broadlink.markdown
1 parent 5fdb4e9 commit a69c8b5

File tree

1 file changed

+41
-9
lines changed

1 file changed

+41
-9
lines changed

source/_components/switch.broadlink.markdown

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sharing: true
99
footer: true
1010
logo: broadlink.png
1111
ha_category: Switch
12-
ha_release: 0.34
12+
ha_release: 0.35
1313
---
1414

1515
This `Broadlink` switch platform allow to you control Broadlink RM2 Pro and RM mini IR+RF [devices](http://www.ibroadlink.com/rm/).
@@ -31,18 +31,50 @@ switch:
3131
Configuration variables:
3232
- **host** (*Required*): The hostname/IP address to connect to.
3333
- **mac** (*Required*): Device mac address.
34-
- **switches** (*Required*): The array that contains all switches.
34+
- **timeout** (*Optional*): Timeout in seconds for the connection to the device
35+
- **switches** (*Optional*): The array that contains all switches.
3536
- **identifier** (*Required*): Name of the command switch as slug. Multiple entries are possible.
37+
- **friendly_name** (*Optional*): The name used to display the switch in the frontend.
3638
- **command_on** (*Required*): Base64 encoded packet from RM device to take for on.
3739
- **command_off** (*Required*): Base64 encoded packet from RM device to take for off.
38-
- **optimistic** (*Optional*): Default true: Flag that defines if switch works in optimistic mode.
39-
- **friendly_name** (*Optional*): The name used to display the switch in the frontend.
4040
4141
42-
How to obtain IR/RF packet while in learning mode?
4342
44-
Run: hass --script broadlink --ip `YOUR_DEVICE_IP` --mac `YOUR_DEVICE_MAC`
43+
How to obtain IR/RF packets?
44+
45+
Choose Call Service from the Developer Tools. Choose the service broadlink/learn_command from the list of Available services: and hit CALL SERVICE. Press the button on your remote with in 20 seconds. The packet will be printed in the log and as a persistent notification.
46+
47+
48+
Example config:
49+
50+
```yaml
51+
- platform: broadlink
52+
host: 192.168.1.2
53+
mac: 'B4:43:0D:CC:0F:58'
54+
timeout: 15
55+
# Will work on most Phillips tvs:
56+
tv:
57+
friendly_name: "Phillips Tv"
58+
command_on: 'JgAcAB0dHB44HhweGx4cHR06HB0cHhwdHB8bHhwADQUAAAAAAAAAAAAAAAA='
59+
command_off: 'JgAaABweOR4bHhwdHB4dHRw6HhsdHR0dOTocAA0FAAAAAAAAAAAAAAAAAAA='
60+
61+
# Will work on most LG tvs
62+
tv_lg:
63+
friendly_name: "LG Tv"
64+
command_on: 'JgBYAAABIJISExETETcSEhISEhQQFBETETcROBESEjcRNhM1EjcTNRMTERISNxEUERMSExE2EjYSNhM2EhIROBE3ETcREhITEgAFGwABH0oSAAwzAAEfShEADQU='
65+
command_off: 'JgBYAAABIJISExETETcSEhISEhQQFBETETcROBESEjcRNhM1EjcTNRMTERISNxEUERMSExE2EjYSNhM2EhIROBE3ETcREhITEgAFGwABH0oSAAwzAAEfShEADQU='
66+
67+
tv_lg_HDMI1_HDMI2:
68+
friendly_name: "LG Tv"
69+
command_on: 'JgBIAAABIZMRExITEjYSExMRERURExEUEDkRNxEUEjYSNhM3ETcSNxITETgSNhI2ExMQExE4ETYSNxIUERMSExE4ETcRFBETEQANBQ=='
70+
command_off: 'JgBQAAABJJMSEhISETgSEhITEBMSEhMSETcSNxMREjcSNxI3EjcSOBETERITNhM2EhITERM2EzcRNxI3ExISEhI3EjcRExETEgAFLQABJEoRAA0FAAAAAAAAAAA='
71+
72+
tv_lg_HDMI3:
73+
friendly_name: "LG Tv"
74+
command_on: 'JgBIAAABIZMSFBISETgRExEUERQQFBETEjcTNhMSETgRNxE3EjcROBM2ERMSFBE4ERMSNxM2EjUSFBE2ETgRExM2ExITEhATEwANBQ=='
4575

46-
If the orange LED is on point the remote to device and press the matching button on remote.
47-
If the orange LED is off it means the learning is successful and packet will be printed on console.
48-
Then you can copy and paste this packet.
76+
tv_lg_AV1_AV2:
77+
friendly_name: "LG Tv"
78+
command_on: 'JgBIAAABIpQPFBITETgSEw8UEhQSEhEVDzgSOBAUETgQOQ84EjgRNxITETgSExA5EDgREhI3EhMROBMSEDkQFBETEjYTEhE4EQANBQ=='
79+
command_off: 'JgBIAAABH5YPFBETETgUERAUEBURFBATETgROBEUETcSNxE4ETcSOBISEBUQFREUEjUSFBA5ETcRNxE4ETkQOBAUEjcRFRAUEQANBQ=='
80+
```

0 commit comments

Comments
 (0)