From ad2735d4145589da4ede7d9f024a7572072527a0 Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Wed, 19 Apr 2023 20:04:54 -0400 Subject: [PATCH] Add fan time stats --- sensors/house_stats.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/sensors/house_stats.yaml b/sensors/house_stats.yaml index 0786dd6..35d0452 100644 --- a/sensors/house_stats.yaml +++ b/sensors/house_stats.yaml @@ -325,5 +325,29 @@ state: 'on' type: time end: '{{ now() }}' + duration: + hours: 24 +- platform: history_stats + name: Master Bedroom Fan Time + entity_id: fan.master_bedroom_fan + state: 'on' + type: time + end: '{{ now() }}' + duration: + hours: 24 +- platform: history_stats + name: Kallen Fan Time + entity_id: fan.kallen_bedroom_fan + state: 'on' + type: time + end: '{{ now() }}' + duration: + hours: 24 +- platform: history_stats + name: Basement Fan Time + entity_id: fan.basement_fan + state: 'on' + type: time + end: '{{ now() }}' duration: hours: 24 \ No newline at end of file