Switch to disable failsafe charging schedule
This commit is contained in:
@@ -9,6 +9,13 @@ packages:
|
|||||||
device_base: !include templates/mystrom.yaml
|
device_base: !include templates/mystrom.yaml
|
||||||
time: !include templates/time.yaml
|
time: !include templates/time.yaml
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: template
|
||||||
|
name: "Failsafe schedule"
|
||||||
|
id: failsafe_schedule
|
||||||
|
restore_mode: RESTORE_DEFAULT_ON
|
||||||
|
optimistic: true
|
||||||
|
|
||||||
time:
|
time:
|
||||||
- platform: sntp
|
- platform: sntp
|
||||||
id: sntp_time
|
id: sntp_time
|
||||||
@@ -21,6 +28,7 @@ time:
|
|||||||
then:
|
then:
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
|
- switch.is_on: failsafe_schedule
|
||||||
- switch.is_off: mystrom_relay
|
- switch.is_off: mystrom_relay
|
||||||
then:
|
then:
|
||||||
- logger.log: >-
|
- logger.log: >-
|
||||||
|
|||||||
Reference in New Issue
Block a user