Edit esp-bedrm3ceilingfan.yaml

This commit is contained in:
ESPHome Device Builder
2026-07-25 21:55:45 +12:00
parent b27d2c87b7
commit 644bf978a9
+5 -17
View File
@@ -43,7 +43,6 @@
# - Accurate time is NOT needed (SNTP not required) for core operation # - Accurate time is NOT needed (SNTP not required) for core operation
#:########################################################################################:# #:########################################################################################:#
#:########################################################################################:# #:########################################################################################:#
# SUBSTITUTIONS: Specific device variable substitutions # SUBSTITUTIONS: Specific device variable substitutions
# If NOT using a secrets file, just replace these with the passwords etc (in quotes) # If NOT using a secrets file, just replace these with the passwords etc (in quotes)
@@ -85,7 +84,6 @@ substitutions:
switch_3_name: "Fan 3 Relay" switch_3_name: "Fan 3 Relay"
switch_4_name: "Fan 4 Relay" switch_4_name: "Fan 4 Relay"
#:########################################################################################:# #:########################################################################################:#
# PACKAGES: Included Common Packages # PACKAGES: Included Common Packages
# https://esphome.io/components/packages.html # https://esphome.io/components/packages.html
@@ -125,7 +123,6 @@ packages:
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
#:########################################################################################:# #:########################################################################################:#
# ESPHOME: # ESPHOME:
# https://esphome.io/components/esphome.html # https://esphome.io/components/esphome.html
@@ -146,7 +143,6 @@ esphome:
topic: "${mqtt_local_status_topic}/speed/state" topic: "${mqtt_local_status_topic}/speed/state"
payload: !lambda "return to_string(id(speed_value));" payload: !lambda "return to_string(id(speed_value));"
#:########################################################################################:# #:########################################################################################:#
# ESP PLATFORM AND FRAMEWORK: # ESP PLATFORM AND FRAMEWORK:
# https://esphome.io/components/esp8266/ # https://esphome.io/components/esp8266/
@@ -161,7 +157,6 @@ preferences:
mdns: mdns:
disabled: true # Disabling will make the build file smaller (and it is still available via static IP) disabled: true # Disabling will make the build file smaller (and it is still available via static IP)
#:########################################################################################:# #:########################################################################################:#
# GLOBAL VARIABLES: # GLOBAL VARIABLES:
# https://esphome.io/guides/automations.html#global-variables # https://esphome.io/guides/automations.html#global-variables
@@ -172,7 +167,6 @@ globals:
restore_value: true restore_value: true
initial_value: "0" initial_value: "0"
#:########################################################################################:# #:########################################################################################:#
# LOGGING: ESPHome Logging Enable # LOGGING: ESPHome Logging Enable
# https://esphome.io/components/logger.html # https://esphome.io/components/logger.html
@@ -181,7 +175,6 @@ logger:
level: "${log_level}" # INFO suggested, or DEBUG for testing level: "${log_level}" # INFO suggested, or DEBUG for testing
baud_rate: 0 # set to 0 for no logging via UART, needed if you are using it for other serial things baud_rate: 0 # set to 0 for no logging via UART, needed if you are using it for other serial things
#:########################################################################################:# #:########################################################################################:#
# MQTT: # MQTT:
# This adds device-specific MQTT command triggers to the common MQTT configuration. # This adds device-specific MQTT command triggers to the common MQTT configuration.
@@ -190,12 +183,12 @@ mqtt:
on_message: on_message:
# Light control # Light control
- topic: "${mqtt_local_command_topic}/light/set" - topic: "${mqtt_local_command_topic}/light/set"
payload: "ON" payload: "On"
then: then:
- light.turn_on: ifan02_light - light.turn_on: ifan02_light
- topic: "${mqtt_local_command_topic}/light/set" - topic: "${mqtt_local_command_topic}/light/set"
payload: "OFF" payload: "Off"
then: then:
- light.turn_off: ifan02_light - light.turn_off: ifan02_light
@@ -232,7 +225,6 @@ mqtt:
id: ifan02_fan id: ifan02_fan
speed: !lambda "return id(speed_value);" speed: !lambda "return id(speed_value);"
#:########################################################################################:# #:########################################################################################:#
# SWITCH COMPONENT: # SWITCH COMPONENT:
# https://esphome.io/components/switch/ # https://esphome.io/components/switch/
@@ -262,7 +254,6 @@ switch:
restore_mode: RESTORE_DEFAULT_OFF restore_mode: RESTORE_DEFAULT_OFF
internal: true internal: true
#:########################################################################################:# #:########################################################################################:#
# SELECT COMPONENT: # SELECT COMPONENT:
# https://esphome.io/components/select/index.html # https://esphome.io/components/select/index.html
@@ -327,7 +318,6 @@ select:
id: ifan02_fan id: ifan02_fan
speed: 3 speed: 3
#:########################################################################################:# #:########################################################################################:#
# OUTPUT COMPONENT: # OUTPUT COMPONENT:
# https://esphome.io/components/output/ # https://esphome.io/components/output/
@@ -365,7 +355,6 @@ output:
id(fan4sw).turn_on(); id(fan4sw).turn_on();
} }
#:########################################################################################:# #:########################################################################################:#
# LIGHT COMPONENT: # LIGHT COMPONENT:
# https://esphome.io/components/light/ # https://esphome.io/components/light/
@@ -380,12 +369,11 @@ light:
on_turn_on: on_turn_on:
- mqtt.publish: - mqtt.publish:
topic: "${mqtt_local_status_topic}/light/state" topic: "${mqtt_local_status_topic}/light/state"
payload: "ON" payload: "On"
on_turn_off: on_turn_off:
- mqtt.publish: - mqtt.publish:
topic: "${mqtt_local_status_topic}/light/state" topic: "${mqtt_local_status_topic}/light/state"
payload: "OFF" payload: "Off"
#:########################################################################################:# #:########################################################################################:#
# FAN COMPONENT: # FAN COMPONENT:
@@ -425,4 +413,4 @@ fan:
speed: !lambda "return id(speed_value);" speed: !lambda "return id(speed_value);"
- mqtt.publish: - mqtt.publish:
topic: "${mqtt_local_status_topic}/speed/state" topic: "${mqtt_local_status_topic}/speed/state"
payload: !lambda "return to_string(id(speed_value));" payload: !lambda "return to_string(id(speed_value));"