74 lines
1.3 KiB
YAML
74 lines
1.3 KiB
YAML
esphome:
|
|
name: "${devicename}"
|
|
platformio_options:
|
|
build_flags:
|
|
- -DWORDCLOCK_DATA_PIN=22
|
|
- -DWORDCLOCK_NUM_LEDS=198
|
|
includes:
|
|
- wordclock.h
|
|
|
|
external_components:
|
|
- source:
|
|
type: local
|
|
path: components
|
|
components: [ wordcl ]
|
|
|
|
esp8266:
|
|
board: d1_mini
|
|
framework:
|
|
version: recommended
|
|
|
|
# esp32:
|
|
# board: ttgo-t7-v13-mini32
|
|
# framework:
|
|
# type: arduino
|
|
|
|
substitutions:
|
|
devicename: wordclock
|
|
friendly_name: "Wordclock"
|
|
light_friendly_name: "Wordclock Light"
|
|
|
|
wifi:
|
|
ssid: !secret wifi_ssid
|
|
password: !secret wifi_password
|
|
ap:
|
|
ssid: "${devicename}"
|
|
password: !secret ap_password
|
|
manual_ip:
|
|
static_ip: !secret manualip_static_ip
|
|
gateway: !secret manualip_gateway
|
|
subnet: !secret manualip_subnet
|
|
dns1: 1.1.1.1
|
|
dns2: 1.0.0.1
|
|
|
|
api:
|
|
|
|
ota:
|
|
password: "${devicename}"
|
|
|
|
logger:
|
|
# esp8266_store_log_strings_in_flash: false
|
|
web_server:
|
|
port: 80
|
|
|
|
light:
|
|
- platform: fastled_clockless
|
|
id: fastledlight
|
|
chipset: WS2812
|
|
pin: 23
|
|
num_leds: 198
|
|
rgb_order: GRB
|
|
name: ${light_friendly_name}
|
|
restore_mode: ALWAYS_ON
|
|
|
|
time:
|
|
- platform: sntp
|
|
id: current_time
|
|
timezone: !secret timezone
|
|
|
|
custom_component:
|
|
- lambda: |-
|
|
auto wordclock = new Wordclock();
|
|
return {wordclock};
|
|
components:
|
|
- id: wordclock
|