update Harmony integration examples with new template sensor format (#19752)

This commit is contained in:
Chris Turra 2021-10-13 10:20:50 -07:00 committed by GitHub
parent 48f923a9c8
commit 0f398c4129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,15 +185,14 @@ Template sensors can be utilized to display current activity in the frontend.
{% raw %}
```yaml
sensor:
- platform: template
sensors:
family_room:
value_template: '{{ state_attr("remote.family_room", "current_activity") }}'
friendly_name: "Family Room"
bedroom:
value_template: '{{ state_attr("remote.bedroom", "current_activity") }}'
friendly_name: "bedroom"
template:
- sensor:
- name: 'Family Room Harmony Remote'
state: >
{{ state_attr('remote.family_room', 'current_activity') }}
- name: 'Bedroom Harmony Remote'
state: >
{{ state_attr('remote.bedroom', 'current_activity') }}
```
{% endraw %}