From 0f398c41293046c842bbe5fd1682cfef7bd7a8f6 Mon Sep 17 00:00:00 2001 From: Chris Turra Date: Wed, 13 Oct 2021 10:20:50 -0700 Subject: [PATCH] update Harmony integration examples with new template sensor format (#19752) --- source/_integrations/harmony.markdown | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/source/_integrations/harmony.markdown b/source/_integrations/harmony.markdown index ce2a268574b..5f403dbc461 100644 --- a/source/_integrations/harmony.markdown +++ b/source/_integrations/harmony.markdown @@ -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 %}