Skip to content

Commit 81cd16d

Browse files
ehendrix23frenck
authored andcommitted
Add press hold for send command (home-assistant#7985)
* Updated for new parameter hold_secs * Updated based on review * ✏️ Tweak
1 parent a2db779 commit 81cd16d

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

source/_components/harmony.markdown

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ delay_secs:
6767
description: Default duration in seconds between sending commands to a device.
6868
required: false
6969
type: float
70+
default: 0.4
71+
hold_secs:
72+
description: Default duration in seconds between sending the "press" command and sending the "release" command.
73+
required: false
74+
default: 0
7075
{% endconfiguration %}
7176

7277
### {% linkable_title Configuration file %}
@@ -77,23 +82,23 @@ Upon startup one file will be written to your Home Assistant configuration direc
7782
- List of all programmed device names and ID numbers
7883
- List of all available commands per programmed device
7984

80-
This file will be overwritten whenever the Harmony HUB has a new configuration, there is no need to restart HASS.
85+
This file will be overwritten whenever the Harmony HUB has a new configuration, there is no need to restart Home Assistant.
8186

8287
### {% linkable_title Service `remote.turn_off` %}
8388

8489
Turn off all devices that were switched on from the start of the current activity.
8590

8691
| Service data attribute | Optional | Description |
8792
| ---------------------- | -------- | ----------- |
88-
| `entity_id` | yes | Only act on a specific remote, else target all.
93+
| `entity_id` | no | Entity ID to target.
8994

9095
### {% linkable_title Service `remote.turn_on` %}
9196

9297
Start an activity. Will start the default `activity` from configuration.yaml if no activity is specified. The specified activity can either be the activity name or the activity ID from the configuration file written to your [Home Assistant configuration directory](/docs/configuration/).
9398

9499
| Service data attribute | Optional | Description |
95100
| ---------------------- | -------- | ----------- |
96-
| `entity_id` | yes | Only act on a specific remote, else target all.
101+
| `entity_id` | no | Entity ID to target.
97102
| `activity` | yes | Activity ID or Activity Name to start.
98103

99104
##### {% linkable_title Example %}
@@ -127,7 +132,7 @@ Send a single command or a set of commands to one device, device ID and availabl
127132

128133
| Service data attribute | Optional | Description |
129134
| ---------------------- | -------- | ----------- |
130-
| `entity_id` | yes | Only act on a specific remote, else target all.
135+
| `entity_id` | no | Entity ID to target.
131136
| `device` | no | Device ID or Device Name to send the command to.
132137
| `command` | no | A single command or a list of commands to send.
133138
| `num_repeats` | yes | The number of times to repeat the command(s).
@@ -159,7 +164,6 @@ In the file 'harmony_REMOTENAME.conf' you can find the available devices and com
159164
}
160165
```
161166

162-
163167
A typical service call for sending several button presses looks like this:
164168

165169
```yaml
@@ -190,7 +194,7 @@ Sends the change channel command to the Harmony HUB
190194

191195
| Service data attribute | Optional | Description |
192196
| ---------------------- | -------- | ----------- |
193-
| `entity_id` | no | Only act on a specific remote, else target all.
197+
| `entity_id` | no | Entity ID to target.
194198
| `channel` | no | Channel number to change to
195199

196200
A typical service call for changing the channel would be::
@@ -208,7 +212,7 @@ Force synchronization between the Harmony device and the Harmony cloud.
208212

209213
| Service data attribute | Optional | Description |
210214
| ---------------------- | -------- | ----------- |
211-
| `entity_id` | yes | Only act on a specific remote, else target all.
215+
| `entity_id` | no | Entity ID to target.
212216

213217
### {% linkable_title Examples %}
214218

0 commit comments

Comments
 (0)