Adds a timezone and automatic pump control. Further control coming soon

This commit is contained in:
Nicolas Bachschwell 2022-06-28 11:37:19 +02:00
parent 05a93e2aa5
commit 774016bbfb
Signed by: NBSgamesAT
GPG Key ID: B2F1E0D04F024688
1 changed files with 19 additions and 0 deletions

View File

@ -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