Skip to content

Commit 99e7cd7

Browse files
committed
Add instructions for setting using discovery with the Harmony hub
1 parent e66a4a2 commit 99e7cd7

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

source/_components/remote.harmony.markdown

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,28 @@ Supported units:
2424
- Harmony Elite
2525

2626

27-
To use your Harmony remote in your installation, add the following to your `configuration.yaml` file:
27+
The preferred way to setup the Harmony remote is by enabling the [discovery component](/components/discovery/).
28+
29+
You can override some discovered values (e.g. the `port` or `activity`) by adding a `configuration.yaml` setting.
30+
In this case the `name` used in the config must match exactly the name you have chosen for your hub. You must also leave the `host`
31+
setting empty to force the platform to discover the host IP automatically.
32+
33+
If you want to manually configure all device settings, you will need to add its settings to your `configuration.yaml`.
2834

2935
```yaml
30-
# Example configuration.yaml entry
36+
# Example configuration.yaml entry if you need any manual configuration
3137
remote:
38+
# Specifying a hub manually, without discovery
3239
- platform: harmony
3340
name: Bedroom
3441
host: 10.168.1.13
42+
43+
# Overriding some discovered settings, note no host setting!
44+
- platform: harmony
45+
# name - This name must match the name you have set on the Hub
46+
name: Living Room
47+
# activity - The setting we want to use for the discovered Hub
48+
activity: Watch TV
3549
```
3650
3751
Configuration variables:
@@ -134,12 +148,12 @@ automation:
134148
data_template:
135149
# using a data template to have if brances for relavant device
136150
# Always the same entity_id - the harmony hub
137-
entity_id: remote.bedroom
151+
entity_id: remote.bedroom
138152
# Always the same command - the Pause key
139153
command: Pause
140154
# select device based upon the activity being undertaken.
141155
device: >
142-
# when in WATCH TV activity, the pause key relates to a TiVo, which is device 22987101
156+
# when in WATCH TV activity, the pause key relates to a TiVo, which is device 22987101
143157
{% raw %}{% if is_state("sensor.bedroom", "WATCH TV") %}{% raw %}
144158
22987101
145159
# when in WATCH APPLE TV activity, the pause key relates to an Apple TV, which is device 23002316

0 commit comments

Comments
 (0)