Turn on car charger locally
This commit is contained in:
@@ -7,3 +7,22 @@ esphome:
|
||||
|
||||
packages:
|
||||
device_base: !include templates/mystrom.yaml
|
||||
time: !include templates/time.yaml
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers: !secret sntp_servers
|
||||
on_time:
|
||||
- seconds: 0
|
||||
minutes: 1
|
||||
hours: 0-6,19-23
|
||||
then:
|
||||
- if:
|
||||
condition:
|
||||
- switch.is_off: mystrom_relay
|
||||
then:
|
||||
- logger.log: >-
|
||||
Power relay is off during T2, assuming automation failure and
|
||||
correcting
|
||||
- switch.turn_on: mystrom_relay
|
||||
|
||||
Reference in New Issue
Block a user