From cc87d0ffa594c8efe62c55cb8b549c5a790a70ba Mon Sep 17 00:00:00 2001 From: Nicolas Bachschwell Date: Sat, 17 Feb 2024 20:04:58 +0100 Subject: [PATCH] Added gong.yaml --- gong.yaml | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 gong.yaml diff --git a/gong.yaml b/gong.yaml new file mode 100644 index 0000000..e6235ec --- /dev/null +++ b/gong.yaml @@ -0,0 +1,77 @@ +esphome: + name: gong + platform: ESP8266 + board: nodemcuv2 + +# Enable logging +logger: + +# Enable Home Assistant API +api: + encryption: + key: TwXpNFcIGatjEbF6aYFsh4FGURtbsGUJBckYvM55AfA= + +ota: + password: "gtexztjcuzrjuzrtzesgrzwstrfh" + +wifi: + ssid: "BachiNetIoT" + password: "nD4ofyYz" + fast_connect: true + +button: + - platform: template + name: Ton 1 + id: ton_1 + icon: "mdi:music-note-eighth" + on_press: + - logger.log: "PLAY Ton1" + - output.turn_on: ton1_pin + - delay: 500ms + - output.turn_off: ton1_pin + - platform: template + name: Ton 2 + id: ton_2 + icon: "mdi:music-note-eighth" + on_press: + - logger.log: "PLAY Ton2" + - output.turn_on: ton2_pin + - delay: 500ms + - output.turn_off: ton2_pin + - platform: template + name: Ton 3 + id: ton_3 + icon: "mdi:music-note-eighth" + on_press: + - logger.log: "PLAY Ton3" + - output.turn_on: ton3_pin + - delay: 500ms + - output.turn_off: ton3_pin + - platform: template + name: Ton 4 + id: ton_4 + icon: "mdi:music-note-eighth" + on_press: + - logger.log: "PLAY Ton4" + - output.turn_on: ton4_pin + - delay: 500ms + - output.turn_off: ton4_pin + +output: + - platform: gpio + pin: D5 + id: ton1_pin + - platform: gpio + pin: D6 + id: ton2_pin + - platform: gpio + pin: D7 + id: ton3_pin + - platform: gpio + pin: D8 + id: ton4_pin + +switch: + - platform: gpio + pin: D3 + name: "Gong Mute" \ No newline at end of file