@@ -9,7 +9,7 @@ sharing: true
9
9
footer : true
10
10
logo : broadlink.png
11
11
ha_category : Switch
12
- ha_release : 0.34
12
+ ha_release : 0.35
13
13
---
14
14
15
15
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:
31
31
Configuration variables:
32
32
- **host** (*Required*): The hostname/IP address to connect to.
33
33
- **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.
35
36
- **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.
36
38
- **command_on** (*Required*): Base64 encoded packet from RM device to take for on.
37
39
- **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.
40
40
41
41
42
- How to obtain IR/RF packet while in learning mode?
43
42
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=='
45
75
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