mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +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 %}
|
{% 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 %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user