55 lines
871 B
YAML
55 lines
871 B
YAML
esphome:
|
|
name: fountain_1_light
|
|
platform: ESP8266
|
|
board: esp01_1m
|
|
|
|
wifi:
|
|
ssid: kungle-ot
|
|
password: ThingsWelcomeToKungle
|
|
|
|
manual_ip:
|
|
static_ip: 192.168.37.66
|
|
gateway: 192.168.37.1
|
|
subnet: 255.255.255.0
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
|
|
ota:
|
|
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO4
|
|
mode: INPUT_PULLUP
|
|
inverted: True
|
|
name: "Fountain 1 Light button"
|
|
on_press:
|
|
- switch.toggle: relay
|
|
|
|
switch:
|
|
- platform: gpio
|
|
name: "Fountain 1 Light relay"
|
|
pin: GPIO14
|
|
id: relay
|
|
|
|
status_led:
|
|
pin:
|
|
number: GPIO12
|
|
inverted: yes
|
|
|
|
sensor:
|
|
- platform: wifi_signal
|
|
name: "Fountain 1 Light WiFi signal"
|
|
update_interval: 60s
|
|
|
|
- platform: uptime
|
|
name: "Fountain 1 Light uptime"
|
|
|
|
text_sensor:
|
|
- platform: version
|
|
name: "Fountain 1 Light ESPHome version" |