diff --git a/pingpongfuss1.yaml b/pingpongfuss1.yaml new file mode 100644 index 0000000..f2b79a1 --- /dev/null +++ b/pingpongfuss1.yaml @@ -0,0 +1,90 @@ +esphome: + name: pingfuss1 + platform: ESP8266 + board: nodemcuv2 + +# Enable logging +logger: + +# Enable Home Assistant API +# DISABLED - We currently do not need it for operation. Maybe someday + +# api: +# password: !secret ttfpassword + +ota: + password: !secret ttfpassword + +wifi: + ssid: !secret wifi_ssid + password: !secret wifi_password + fast_connect: true + + +# Example configuration entry +mqtt: + broker: !secret mqtt_broker_1 + username: !secret mqtt_broker_1_username + password: !secret mqtt_broker_1_password + +# Example configuration entry +binary_sensor: + - platform: gpio + pin: + number: D2 + inverted: true + mode: + input: true + pullup: true + id: "Fusstaste_BLAU" + internal: true + #filters: + # - delayed_on: 10ms + # - delayed_off: 50ms + on_multi_click: + - timing: + - ON for at most 700ms + - OFF for at least 50ms + then: + - mqtt.publish: + topic: tabletenniscounter/control/score/count + payload: "1" + qos: 2 + - timing: + - ON for at least 1s + then: + - mqtt.publish: + topic: tabletenniscounter/control/score/undo + payload: "" + qos: 2 + - platform: gpio + pin: + number: D3 + inverted: true + mode: + input: true + pullup: true + id: "Fusstaste_ROT" + internal: true + #filters: + # - delayed_on: 10ms + # - delayed_off: 50ms + on_multi_click: + - timing: + - ON for at most 700ms + - OFF for at least 50ms + then: + - mqtt.publish: + topic: tabletenniscounter/control/score/count + payload: "0" + qos: 2 + - timing: + - ON for at least 1s + then: + - mqtt.publish: + topic: tabletenniscounter/control/score/undo + payload: "" + qos: 2 + + + diff --git a/secrets.yaml.template b/secrets.yaml.template index 037f408..9ca02af 100644 --- a/secrets.yaml.template +++ b/secrets.yaml.template @@ -2,9 +2,22 @@ wifi_ssid: "WIFI SSID" wifi_password: "WIFI PASSWORD" +# Broker 1 +mqtt_broker_1: # Broker 1 IP +mqtt_broker_1_username: # Broker 1 username +mqtt_broker_1_password: # Broker 1 password + # Papa Broker mqtt_broker_2: # Just put your broker in here... # A3Pool a3poolpasswd: # A3Pool OTA and native API password -a3poolkey: # Native API encryption KEY \ No newline at end of file +a3poolkey: # Native API encryption KEY + +# Table Tennis Footswitches (No ttf encryption but may be added) +ttfpassword: # A3Pool OTA and native API password +# ttfkey: # Native API encryption KEY + +# Table Tennis ledstrip display +ttdpassword: # A3Pool OTA and native API password +ttdkey: # Native API encryption KEY \ No newline at end of file