# Basic Config 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