mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Update switch.broadlink.markdown to add document for MP1 power strip (#3367)
This commit is contained in:
parent
d60ecab58d
commit
c8f7ae7a5b
@ -31,12 +31,17 @@ Configuration variables:
|
||||
- **mac** (*Required*): Device MAC address.
|
||||
- **timeout** (*Optional*): Timeout in seconds for the connection to the device.
|
||||
- **friendly_name** (*Optional*): The name used to display the switch in the frontend.
|
||||
- **type** (*Required for some models*): Switch type. Choose one from: `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`.
|
||||
- **type** (*Required for some models*): Switch type. Choose one from: `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`, `spminiplus` or `mp1`.
|
||||
- **switches** (*Optional*): The array that contains all switches.
|
||||
- **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.
|
||||
- **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.
|
||||
- **slots** (*Optional*): Friendly names of 4 slots of MP1 power strip. If not configured, slot name will be `switch's friendly_name + 'slot {slot_index}'`. e.g 'MP1 slot 1'
|
||||
- **slot_1** (*Optional*)
|
||||
- **slot_2** (*Optional*)
|
||||
- **slot_3** (*Optional*)
|
||||
- **slot_4** (*Optional*)
|
||||
|
||||
Information about how to install on Windows can be found [here](https://home-assistant.io/components/sensor.broadlink/#microsoft-windows-installation)
|
||||
|
||||
@ -103,6 +108,24 @@ switch:
|
||||
friendly_name: 'Humidifier'
|
||||
```
|
||||
|
||||
Example config for `mp1` device:
|
||||
|
||||
```yaml
|
||||
switch:
|
||||
- platform: broadlink
|
||||
host: IP_ADDRESS
|
||||
mac: 'MAC_ADDRESS'
|
||||
type: mp1
|
||||
friendly_name: 'MP1'
|
||||
slots:
|
||||
# friendly name of slots - optional
|
||||
# if not set, slot name will be switch's friendly_name + 'slot {slot_index}'. e.g 'MP1 slot 1'
|
||||
slot_1: 'TV slot'
|
||||
slot_2: 'Xbox slot'
|
||||
slot_3: 'Fan slot'
|
||||
slot_4: 'Speaker slot'
|
||||
```
|
||||
|
||||
### {% linkable_title Service `send_packet` %}
|
||||
|
||||
You can use the service broadlink/send_packet to directly send IR packets without the need to assign a switch entity for each command.
|
||||
|
Loading…
x
Reference in New Issue
Block a user