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:
2024-01-25 19:36:32 +01:00
parent 6d6a2a269e
commit 0acd5c7d72
10 changed files with 75 additions and 33 deletions
+25
View File
@@ -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