From 169d4d6abdecee8e71f053570608a54e6c5cd11b Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Sun, 29 Oct 2023 08:49:05 +0100 Subject: [PATCH] Add loud siren --- loud-siren.yaml | 10 ++++++++++ reflash.sh | 1 + templates/esp01s.yaml | 17 +++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 loud-siren.yaml create mode 100644 templates/esp01s.yaml 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