Edit esp-astroclockstepper1.yaml

This commit is contained in:
ESPHome Device Builder
2026-06-22 22:48:14 +12:00
parent 1f8fd335f6
commit 7b45088685
+52 -52
View File
@@ -91,11 +91,11 @@ substitutions:
current_ip_address: ${static_ip_address} current_ip_address: ${static_ip_address}
# MQTT Topics # MQTT Topics
mqtt_command_main_topic: !secret mqtt_command_main_topic #mqtt_command_main_topic: !secret mqtt_command_main_topic
mqtt_status_main_topic: !secret mqtt_status_main_topic #mqtt_status_main_topic: !secret mqtt_status_main_topic
mqtt_device_name: "astro-clock-stepper1" #mqtt_device_name: "astro-clock-stepper1"
mqtt_command_topic: "${mqtt_command_main_topic}/${mqtt_device_name}" #mqtt_command_topic: "${mqtt_command_main_topic}/${mqtt_device_name}"
mqtt_status_topic: "${mqtt_status_main_topic}/${mqtt_device_name}" #mqtt_status_topic: "${mqtt_status_main_topic}/${mqtt_device_name}"
# Device Settings # Device Settings
log_level: "INFO" log_level: "INFO"
@@ -171,10 +171,10 @@ packages:
local_api_key: "${api_key}" local_api_key: "${api_key}"
#### MQTT #### #### MQTT ####
common_mqtt: !include #common_mqtt: !include
file: common/mqtt_common.yaml # file: common/mqtt_common.yaml
vars: # vars:
local_device_name: "${device_name}" # local_device_name: "${device_name}"
#### WEB PORTAL #### #### WEB PORTAL ####
#common_webportal: !include common/webportal_common.yaml #common_webportal: !include common/webportal_common.yaml
@@ -185,7 +185,7 @@ packages:
#### DIAGNOSTICS Sensors #### #### DIAGNOSTICS Sensors ####
diag_basic: !include common/include_basic_diag_sensors.yaml diag_basic: !include common/include_basic_diag_sensors.yaml
diag_more: !include common/include_more_diag_sensors.yaml #diag_more: !include common/include_more_diag_sensors.yaml
#diag_debug: !include common/include_debug_diag_sensors.yaml #diag_debug: !include common/include_debug_diag_sensors.yaml
#diag_resetcount: !include common/include_resetcount_diag_sensors.yaml #diag_resetcount: !include common/include_resetcount_diag_sensors.yaml
@@ -359,7 +359,7 @@ output:
id: stepper_in4 id: stepper_in4
pin: ${stepper_in4_pin} pin: ${stepper_in4_pin}
# D1 Mini onboard LED is usually GPIO2 / D4 and active-low # D1 Mini onboard LED GPIO2 / D4 and active-low
- platform: gpio - platform: gpio
id: onboard_step_led id: onboard_step_led
pin: pin:
@@ -824,44 +824,44 @@ interval:
# Device-specific MQTT command triggers, in addition to common MQTT config # Device-specific MQTT command triggers, in addition to common MQTT config
# https://esphome.io/components/mqtt.html # https://esphome.io/components/mqtt.html
#:########################################################################################:# #:########################################################################################:#
mqtt: #mqtt:
on_message: # on_message:
- topic: "${mqtt_command_topic}/fast_forward/set" # - topic: "${mqtt_command_topic}/fast_forward/set"
payload: "ON" # payload: "ON"
then: # then:
- switch.turn_on: web_fast_forward_switch # - switch.turn_on: web_fast_forward_switch
#
- topic: "${mqtt_command_topic}/fast_forward/set" # - topic: "${mqtt_command_topic}/fast_forward/set"
payload: "OFF" # payload: "OFF"
then: # then:
- switch.turn_off: web_fast_forward_switch # - switch.turn_off: web_fast_forward_switch
#
- topic: "${mqtt_command_topic}/slow_forward/set" # - topic: "${mqtt_command_topic}/slow_forward/set"
payload: "ON" # payload: "ON"
then: # then:
- switch.turn_on: web_slow_forward_switch # - switch.turn_on: web_slow_forward_switch
#
- topic: "${mqtt_command_topic}/slow_forward/set" # - topic: "${mqtt_command_topic}/slow_forward/set"
payload: "OFF" # payload: "OFF"
then: # then:
- switch.turn_off: web_slow_forward_switch # - switch.turn_off: web_slow_forward_switch
#
- topic: "${mqtt_command_topic}/fast_reverse/set" # - topic: "${mqtt_command_topic}/fast_reverse/set"
payload: "ON" # payload: "ON"
then: # then:
- switch.turn_on: web_fast_reverse_switch # - switch.turn_on: web_fast_reverse_switch
#
- topic: "${mqtt_command_topic}/fast_reverse/set" # - topic: "${mqtt_command_topic}/fast_reverse/set"
payload: "OFF" # payload: "OFF"
then: # then:
- switch.turn_off: web_fast_reverse_switch # - switch.turn_off: web_fast_reverse_switch
#
- topic: "${mqtt_command_topic}/slow_reverse/set" # - topic: "${mqtt_command_topic}/slow_reverse/set"
payload: "ON" # payload: "ON"
then: # then:
- switch.turn_on: web_slow_reverse_switch # - switch.turn_on: web_slow_reverse_switch
#
- topic: "${mqtt_command_topic}/slow_reverse/set" # - topic: "${mqtt_command_topic}/slow_reverse/set"
payload: "OFF" # payload: "OFF"
then: # then:
- switch.turn_off: web_slow_reverse_switch # - switch.turn_off: web_slow_reverse_switch