mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 02:07:15 +00:00
Update switch.broadlink.markdown (#1651)
* Update switch.broadlink.markdown * Update switch.broadlink.markdown * Update switch.broadlink.markdown * Update switch.broadlink.markdown
This commit is contained in:
parent
999558435d
commit
5b263ee386
@ -12,7 +12,7 @@ ha_category: Switch
|
|||||||
ha_release: 0.35
|
ha_release: 0.35
|
||||||
---
|
---
|
||||||
|
|
||||||
This `Broadlink` switch platform allow to you control Broadlink RM2 Pro and RM mini IR+RF [devices](http://www.ibroadlink.com/rm/).
|
This `Broadlink` switch platform allow to you control Broadlink [devices](http://www.ibroadlink.com/rm/).
|
||||||
|
|
||||||
To enable it, add the following lines to your `configuration.yaml`:
|
To enable it, add the following lines to your `configuration.yaml`:
|
||||||
|
|
||||||
@ -33,6 +33,8 @@ Configuration variables:
|
|||||||
- **host** (*Required*): The hostname/IP address to connect to.
|
- **host** (*Required*): The hostname/IP address to connect to.
|
||||||
- **mac** (*Required*): Device mac address.
|
- **mac** (*Required*): Device mac address.
|
||||||
- **timeout** (*Optional*): Timeout in seconds for the connection to the device
|
- **timeout** (*Optional*): Timeout in seconds for the connection to the device
|
||||||
|
- **friendly_name** (*Optional*): The name used to display the switch in the frontend.
|
||||||
|
- **types** (*Optional*): Switch type. (rm, rm2, rm_mini, rm_pro_phicomm, rm2_home_plus, rm2_home_plus_gdt, rm2_pro_plus, rm2_pro_plus2, rm2_pro_plus_bl, rm_mini_shate, sp1, sp2, honeywell_sp2, sp3, spmini2 or spminiplus)
|
||||||
- **switches** (*Optional*): The array that contains all switches.
|
- **switches** (*Optional*): The array that contains all switches.
|
||||||
- **identifier** (*Required*): Name of the command switch as slug. Multiple entries are possible.
|
- **identifier** (*Required*): Name of the command switch as slug. Multiple entries are possible.
|
||||||
- **friendly_name** (*Optional*): The name used to display the switch in the frontend.
|
- **friendly_name** (*Optional*): The name used to display the switch in the frontend.
|
||||||
@ -45,10 +47,11 @@ How to obtain IR/RF packets?
|
|||||||
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.
|
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.
|
||||||
|
|
||||||
|
|
||||||
Example config:
|
Example config for rm, rm2, rm_mini, rm_pro_phicomm, rm2_home_plus, rm2_home_plus_gdt, rm2_pro_plus, rm2_pro_plus2, rm2_pro_plus_bl and rm_mini_shate devices:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- platform: broadlink
|
switch 2:
|
||||||
|
platform: broadlink
|
||||||
host: 192.168.1.2
|
host: 192.168.1.2
|
||||||
mac: 'B4:43:0D:CC:0F:58'
|
mac: 'B4:43:0D:CC:0F:58'
|
||||||
timeout: 15
|
timeout: 15
|
||||||
@ -77,4 +80,37 @@ Example config:
|
|||||||
friendly_name: "LG Tv"
|
friendly_name: "LG Tv"
|
||||||
command_on: 'JgBIAAABIpQPFBITETgSEw8UEhQSEhEVDzgSOBAUETgQOQ84EjgRNxITETgSExA5EDgREhI3EhMROBMSEDkQFBETEjYTEhE4EQANBQ=='
|
command_on: 'JgBIAAABIpQPFBITETgSEw8UEhQSEhEVDzgSOBAUETgQOQ84EjgRNxITETgSExA5EDgREhI3EhMROBMSEDkQFBETEjYTEhE4EQANBQ=='
|
||||||
command_off: 'JgBIAAABH5YPFBETETgUERAUEBURFBATETgROBEUETcSNxE4ETcSOBISEBUQFREUEjUSFBA5ETcRNxE4ETkQOBAUEjcRFRAUEQANBQ=='
|
command_off: 'JgBIAAABH5YPFBETETgUERAUEBURFBATETgROBEUETcSNxE4ETcSOBISEBUQFREUEjUSFBA5ETcRNxE4ETkQOBAUEjcRFRAUEQANBQ=='
|
||||||
|
|
||||||
|
|
||||||
|
switch 2:
|
||||||
|
platform: broadlink
|
||||||
|
host: 192.168.1.2
|
||||||
|
mac: 'B4:43:0D:CC:0F:58'
|
||||||
|
timeout: 15
|
||||||
|
# Will work on most Phillips tvs:
|
||||||
|
tv:
|
||||||
|
friendly_name: "Phillips Tv"
|
||||||
|
command_on: 'JgAcAB0dHB44HhweGx4cHR06HB0cHhwdHB8bHhwADQUAAAAAAAAAAAAAAAA='
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Example config for sp1, sp2, honeywell_sp2, sp3, spmini2 and spminiplus devices:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
switch 1:
|
||||||
|
platform: broadlink
|
||||||
|
host: IP_ADDRESS
|
||||||
|
mac: 'MAC_ADDRESS'
|
||||||
|
type: sp1
|
||||||
|
friendly_name: 'Humidifier'
|
||||||
|
|
||||||
|
switch 2:
|
||||||
|
platform: broadlink
|
||||||
|
host: IP_ADDRESS
|
||||||
|
mac: 'MAC_ADDRESS'
|
||||||
|
type: sp2
|
||||||
|
friendly_name: 'Humidifier'
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user