From 7d7ec76a35003a8f8a4cd88fd36911c5d8e59532 Mon Sep 17 00:00:00 2001 From: Christopher Viel Date: Sun, 14 Jul 2024 10:43:16 -0400 Subject: [PATCH] fixup! fixup! fixup! fixup! fixup! fixup! Tweak devices status card --- dashboards/views/network.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dashboards/views/network.yaml b/dashboards/views/network.yaml index f9295866..bd256589 100644 --- a/dashboards/views/network.yaml +++ b/dashboards/views/network.yaml @@ -70,22 +70,22 @@ entities: - type: "custom:template-entity-row" entity: "binary_sensor.ground_floor_heat_pump_status" - secondary: "{{ time_since('sensor.ground_floor_heat_pump_uptime', 1) }}" - active: "{{ is_state(config.entity , 'on') }}" + secondary: "{{ states('sensor.ground_floor_heat_pump_uptime') | time_since(1) }}" + active: "{{ is_state(config.entity, 'on') }}" state: "{{ state_translated(config.entity) }}" - type: "custom:template-entity-row" entity: "binary_sensor.kitchen_proxy_status" - secondary: "{{ ('sensor.kitchen_proxy_uptime', 1) }}" + secondary: "{{ states('sensor.kitchen_proxy_uptime') | time_since(1) }}" active: "{{ is_state(config.entity, 'on') }}" state: "{{ state_translated(config.entity) }}" - type: "custom:template-entity-row" entity: "binary_sensor.lounge_proxy_status" - secondary: "{{ time_since('sensor.lounge_proxy_uptime', 1) }}" + secondary: "{{ states('sensor.lounge_proxy_uptime') | time_since(1) }}" active: "{{ is_state(config.entity, 'on') }}" state: "{{ state_translated(config.entity) }}" - type: "custom:template-entity-row" entity: "binary_sensor.office_proxy_status" - secondary: "{{ time_since('sensor.office_proxy_uptime', 1) }}" + secondary: "{{ states('sensor.office_proxy_uptime') | time_since(1) }}" active: "{{ is_state(config.entity, 'on') }}" state: "{{ state_translated(config.entity) }}"