diff --git a/loud-siren.yaml b/loud-siren.yaml new file mode 100644 index 0000000..d7f684f --- /dev/null +++ b/loud-siren.yaml @@ -0,0 +1,10 @@ +esphome: + name: loud-siren + friendly_name: "Loud siren" + + project: + name: dasfoo.siren + version: "1.0" + +packages: + device_base: !include templates/esp01s.yaml diff --git a/reflash.sh b/reflash.sh index 5c99db8..1d9a60f 100755 --- a/reflash.sh +++ b/reflash.sh @@ -22,6 +22,7 @@ flash=( "${command?} bathroomheater.yaml" "${command?} blinds.yaml" "${command?} heating.yaml" + "${command?} loud-siren.yaml" "${command?} ruuvi.yaml" "${command?} watermeter.yaml" ) diff --git a/templates/esp01s.yaml b/templates/esp01s.yaml new file mode 100644 index 0000000..a66915b --- /dev/null +++ b/templates/esp01s.yaml @@ -0,0 +1,17 @@ +esp8266: + board: esp01_1m + +packages: + wifi: !include wifi.yaml + ota: !include ota.yaml + mqtt: !include mqtt.yaml + uptime: !include uptime.yaml + restart: !include restart.yaml + +logger: + +switch: +- platform: gpio + pin: GPIO0 + name: None + inverted: true