Files
ESPHome/treatlife_ss01s_a.yaml
2021-08-10 21:24:51 -04:00

44 lines
733 B
YAML

substitutions:
device_name: treatlife_ss01s_a
device_ip: 192.168.87.76
esphome:
name: ${device_name}
platform: ESP8266
board: esp01_1m
# platformio_options:
# upload_speed: 115200 #baud, tagging this so grep will find it later
<<: !include standard_wifi.yaml
logger:
baud_rate: 0 # (UART logging interferes with cse7766)
api:
# reboot_timeout: 15min
ota:
# Device Specific Config
switch:
- platform: gpio
id: "relay"
name: "light"
pin: 12
output:
- platform: esp8266_pwm
id: status_led
pin:
number: GPIO4
inverted: True
binary_sensor:
- platform: gpio
name: "button"
pin:
number: 13
inverted: True
on_press:
- switch.toggle: relay