2024-05-01 10:35:11 +00:00
|
|
|
esphome:
|
|
|
|
name: nbs-mainlight
|
|
|
|
|
|
|
|
esp8266:
|
|
|
|
board: esp01_1m
|
|
|
|
|
|
|
|
wifi:
|
|
|
|
ssid: !secret wifi_ssid
|
|
|
|
password: !secret wifi_password
|
2024-05-29 08:40:26 +00:00
|
|
|
fast_connect: true
|
2024-05-29 08:14:22 +00:00
|
|
|
ap:
|
|
|
|
ssid: nbs_light_rescue
|
|
|
|
password: !secret rescue_ap_password
|
|
|
|
|
|
|
|
captive_portal:
|
2024-05-01 10:35:11 +00:00
|
|
|
|
|
|
|
api:
|
|
|
|
encryption:
|
|
|
|
key: !secret ml_key
|
|
|
|
|
|
|
|
ota:
|
2024-08-22 16:35:45 +00:00
|
|
|
- platform: esphome
|
|
|
|
password: !secret ml_password
|
2024-05-01 10:35:11 +00:00
|
|
|
|
|
|
|
logger:
|
|
|
|
|
|
|
|
binary_sensor:
|
|
|
|
- platform: gpio
|
|
|
|
pin:
|
|
|
|
number: GPIO0
|
|
|
|
mode:
|
|
|
|
input: true
|
|
|
|
pullup: true
|
|
|
|
inverted: true
|
|
|
|
id: button_1
|
|
|
|
on_press:
|
|
|
|
then:
|
|
|
|
- light.toggle: light_1
|
|
|
|
|
|
|
|
- platform: status
|
|
|
|
name: "T1 Status"
|
|
|
|
|
|
|
|
output:
|
|
|
|
- platform: gpio
|
|
|
|
pin: GPIO12
|
|
|
|
id: relay_1
|
|
|
|
|
|
|
|
light:
|
|
|
|
- platform: binary
|
|
|
|
name: Main Light
|
|
|
|
id: light_1
|
|
|
|
output: relay_1
|
|
|
|
|
|
|
|
status_led:
|
|
|
|
pin:
|
|
|
|
number: GPIO13
|
|
|
|
inverted: no
|