Added pingpongfuss1.yaml (Table Tennis Footswitch) to it. Documentation will come soon!

This commit is contained in:
Nicolas Bachschwell 2022-05-24 11:42:35 +02:00
parent 9d22ee1830
commit 0eb0b179fe
Signed by: NBSgamesAT
GPG Key ID: B2F1E0D04F024688
2 changed files with 104 additions and 1 deletions

90
pingpongfuss1.yaml Normal file
View File

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

View File

@ -2,9 +2,22 @@
wifi_ssid: "WIFI SSID" wifi_ssid: "WIFI SSID"
wifi_password: "WIFI PASSWORD" 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 # Papa Broker
mqtt_broker_2: # Just put your broker in here... mqtt_broker_2: # Just put your broker in here...
# A3Pool # A3Pool
a3poolpasswd: # A3Pool OTA and native API password a3poolpasswd: # A3Pool OTA and native API password
a3poolkey: # Native API encryption KEY 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