# ESPHome Configuration
######################################################################
esphome:
- name: esp01-ro
+ name: esp01
comment: "Test esp01 relay only"
platform: ESP8266
board: esp01_1m
pin: GPIO0
inverted: yes
restore_mode: ALWAYS_OFF
+ on_turn_on:
+ then:
+ - delay: 0.5s
+ - switch.turn_off: relay
######################################################################
# Text Sensor
# Substitutions
######################################################################
substitutions:
- esp01_hostname: "esp01"
esp01_topic: "esphome/esp01"
esp01_version: "00.02-full"
vitality_message: "hello, i'm alive!"
# ESPHome Configuration
######################################################################
esphome:
- name: $esp01_hostname
- comment: "Test $esp01_hostname full version"
+ name: esp01
+ comment: "Test esp01 full version"
platform: ESP8266
board: esp01_1m