You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
774 B
43 lines
774 B
#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 |
|
|
|
|