Give each mystrom a separate file
This allows to set friendly_name (required for default entity) and make an area suggestion, while also simplifying reflash.sh script.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
substitutions:
|
||||
name: "outdoor-equipment"
|
||||
friendly_name: "Outdoor equipment"
|
||||
|
||||
esphome:
|
||||
area: "Backyard"
|
||||
|
||||
packages:
|
||||
device_base: !include templates/mystrom.yaml
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
on_time:
|
||||
- hours: 15
|
||||
minutes: 35
|
||||
seconds: 0
|
||||
months: APR-OCT
|
||||
then:
|
||||
- switch.turn_on: mystrom_relay
|
||||
- hours: 21
|
||||
minutes: 55
|
||||
seconds: 0
|
||||
months: APR-OCT
|
||||
then:
|
||||
- switch.turn_off: mystrom_relay
|
||||
Reference in New Issue
Block a user