2022-05-25 08:58:02 +00:00
|
|
|
esphome:
|
|
|
|
name: tabletenniscounter
|
|
|
|
platform: ESP8266
|
|
|
|
board: nodemcuv2
|
2024-05-01 10:33:02 +00:00
|
|
|
|
|
|
|
external_components:
|
|
|
|
- source:
|
|
|
|
type: local
|
|
|
|
path: external_components/
|
|
|
|
components: [ ws2812_table_tennis ]
|
2022-05-25 08:58:02 +00:00
|
|
|
|
|
|
|
# Enable logging
|
|
|
|
logger:
|
|
|
|
|
|
|
|
ota:
|
2024-11-18 13:08:12 +00:00
|
|
|
- platform: esphome
|
|
|
|
password: !secret ttdpassword
|
2022-05-25 08:58:02 +00:00
|
|
|
|
|
|
|
api:
|
|
|
|
encryption:
|
|
|
|
key: !secret ttdkey
|
|
|
|
|
|
|
|
wifi:
|
|
|
|
ssid: !secret wifi_ssid
|
|
|
|
password: !secret wifi_password
|
|
|
|
fast_connect: true
|
|
|
|
|
|
|
|
number:
|
|
|
|
- platform: template
|
|
|
|
name: "Red Number"
|
|
|
|
id: red_num
|
|
|
|
optimistic: true
|
|
|
|
min_value: 0
|
|
|
|
max_value: 99
|
|
|
|
step: 1
|
|
|
|
- platform: template
|
|
|
|
name: "Blue Number"
|
|
|
|
id: blue_num
|
|
|
|
optimistic: true
|
|
|
|
min_value: 0
|
|
|
|
max_value: 99
|
|
|
|
step: 1
|
|
|
|
|
|
|
|
mqtt:
|
|
|
|
broker: !secret mqtt_broker_1
|
|
|
|
client_id: "tableTennisCounter"
|
|
|
|
username: !secret mqtt_broker_1_username
|
2024-05-01 10:33:02 +00:00
|
|
|
password: !secret mqtt_broker_1_password
|
|
|
|
|
|
|
|
ws2812_table_tennis:
|
|
|
|
# name: Led Display
|
|
|
|
red_number: red_num
|
|
|
|
blue_number: blue_num
|