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 %} {% raw %}
```yaml ```yaml
sensor: template:
- platform: template - sensor:
sensors: - name: 'Family Room Harmony Remote'
family_room: state: >
value_template: '{{ state_attr("remote.family_room", "current_activity") }}' {{ state_attr('remote.family_room', 'current_activity') }}
friendly_name: "Family Room" - name: 'Bedroom Harmony Remote'
bedroom: state: >
value_template: '{{ state_attr("remote.bedroom", "current_activity") }}' {{ state_attr('remote.bedroom', 'current_activity') }}
friendly_name: "bedroom"
``` ```
{% endraw %} {% endraw %}