From 774016bbfbfcd52d6a85e0c72045ae899e05371a Mon Sep 17 00:00:00 2001 From: NBSgamesAT Date: Tue, 28 Jun 2022 11:37:19 +0200 Subject: [PATCH] Adds a timezone and automatic pump control. Further control coming soon --- a3pool.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/a3pool.yaml b/a3pool.yaml index 209a6dc..82ed343 100644 --- a/a3pool.yaml +++ b/a3pool.yaml @@ -47,6 +47,7 @@ switch: - platform: template optimistic: false name: pump + id: pump lambda: |- if (id(pump_state).state) { return true; @@ -70,6 +71,24 @@ switch: - delay: 500ms - switch.turn_off: relay +time: + timezone: "Europe/Vienna" + id: a3poolTime + platform: sntp + on_time: + - seconds: 0 + minutes: 0 + hours: 8 + months: 5-10 + then: + - switch.turn_on: pump + - seconds: 0 + minutes: 0 + hours: 8 + months: 5-10 + then: + - switch.turn_off: pump + dallas: - pin: D4 update_interval: 10s