Update switch.broadlink.markdown (#1980)

Added description and example for send_packet service
This commit is contained in:
Yannic-HAW 2017-02-07 19:40:22 +01:00 committed by Fabian Affolter
parent 7b9a54f77f
commit e8a25e8194

View File

@ -99,8 +99,7 @@ switch 2:
command_off: 'JgAaABweOR4bHhwdHB4dHRw6HhsdHR0dOTocAA0FAAAAAAAAAAAAAAAAAAA='
```
Example config for sp1, sp2, honeywell_sp2, sp3, spmini2 and spminiplus devices:
```yaml
@ -121,6 +120,28 @@ switch 2:
```
### {% 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.
| Service data attribute | Optional | Description |
| ---------------------- | -------- | ----------- |
| `packet` | no | String or list of strings that contain the packet data.
Example:
```yaml
script:
tv_select_source:
sequence:
- service: broadlink.send_packet_192_168_0_107
data:
packet:
- "JgCMAJSSFDYUNhQ2FBEUERQRFBEUERQ2FDYUNhQRFBEUERQRFBEUERQRFDYUERQRFBEUERQRFDYUNhQRFDYUNhQ2FDYUNhQABfWUkhQ2FDYUNhQRFBEUERQRFBEUNhQ2FDYUERQRFBEUERQRFBEUERQ2FBEUERQRFBEUERQ2FDYUERQ2FDYUNhQ2FDYUAA0FAAAAAAAAAAAAAAAA"
- "JgBGAJSTFDUUNhM2ExITEhMSExITEhM2EzYTNhQRFBEUERQRFBEUNRQ2ExITNhMSExITNhMSExITEhM2ExITNhQ1FBEUNhMADQUAAA=="
```
### {% linkable_title Using E-Control Remotes %}
If you already have your remotes learned on E-Control app you can use this method to "copy" trem to HA.