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}
# MQTT Topics
mqtt_command_main_topic: !secret mqtt_command_main_topic
mqtt_status_main_topic: !secret mqtt_status_main_topic
mqtt_device_name: "astro-clock-stepper1"
mqtt_command_topic: "${mqtt_command_main_topic}/${mqtt_device_name}"
mqtt_status_topic: "${mqtt_status_main_topic}/${mqtt_device_name}"
#mqtt_command_main_topic: !secret mqtt_command_main_topic
#mqtt_status_main_topic: !secret mqtt_status_main_topic
#mqtt_device_name: "astro-clock-stepper1"
#mqtt_command_topic: "${mqtt_command_main_topic}/${mqtt_device_name}"
#mqtt_status_topic: "${mqtt_status_main_topic}/${mqtt_device_name}"
# Device Settings
log_level: "INFO"
@@ -171,10 +171,10 @@ packages:
local_api_key: "${api_key}"
#### MQTT ####
common_mqtt: !include
file: common/mqtt_common.yaml
vars:
local_device_name: "${device_name}"
#common_mqtt: !include
# file: common/mqtt_common.yaml
# vars:
# local_device_name: "${device_name}"
#### WEB PORTAL ####
#common_webportal: !include common/webportal_common.yaml
@@ -185,7 +185,7 @@ packages:
#### DIAGNOSTICS Sensors ####
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_resetcount: !include common/include_resetcount_diag_sensors.yaml
@@ -359,7 +359,7 @@ output:
id: stepper_in4
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
id: onboard_step_led
pin:
@@ -824,44 +824,44 @@ interval:
# Device-specific MQTT command triggers, in addition to common MQTT config
# https://esphome.io/components/mqtt.html
#:########################################################################################:#
mqtt:
on_message:
- topic: "${mqtt_command_topic}/fast_forward/set"
payload: "ON"
then:
- switch.turn_on: web_fast_forward_switch
- topic: "${mqtt_command_topic}/fast_forward/set"
payload: "OFF"
then:
- switch.turn_off: web_fast_forward_switch
- topic: "${mqtt_command_topic}/slow_forward/set"
payload: "ON"
then:
- switch.turn_on: web_slow_forward_switch
- topic: "${mqtt_command_topic}/slow_forward/set"
payload: "OFF"
then:
- switch.turn_off: web_slow_forward_switch
- topic: "${mqtt_command_topic}/fast_reverse/set"
payload: "ON"
then:
- switch.turn_on: web_fast_reverse_switch
- topic: "${mqtt_command_topic}/fast_reverse/set"
payload: "OFF"
then:
- switch.turn_off: web_fast_reverse_switch
- topic: "${mqtt_command_topic}/slow_reverse/set"
payload: "ON"
then:
- switch.turn_on: web_slow_reverse_switch
- topic: "${mqtt_command_topic}/slow_reverse/set"
payload: "OFF"
then:
- switch.turn_off: web_slow_reverse_switch
#mqtt:
# on_message:
# - topic: "${mqtt_command_topic}/fast_forward/set"
# payload: "ON"
# then:
# - switch.turn_on: web_fast_forward_switch
#
# - topic: "${mqtt_command_topic}/fast_forward/set"
# payload: "OFF"
# then:
# - switch.turn_off: web_fast_forward_switch
#
# - topic: "${mqtt_command_topic}/slow_forward/set"
# payload: "ON"
# then:
# - switch.turn_on: web_slow_forward_switch
#
# - topic: "${mqtt_command_topic}/slow_forward/set"
# payload: "OFF"
# then:
# - switch.turn_off: web_slow_forward_switch
#
# - topic: "${mqtt_command_topic}/fast_reverse/set"
# payload: "ON"
# then:
# - switch.turn_on: web_fast_reverse_switch
#
# - topic: "${mqtt_command_topic}/fast_reverse/set"
# payload: "OFF"
# then:
# - switch.turn_off: web_fast_reverse_switch
#
# - topic: "${mqtt_command_topic}/slow_reverse/set"
# payload: "ON"
# then:
# - switch.turn_on: web_slow_reverse_switch
#
# - topic: "${mqtt_command_topic}/slow_reverse/set"
# payload: "OFF"
# then:
# - switch.turn_off: web_slow_reverse_switch