From 13d76f120aa640cf31e3fc39eb8d823de7e060be Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Fri, 8 Nov 2019 06:52:05 -0500 Subject: [PATCH] Moving to wolfram alpha for holidat countdowns --- packages/holidays.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/holidays.yaml b/packages/holidays.yaml index 7bc6a41..53cfd76 100644 --- a/packages/holidays.yaml +++ b/packages/holidays.yaml @@ -195,4 +195,17 @@ script: - \ No newline at end of file +sensor: + - platform: rest + name: Halloween Countdown + resource: !secret WA_HALLOWEEN + value_template: "{{ (value|replace(' days', '')) | int }}" + unit_of_measurement: Days + scan_interval: 43200 + + - platform: rest + name: Christmas Countdown + resource: !secret WA_XMAS + value_template: "{{ (value|replace(' days', '')) | int }}" + unit_of_measurement: Days + scan_interval: 43200