Edit esp-bedrm2ceilingfan.yaml

This commit is contained in:
ESPHome Device Builder
2026-07-25 21:55:45 +12:00
parent 644bf978a9
commit c780a59cd2
+4 -19
View File
@@ -43,7 +43,6 @@
# - Accurate time is NOT needed (SNTP not required) for core operation (no schedules/timeclocks used) # - Accurate time is NOT needed (SNTP not required) for core operation (no schedules/timeclocks used)
#:########################################################################################:# #:########################################################################################:#
#:########################################################################################:# #:########################################################################################:#
# 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
@@ -149,7 +146,6 @@ esphome:
# - "-fno-exceptions" # strip C++ exceptions # - "-fno-exceptions" # strip C++ exceptions
# - "-fno-rtti" # strip C++ RTTI # - "-fno-rtti" # strip C++ RTTI
#:########################################################################################:# #:########################################################################################:#
# ESP PLATFORM AND FRAMEWORK: # ESP PLATFORM AND FRAMEWORK:
# https://esphome.io/components/esp8266/ # https://esphome.io/components/esp8266/
@@ -165,7 +161,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
@@ -176,7 +171,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
@@ -185,7 +179,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 (UART0 used for fan MCU sniffing) baud_rate: 0 # set to 0 for no logging via UART (UART0 used for fan MCU sniffing)
#:########################################################################################:# #:########################################################################################:#
# UART: # UART:
# Fan MCU / RF Remote Sniff (iFan02 -> ESP over UART0) # Fan MCU / RF Remote Sniff (iFan02 -> ESP over UART0)
@@ -203,7 +196,6 @@ uart:
# NOTE: If no frames appear at either 9600 or 19200, try moving rx_pin to GPIO13 and reflash: # NOTE: If no frames appear at either 9600 or 19200, try moving rx_pin to GPIO13 and reflash:
# rx_pin: GPIO13 # rx_pin: GPIO13
#:########################################################################################:# #:########################################################################################:#
# INTERVAL COMPONENT: # INTERVAL COMPONENT:
# https://esphome.io/components/interval.html # https://esphome.io/components/interval.html
@@ -235,7 +227,6 @@ interval:
frame.clear(); frame.clear();
} }
#:########################################################################################:# #:########################################################################################:#
# TEXT SENSORS COMPONENT: # TEXT SENSORS COMPONENT:
# https://esphome.io/components/text_sensor/index.html # https://esphome.io/components/text_sensor/index.html
@@ -246,7 +237,6 @@ text_sensor:
name: "iFan02 Remote Last Frame" name: "iFan02 Remote Last Frame"
update_interval: never update_interval: never
#:########################################################################################:# #:########################################################################################:#
# 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.
@@ -255,12 +245,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
@@ -297,7 +287,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/
@@ -327,7 +316,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
@@ -392,7 +380,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/
@@ -430,7 +417,6 @@ output:
id(fan4sw).turn_on(); id(fan4sw).turn_on();
} }
#:########################################################################################:# #:########################################################################################:#
# LIGHT COMPONENT: # LIGHT COMPONENT:
# https://esphome.io/components/light/ # https://esphome.io/components/light/
@@ -445,12 +431,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: