Edit esp-bedrm2ceilingfan.yaml
This commit is contained in:
@@ -43,7 +43,6 @@
|
||||
# - Accurate time is NOT needed (SNTP not required) for core operation (no schedules/timeclocks used)
|
||||
#:########################################################################################:#
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# SUBSTITUTIONS: Specific device variable substitutions
|
||||
# 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_4_name: "Fan 4 Relay"
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# PACKAGES: Included Common Packages
|
||||
# https://esphome.io/components/packages.html
|
||||
@@ -125,7 +123,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
|
||||
@@ -149,7 +146,6 @@ esphome:
|
||||
# - "-fno-exceptions" # strip C++ exceptions
|
||||
# - "-fno-rtti" # strip C++ RTTI
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# ESP PLATFORM AND FRAMEWORK:
|
||||
# https://esphome.io/components/esp8266/
|
||||
@@ -165,7 +161,6 @@ preferences:
|
||||
mdns:
|
||||
disabled: true # Disabling will make the build file smaller (and it is still available via static IP)
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# GLOBAL VARIABLES:
|
||||
# https://esphome.io/guides/automations.html#global-variables
|
||||
@@ -176,7 +171,6 @@ globals:
|
||||
restore_value: true
|
||||
initial_value: "0"
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# LOGGING: ESPHome Logging Enable
|
||||
# https://esphome.io/components/logger.html
|
||||
@@ -185,7 +179,6 @@ logger:
|
||||
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)
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# UART:
|
||||
# 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:
|
||||
# rx_pin: GPIO13
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# INTERVAL COMPONENT:
|
||||
# https://esphome.io/components/interval.html
|
||||
@@ -235,7 +227,6 @@ interval:
|
||||
frame.clear();
|
||||
}
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# TEXT SENSORS COMPONENT:
|
||||
# https://esphome.io/components/text_sensor/index.html
|
||||
@@ -246,7 +237,6 @@ text_sensor:
|
||||
name: "iFan02 Remote Last Frame"
|
||||
update_interval: never
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# MQTT:
|
||||
# This adds device-specific MQTT command triggers to the common MQTT configuration.
|
||||
@@ -255,12 +245,12 @@ mqtt:
|
||||
on_message:
|
||||
# Light control
|
||||
- topic: "${mqtt_local_command_topic}/light/set"
|
||||
payload: "ON"
|
||||
payload: "On"
|
||||
then:
|
||||
- light.turn_on: ifan02_light
|
||||
|
||||
- topic: "${mqtt_local_command_topic}/light/set"
|
||||
payload: "OFF"
|
||||
payload: "Off"
|
||||
then:
|
||||
- light.turn_off: ifan02_light
|
||||
|
||||
@@ -297,7 +287,6 @@ mqtt:
|
||||
id: ifan02_fan
|
||||
speed: !lambda "return id(speed_value);"
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# SWITCH COMPONENT:
|
||||
# https://esphome.io/components/switch/
|
||||
@@ -327,7 +316,6 @@ switch:
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
internal: true
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# SELECT COMPONENT:
|
||||
# https://esphome.io/components/select/index.html
|
||||
@@ -392,7 +380,6 @@ select:
|
||||
id: ifan02_fan
|
||||
speed: 3
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# OUTPUT COMPONENT:
|
||||
# https://esphome.io/components/output/
|
||||
@@ -430,7 +417,6 @@ output:
|
||||
id(fan4sw).turn_on();
|
||||
}
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# LIGHT COMPONENT:
|
||||
# https://esphome.io/components/light/
|
||||
@@ -445,12 +431,11 @@ light:
|
||||
on_turn_on:
|
||||
- mqtt.publish:
|
||||
topic: "${mqtt_local_status_topic}/light/state"
|
||||
payload: "ON"
|
||||
payload: "On"
|
||||
on_turn_off:
|
||||
- mqtt.publish:
|
||||
topic: "${mqtt_local_status_topic}/light/state"
|
||||
payload: "OFF"
|
||||
|
||||
payload: "Off"
|
||||
|
||||
#:########################################################################################:#
|
||||
# FAN COMPONENT:
|
||||
|
||||
Reference in New Issue
Block a user