From a11ef51d7106db27b2d9c3ed17eb4e504390ab14 Mon Sep 17 00:00:00 2001 From: ESPHome Device Builder Date: Sat, 25 Jul 2026 21:56:05 +1200 Subject: [PATCH] Edit esp-officeelvcontrol.yaml --- esphome/esp-officeelvcontrol.yaml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/esphome/esp-officeelvcontrol.yaml b/esphome/esp-officeelvcontrol.yaml index 27aca53..eb5729f 100644 --- a/esphome/esp-officeelvcontrol.yaml +++ b/esphome/esp-officeelvcontrol.yaml @@ -44,7 +44,6 @@ # - Accurate time is NOT needed (SNTP not required) #:########################################################################################:# - #:########################################################################################:# # SUBSTITUTIONS: Specific device variable substitutions # If NOT using a secrets file, just replace these with the passwords etc (in quotes) @@ -58,7 +57,7 @@ substitutions: # Project Naming project_name: "Sonoff Technologies.Sonoff Basic V1" # Project Details - project_version: "v1.1" # Project V denotes release of yaml file, allowing checking of deployed vs latest version + project_version: "v1.1" # Project V denotes release of yaml file, allowing checking of deployed vs latest version # Passwords & Secrets api_key: !secret esp-api_key # unfortunately you can't use substitutions inside secrets names @@ -83,7 +82,6 @@ substitutions: mqtt_device_name: "office-elv-control" mqtt_main_topic: "${mqtt_command_main_topic}/${mqtt_device_name}" # Topic we will use to command stuff from external without HA - #:########################################################################################:# # PACKAGES: Included Common Packages # https://esphome.io/components/packages.html @@ -123,7 +121,6 @@ packages: #diag_debug: !include common/include_debug_diag_sensors.yaml #diag_resetcount: !include common/include_resetcount_diag_sensors.yaml - #:########################################################################################:# # ESPHOME: # https://esphome.io/components/esphome.html @@ -137,13 +134,12 @@ esphome: name: "${project_name}" version: "${project_version}" - #:########################################################################################:# # ESP PLATFORM AND FRAMEWORK: # https://esphome.io/components/esp8266.html #:########################################################################################:# esp8266: - board: esp01_1m # The original Sonoff Basic + board: esp01_1m # The original Sonoff Basic restore_from_flash: true # restore some values on reboot preferences: @@ -152,7 +148,6 @@ preferences: mdns: disabled: false - #:########################################################################################:# # LOGGING: # https://esphome.io/components/logger.html @@ -161,7 +156,6 @@ logger: level: "${log_level}" baud_rate: 0 # set to 0 for no logging via UART - #:########################################################################################:# # STATUS LED: # https://esphome.io/components/status_led.html @@ -172,7 +166,6 @@ status_led: number: GPIO13 inverted: true - #:########################################################################################:# # SWITCH COMPONENT: # https://esphome.io/components/switch/ @@ -186,7 +179,6 @@ switch: restore_mode: RESTORE_DEFAULT_ON icon: "${relay_icon}" - #:########################################################################################:# # BINARY SENSORS: # https://esphome.io/components/binary_sensor/ @@ -222,12 +214,11 @@ binary_sensor: on_press: - mqtt.publish: topic: "${mqtt_main_topic}/relay1/state" - payload: "ON" + payload: "On" on_release: - mqtt.publish: topic: "${mqtt_main_topic}/relay1/state" - payload: "OFF" - + payload: "Off" #:########################################################################################:# # MQTT: @@ -244,4 +235,4 @@ mqtt: - topic: "${mqtt_main_topic}/relay1/set" payload: "OFF" then: - - switch.turn_off: relay1 \ No newline at end of file + - switch.turn_off: relay1