From: Giorgio Ravera Date: Fri, 24 Sep 2021 19:03:30 +0000 (+0200) Subject: Minor fixes X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=HEAD;p=esphome.git Minor fixes --- diff --git a/esp01-ro.yaml b/esp01-ro.yaml index f9a7026..d86b003 100644 --- a/esp01-ro.yaml +++ b/esp01-ro.yaml @@ -10,7 +10,7 @@ substitutions: # ESPHome Configuration ###################################################################### esphome: - name: esp01-ro + name: esp01 comment: "Test esp01 relay only" platform: ESP8266 board: esp01_1m @@ -60,6 +60,10 @@ switch: pin: GPIO0 inverted: yes restore_mode: ALWAYS_OFF + on_turn_on: + then: + - delay: 0.5s + - switch.turn_off: relay ###################################################################### # Text Sensor diff --git a/esp01.yaml b/esp01.yaml index 0915f71..20a74e4 100644 --- a/esp01.yaml +++ b/esp01.yaml @@ -2,7 +2,6 @@ # Substitutions ###################################################################### substitutions: - esp01_hostname: "esp01" esp01_topic: "esphome/esp01" esp01_version: "00.02-full" vitality_message: "hello, i'm alive!" @@ -12,8 +11,8 @@ substitutions: # ESPHome Configuration ###################################################################### esphome: - name: $esp01_hostname - comment: "Test $esp01_hostname full version" + name: esp01 + comment: "Test esp01 full version" platform: ESP8266 board: esp01_1m