From 39048a1dd1e2da7b4f647a24164069a290e27922 Mon Sep 17 00:00:00 2001 From: dfcarvajal Date: Mon, 9 Dec 2019 12:40:33 +0000 Subject: [PATCH] =?UTF-8?q?A=C3=B1adido=20sensor=20tiempo=20televisi=C3=B3?= =?UTF-8?q?n=20sal=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/history_stats/television_salon.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 packages/history_stats/television_salon.yaml diff --git a/packages/history_stats/television_salon.yaml b/packages/history_stats/television_salon.yaml new file mode 100644 index 0000000..75179eb --- /dev/null +++ b/packages/history_stats/television_salon.yaml @@ -0,0 +1,8 @@ +sensor: + - platform: history_stats + name: Televisión Salón Encendida + entity_id: media_player.television_salon + state: 'on' + type: time + start: '{{ now().replace(hour=0).replace(minute=0).replace(second=0) }}' + end: '{{ now() }}'