From d4e84911c3fe6111f36ff3c08cf90d0e41c5161c Mon Sep 17 00:00:00 2001 From: Tony Stork Date: Fri, 17 Jun 2022 03:23:15 -0400 Subject: [PATCH] Sensors for how much time the windows and doors are open --- sensors/house_stats.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sensors/house_stats.yaml b/sensors/house_stats.yaml index 6b1c774..240d8c3 100644 --- a/sensors/house_stats.yaml +++ b/sensors/house_stats.yaml @@ -198,5 +198,21 @@ state: 'on' type: time end: '{{ now() }}' + duration: + hours: 24 +- platform: history_stats + name: Windows Open Time + entity_id: sensor.windows_open + state: 'on' + type: time + end: '{{ now() }}' + duration: + hours: 24 +- platform: history_stats + name: Doors Open Time + entity_id: sensor.doors_open + state: 'on' + type: time + end: '{{ now() }}' duration: hours: 24 \ No newline at end of file