]> git.giorgioravera.it Git - esphome.git/commitdiff
Minor fixes master
authorGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 24 Sep 2021 19:03:30 +0000 (21:03 +0200)
committerGiorgio Ravera <giorgio.ravera@gmail.com>
Fri, 24 Sep 2021 19:03:30 +0000 (21:03 +0200)
esp01-ro.yaml
esp01.yaml

index f9a70269a09fb5220b3a0825fad555e66e1c5ebc..d86b0034aee86d02d8e9b37bccf1d16f6e496f85 100644 (file)
@@ -10,7 +10,7 @@ substitutions:
 # ESPHome Configuration
 ######################################################################
 esphome:
 # ESPHome Configuration
 ######################################################################
 esphome:
-  name: esp01-ro
+  name: esp01
   comment: "Test esp01 relay only"
   platform: ESP8266
   board: esp01_1m
   comment: "Test esp01 relay only"
   platform: ESP8266
   board: esp01_1m
@@ -60,6 +60,10 @@ switch:
     pin: GPIO0
     inverted: yes
     restore_mode: ALWAYS_OFF
     pin: GPIO0
     inverted: yes
     restore_mode: ALWAYS_OFF
+    on_turn_on:
+      then:
+        - delay: 0.5s
+        - switch.turn_off: relay
     
 ######################################################################
 # Text Sensor
     
 ######################################################################
 # Text Sensor
index 0915f71d949dd1f0a362466bda48945fc90a8095..20a74e44fb7c6cf3966600a8a7c8b9a0b08ed5de 100644 (file)
@@ -2,7 +2,6 @@
 # Substitutions
 ######################################################################
 substitutions:
 # Substitutions
 ######################################################################
 substitutions:
-  esp01_hostname: "esp01"
   esp01_topic: "esphome/esp01"
   esp01_version: "00.02-full"
   vitality_message: "hello, i'm alive!"
   esp01_topic: "esphome/esp01"
   esp01_version: "00.02-full"
   vitality_message: "hello, i'm alive!"
@@ -12,8 +11,8 @@ substitutions:
 # ESPHome Configuration
 ######################################################################
 esphome:
 # ESPHome Configuration
 ######################################################################
 esphome:
-  name: $esp01_hostname
-  comment: "Test $esp01_hostname full version"
+  name: esp01
+  comment: "Test esp01 full version"
   platform: ESP8266
   board: esp01_1m
 
   platform: ESP8266
   board: esp01_1m