esphome: name: esphome-heatingsystem platform: ESP8266 board: esp01_1m board_flash_mode: dout on_boot: - switch.turn_on: relay - light.turn_on: led - switch.turn_on: fakebutton mqtt: broker: 192.168.178.36 port: 1884 username: nils password: inginf95 on_message: topic: esphome-heatingsystem/restart qos: 0 then: - switch.turn_off: relay # Enable logging logger: hardware_uart: UART1 # Enable Home Assistant API #api: web_server: port: 80 auth: username: nils password: inginf95 ota: password: "0848c056d780accd7fbb0dbaf989156b" wifi: ssid: "EasyBox-368239" password: "inginf95" # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Sonoff-Basic-Test" password: "Wky9j6BNCgI0" captive_portal: binary_sensor: - platform: gpio pin: number: GPIO0 mode: INPUT_PULLUP inverted: True name: "Sonoff Basic Button" on_press: - switch.toggle: fakebutton switch: - platform: template name: "Sonoff Basic Relay" optimistic: true id: fakebutton turn_on_action: - switch.turn_on: relay - light.turn_on: led turn_off_action: - switch.turn_off: relay - light.turn_off: led - platform: gpio id: relay pin: GPIO12 name: "Heating System Relay" on_turn_off: - delay: 2500ms - switch.turn_on: relay output: - platform: esp8266_pwm id: basic_green_led pin: number: GPIO13 inverted: True light: - platform: monochromatic name: "Sonoff Basic Green LED" output: basic_green_led id: led sensor: - platform: wifi_signal name: "Sonoff Basic WiFi Signal" update_interval: 60s - platform: uptime name: "Sonoff Basic Uptime" - platform: dallas address: 0x4F01204FEB52A128 name: "Test Sensor Temperature" filters: - filter_out: nan - platform: dallas address: 0x1901204FFD99B328 name: "Test Sensor2 Temperature" filters: - filter_out: nan - platform: dallas address: 0x9001204EFDB37828 name: "Test Sensor3 Temperature" filters: - filter_out: nan dallas: - pin: GPIO1 update_interval: 30s text_sensor: - platform: version name: "Sonoff Basic ESPHome Version"