mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Update switch.broadlink.markdown (#1980)
Added description and example for send_packet service
This commit is contained in:
parent
7b9a54f77f
commit
e8a25e8194
@ -100,7 +100,6 @@ switch 2:
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
Example config for sp1, sp2, honeywell_sp2, sp3, spmini2 and spminiplus devices:
|
Example config for sp1, sp2, honeywell_sp2, sp3, spmini2 and spminiplus devices:
|
||||||
|
|
||||||
```yaml
|
```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 %}
|
### {% 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.
|
If you already have your remotes learned on E-Control app you can use this method to "copy" trem to HA.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user