esphome: name: neopixel-controller
esp8266: board: esp01_1m
# Enable logginglogger:
# Enable Home Assistant APIapi:
ota: password: !secret ota_pw_neopixel_controller
wifi: ssid: !secret wifi_ssid password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Testcontroller Fallback AP" password: !secret wifi_password_fallback captive_portal:
binary_sensor: - platform: gpio pin: number: GPIO0 mode: INPUT_PULLUP inverted: True name: "Device Button" on_press: then: # - light.toggle: light_1 - switch.toggle: relaysensor: - platform: dht pin: GPIO1 temperature: name: "Raum Temperatur" humidity: name: "Raum Feuchtigkeit" update_interval: 60s
status_led: pin: number: GPIO13 inverted: yes id: led_status
switch: - platform: gpio name: "Relais" icon: "mdi:restart" pin: GPIO12 id: relay - platform: gpio name: "Relais 2" icon: "mdi:lightbulb-auto" id: relay2 pin: GPIO3 on_turn_on: - delay: 2 s - switch.turn_off: relay2