Added gong.yaml

This commit is contained in:
Nicolas Bachschwell 2024-02-17 20:04:58 +01:00
parent 713faae604
commit cc87d0ffa5
Signed by: NBSgamesAT
GPG Key ID: 2D73288FF7AEED2F

77
gong.yaml Normal file
View File

@ -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"