Edit esp-bedrm3lights.yaml
This commit is contained in:
@@ -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)
|
||||||
@@ -83,18 +82,17 @@ substitutions:
|
|||||||
# Remote Light
|
# Remote Light
|
||||||
mqtt_remote_device_command_topic1: "${mqtt_local_command_main_topic}/${mqtt_remote_device_name}/light/set"
|
mqtt_remote_device_command_topic1: "${mqtt_local_command_main_topic}/${mqtt_remote_device_name}/light/set"
|
||||||
mqtt_remote_status_topic1: "${mqtt_local_status_main_topic}/${mqtt_remote_device_name}/light/state"
|
mqtt_remote_status_topic1: "${mqtt_local_status_main_topic}/${mqtt_remote_device_name}/light/state"
|
||||||
mqtt_remote_device_command_ON: "ON"
|
mqtt_remote_device_command_ON: "On"
|
||||||
mqtt_remote_device_command_OFF: "OFF"
|
mqtt_remote_device_command_OFF: "Off"
|
||||||
|
|
||||||
# Remote Fan Speed (used for All Off)
|
# Remote Fan Speed (used for All Off)
|
||||||
mqtt_remote_device_command_topic2: "${mqtt_local_command_main_topic}/${mqtt_remote_device_name}/speed/set"
|
mqtt_remote_device_command_topic2: "${mqtt_local_command_main_topic}/${mqtt_remote_device_name}/speed/set"
|
||||||
mqtt_remote_device_command_0: "0"
|
mqtt_remote_device_command_0: "0"
|
||||||
|
|
||||||
# Switch Naming
|
# Switch Naming
|
||||||
switch_1_name: "Main Lights" # Nothing physically connected to this output (ifan02 light is the real load)
|
switch_1_name: "Main Lights" # Nothing physically connected to this output (ifan02 light is the real load)
|
||||||
switch_2_name: "All Lights Off" # Nothing physically connected to this output
|
switch_2_name: "All Lights Off" # Nothing physically connected to this output
|
||||||
|
|
||||||
|
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# PACKAGES: Included Common Packages
|
# PACKAGES: Included Common Packages
|
||||||
# https://esphome.io/components/packages.html
|
# https://esphome.io/components/packages.html
|
||||||
@@ -134,7 +132,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
|
||||||
@@ -148,7 +145,6 @@ esphome:
|
|||||||
name: "${project_name}"
|
name: "${project_name}"
|
||||||
version: "${project_version}"
|
version: "${project_version}"
|
||||||
|
|
||||||
|
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# ESP PLATFORM AND FRAMEWORK:
|
# ESP PLATFORM AND FRAMEWORK:
|
||||||
# https://esphome.io/components/esp8266/
|
# https://esphome.io/components/esp8266/
|
||||||
@@ -158,7 +154,6 @@ esp8266:
|
|||||||
early_pin_init: false # Recommended false where switches are involved. Defaults to true.
|
early_pin_init: false # Recommended false where switches are involved. Defaults to true.
|
||||||
board_flash_mode: dout # Default is dout
|
board_flash_mode: dout # Default is dout
|
||||||
|
|
||||||
|
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# LOGGING: ESPHome Logging Enable
|
# LOGGING: ESPHome Logging Enable
|
||||||
# https://esphome.io/components/logger.html
|
# https://esphome.io/components/logger.html
|
||||||
@@ -169,7 +164,6 @@ logger:
|
|||||||
#esp8266_store_log_strings_in_flash: false
|
#esp8266_store_log_strings_in_flash: false
|
||||||
#tx_buffer_size: 64
|
#tx_buffer_size: 64
|
||||||
|
|
||||||
|
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# GLOBAL VARIABLES:
|
# GLOBAL VARIABLES:
|
||||||
# https://esphome.io/guides/automations.html#global-variables
|
# https://esphome.io/guides/automations.html#global-variables
|
||||||
@@ -180,7 +174,6 @@ globals:
|
|||||||
restore_value: false
|
restore_value: false
|
||||||
initial_value: "0"
|
initial_value: "0"
|
||||||
|
|
||||||
|
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# STATUS LED:
|
# STATUS LED:
|
||||||
# https://esphome.io/components/status_led.html
|
# https://esphome.io/components/status_led.html
|
||||||
@@ -190,7 +183,6 @@ status_led:
|
|||||||
number: GPIO2
|
number: GPIO2
|
||||||
inverted: true
|
inverted: true
|
||||||
|
|
||||||
|
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# BINARY SENSORS:
|
# BINARY SENSORS:
|
||||||
# https://esphome.io/components/binary_sensor/
|
# https://esphome.io/components/binary_sensor/
|
||||||
@@ -255,7 +247,6 @@ binary_sensor:
|
|||||||
qos: 0
|
qos: 0
|
||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
|
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# SWITCH COMPONENT:
|
# SWITCH COMPONENT:
|
||||||
# https://esphome.io/components/switch/
|
# https://esphome.io/components/switch/
|
||||||
@@ -272,7 +263,6 @@ switch:
|
|||||||
pin: GPIO12
|
pin: GPIO12
|
||||||
id: Relay_2
|
id: Relay_2
|
||||||
|
|
||||||
|
|
||||||
#:########################################################################################:#
|
#:########################################################################################:#
|
||||||
# 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.
|
||||||
@@ -288,4 +278,4 @@ mqtt:
|
|||||||
- topic: "${mqtt_remote_status_topic1}"
|
- topic: "${mqtt_remote_status_topic1}"
|
||||||
payload: "${mqtt_remote_device_command_OFF}"
|
payload: "${mqtt_remote_device_command_OFF}"
|
||||||
then:
|
then:
|
||||||
- switch.turn_off: Relay_1
|
- switch.turn_off: Relay_1
|
||||||
|
|||||||
Reference in New Issue
Block a user