espHome-NBS-files/tableTennisDisplay.yaml

51 lines
956 B
YAML
Raw Normal View History

esphome:
name: tabletenniscounter
platform: ESP8266
board: nodemcuv2
includes:
- cpp-files/tableTennisDisplay.h
libraries:
- "makuna/NeoPixelBus"
custom_component:
- lambda: |-
auto customNumberDisplay = new CustomNumberDisplayComponent();
return {customNumberDisplay};
# Enable logging
logger:
ota:
password: !secret ttdpassword
api:
password: !secret ttdpassword
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
password: !secret mqtt_broker_1_password