Removed the second check on a3pool again.yaml

This commit is contained in:
Nicolas Bachschwell 2024-05-13 11:02:49 +02:00
parent 12f9dea01b
commit 1e35bff570
Signed by: NBSgamesAT
GPG Key ID: 2D73288FF7AEED2F

View File

@ -121,18 +121,20 @@ time:
id: a3poolTime id: a3poolTime
platform: sntp platform: sntp
on_time: on_time:
- months: 4-10 - seconds: 0
months: 4-10
then: then:
- if: - if:
condition: condition:
lambda: 'return id(a3poolTime).now().hour == id(pool_start).hour && id(a3poolTime).now().minute == id(pool_start).minute && id(a3poolTime).now().second == id(pool_start).second && id(control).state;' lambda: 'return id(a3poolTime).now().hour == id(pool_start).hour && id(a3poolTime).now().minute == id(pool_start).minute/* && id(a3poolTime).now().second == id(pool_start).second*/ && id(control).state;'
then: then:
- switch.turn_on: pump - switch.turn_on: pump
- months: 4-10 - seconds: 0
months: 4-10
then: then:
- if: - if:
condition: condition:
lambda: 'return id(a3poolTime).now().hour == id(pool_end).hour && id(a3poolTime).now().minute == id(pool_end).hour && id(a3poolTime).now().second == id(pool_end).second && id(control).state;' lambda: 'return id(a3poolTime).now().hour == id(pool_end).hour && id(a3poolTime).now().minute == id(pool_end).hour/* && id(a3poolTime).now().second == id(pool_end).second*/ && id(control).state;'
then: then:
- switch.turn_off: pump - switch.turn_off: pump