---
esphome:
  name: bedroom_ss30
esp8266:
  board: esp01_1m
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: !secret bedroom_ss30_ip
    gateway: !secret house_gateway
    subnet: 255.255.255.0
logger:
api:
  encryption:
    key: !secret api_encryption_key
ota:
  password: !secret bedroom_ss30_ota
sensor:
  - platform: wifi_signal
    name: "Bedroom SS30 WiFi signal"
    update_interval: 60s
  - platform: uptime
    name: "Bedroom SS30 uptime"
text_sensor:
  - platform: version
    name: "Bedroom SS30 ESPHome version"
switch:
  - platform: gpio
    name: "Bedroom SS30 relay 1"
    pin: GPIO04
    inverted: yes
    id: relay1
  - platform: gpio
    name: "Bedroom SS30 relay 2"
    pin: GPIO13
    inverted: yes
    id: relay2
  - platform: gpio
    name: "Bedroom SS30 relay 3"
    pin: GPIO12
    inverted: yes
    id: relay3
  - platform: gpio
    name: "Bedroom SS30 relay 4"
    pin: GPIO14
    inverted: yes
    id: relay4
  - platform: gpio
    name: "Bedroom SS30 relay 5"
    pin: GPIO16
    id: relay5
binary_sensor:
  - platform: gpio
    pin:
      number: GPIO5
      mode: INPUT_PULLUP
      inverted: False
    name: "Bedroom SS30 button"
    on_press:
      - switch.turn_off: relay1
      - switch.turn_off: relay2
      - switch.turn_off: relay3
      - switch.turn_off: relay4
      - switch.turn_off: relay5
  - platform: status
    name: "Bedroom SS30 Status"
status_led:
  pin:
    number: GPIO00