mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 05:16:49 +00:00
update Harmony integration examples with new template sensor format (#19752)
This commit is contained in:
parent
48f923a9c8
commit
0f398c4129
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user