ESPHome_Config/kettle.yaml
2021-01-31 13:47:14 +00:00

43 lines
774 B
YAML

#SONOFF S26
#https://www.amazon.co.uk/gp/product/B07TS5P2K1/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1
esphome:
name: kettle
platform: ESP8266
board: esp8285
wifi:
ssid: !secret wifi-ssid
password: !secret wifi-password
logger:
api:
ota:
# Device Specific Config
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
internal: true
name: "Kettle Button"
on_press:
# Prevents unintended LED lit states.
if:
condition:
- switch.is_off: kettle
then:
#- light.turn_on: blue_led
- switch.turn_on: kettle
else:
- switch.turn_off: kettle
switch:
- platform: gpio
name: "Kettle"
id: kettle
pin: GPIO12