mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-08 18:06:54 +00:00
Example and tip for automation usage (#6472)
* Example and tip for automation usage
Some clarifications following recent new automation I added using the component.
* Update following review comments
Thanks!
* ✏️ Tweak
This commit is contained in:
parent
d83d2fcd4b
commit
848fc8b515
@ -13,7 +13,6 @@ ha_iot_class: "Local Push"
|
|||||||
ha_release: "0.34"
|
ha_release: "0.34"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
The `harmony` remote platform allows you to control the state of your [Harmony Hub Device](http://www.logitech.com/en-us/product/harmony-hub).
|
The `harmony` remote platform allows you to control the state of your [Harmony Hub Device](http://www.logitech.com/en-us/product/harmony-hub).
|
||||||
|
|
||||||
Supported units:
|
Supported units:
|
||||||
@ -77,6 +76,25 @@ Start an activity. Will start the default `activity` from configuration.yaml if
|
|||||||
| `entity_id` | yes | Only act on a specific remote, else target all.
|
| `entity_id` | yes | Only act on a specific remote, else target all.
|
||||||
| `activity` | yes | Activity ID or Activity Name to start.
|
| `activity` | yes | Activity ID or Activity Name to start.
|
||||||
|
|
||||||
|
##### {% linkable_title Example %}
|
||||||
|
|
||||||
|
In the file 'harmony_REMOTENAME.conf' you can find the available activities, for example:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Activities
|
||||||
|
22054907 - Watch TV
|
||||||
|
```
|
||||||
|
|
||||||
|
Using the activity name 'Watch TV', you can call a service via automation to switch this activity on:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
action:
|
||||||
|
- service: remote.turn_on
|
||||||
|
entity_id: remote.bed_room_hub
|
||||||
|
data:
|
||||||
|
activity: "Watch TV"
|
||||||
|
```
|
||||||
|
|
||||||
### {% linkable_title Service `remote.send_command` %}
|
### {% linkable_title Service `remote.send_command` %}
|
||||||
|
|
||||||
Send a single command or a set of commands to one device, device ID and available commands are written to the configuration file at startup. You can optionally specify the number of times you wish to repeat the command(s) and delay you want between repeated command(s).
|
Send a single command or a set of commands to one device, device ID and available commands are written to the configuration file at startup. You can optionally specify the number of times you wish to repeat the command(s) and delay you want between repeated command(s).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user