diff --git a/esphome/the-football.yaml b/esphome/the-football.yaml index 808e986..6fbb4ae 100644 --- a/esphome/the-football.yaml +++ b/esphome/the-football.yaml @@ -16,12 +16,16 @@ wifi: captive_portal: logger: - +ota: + password: !secret ESP_HOME_API + api: password: !secret ESP_HOME_API encryption: key: !secret ESPhome_encryption - +#################################################################################################### +## rtttl services +#################################################################################################### services: - service: play_rtttl variables: @@ -29,13 +33,14 @@ api: then: - rtttl.play: rtttl: !lambda 'return song_str;' - -ota: - password: !secret ESP_HOME_API - +#################################################################################################### +## rtttl +#################################################################################################### rtttl: output: buzzer - +#################################################################################################### +## sensor +#################################################################################################### sensor: - platform: wifi_signal name: ${devicename} WiFi @@ -49,7 +54,14 @@ sensor: min_value: 0 max_value: 40 resolution: 2 - +#################################################################################################### +## text_sensor +#################################################################################################### +text_sensor: + - platform: homeassistant + name: "beep" + id: beep + entity_id: input_boolean.the_football_beep #################################################################################################### ## Light #################################################################################################### @@ -204,7 +216,6 @@ output: - platform: ledc pin: GPIO13 id: buzzer - ###################################################################### ## The binary lights (output) ###################################################################### @@ -228,7 +239,6 @@ output: pin: GPIO0 id: "output_D5" inverted: False - #################################################################################################### ## The buttons/switches #################################################################################################### @@ -306,7 +316,6 @@ binary_sensor: on_release: then: - rtttl.play: 'beep:d=4,o=5,b=200:16e6' - ###################################################################### ## D ###################################################################### @@ -355,4 +364,3 @@ binary_sensor: on_press: then: - rtttl.play: 'beep:d=4,o=5,b=200:16e6' -