substitutions:
  devicename: og-fl-pw-tablet

esphome:
  name: ${devicename}
  platform: ESP8266
  board: nodemcuv2

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "hz4Qw6LGiYDpqrOxM89VvGu65Zl4k48fivVKU16BBzI="

ota:
  password: "918e5604e0036edccbbb261ce8a7ab4b"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  manual_ip:
    static_ip: 192.168.1.194
    gateway: 192.168.1.1
    subnet: 255.255.255.0
    
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "${devicename}"
    password: "KhFkbQXGGRoU"

captive_portal:

### temp sensor
### switch für releae von garage
### audio connector auch switch???

switch:
#D1 Relais für den Türöffner
  - platform: gpio
    pin: D1
    id: relay
    name: "Tablet laden"
    icon: "mdi:BatteryChargingWirelessOutline"
  - platform: restart
    name: "${devicename} Neustart"
  
sensor:
  - platform: wifi_signal
    name: "${devicename} Wi-Fi Signal"
    update_interval: 60s

  - platform: uptime
    name: "${devicename} Uptime"
    update_interval: 60s