yaml layout updates to v1.1 and minor fixes
This commit is contained in:
@@ -1,15 +1,19 @@
|
||||
#:########################################################################################:#
|
||||
# TITLE: 6 CHANNEL LOUNGE DMX MAINS DIMMER
|
||||
# zorruno.com layout v1.0 2026
|
||||
# zorruno.com layout v1.1 2026
|
||||
#:########################################################################################:#
|
||||
# REPO:
|
||||
# https://home.fox.co.nz/gitea/zorruno/zorruno-homeassistant/src/branch/master/esphome/esp-lounge6chdimmer.yaml
|
||||
#:########################################################################################:#
|
||||
# VERSIONS:
|
||||
# V1.2 2026-03-04 Updated yaml to zorruno layout V1.1
|
||||
# V1.1 2025-09-13 Extended to 3 modules and installed
|
||||
# V1.0 2025-09-06 First Rev (only tested one module, 2 channels at this stage, and incandescent)
|
||||
#:########################################################################################:#
|
||||
# HARDWARE:
|
||||
# - ESP8266 D1 Mini Pro
|
||||
# - 3 x 2-channel DMX mains dimmer modules (1.2 A per channel)
|
||||
# Contoller: https://www.aliexpress.com/item/32838426377.html
|
||||
# Controller: https://www.aliexpress.com/item/32838426377.html
|
||||
# - RS-485 TTL converter (MAX485 style)
|
||||
# RS-485 TTL converter: https://www.aliexpress.com/item/1005005737922222.html
|
||||
#
|
||||
@@ -49,14 +53,20 @@
|
||||
# https://github.com/andyboeh/esphome-dmx512
|
||||
#:########################################################################################:#
|
||||
# MQTT COMMANDS:
|
||||
#
|
||||
# - None (DMX is driven by HA light entities).
|
||||
#:########################################################################################:#
|
||||
# OFFLINE NOTES:
|
||||
# - If Home Assistant is offline, lights can still be controlled locally (device continues DMX output)
|
||||
# - If Wi-Fi is offline, wall switch power-cycling restores dimmer module output state (modules remember)
|
||||
# a) Home Assistant OFFLINE (WiFi + network still online):
|
||||
# - Device continues DMX output at last set levels (dimmers remember output).
|
||||
#
|
||||
# b) MQTT OFFLINE (or HA/MQTT offline):
|
||||
# - No MQTT dependency for operation; last levels remain active.
|
||||
#
|
||||
# c) Entire WiFi/Network OFFLINE:
|
||||
# - Accurate time is not needed (SNTP not needed; no schedules/timeclocks).
|
||||
# - Wall switch power-cycling restores dimmer module output state (modules remember).
|
||||
#:########################################################################################:#
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# SUBSTITUTIONS: Specific device variable substitutions
|
||||
# If NOT using a secrets file, just replace these with the passwords etc (in quotes)
|
||||
@@ -65,20 +75,19 @@ substitutions:
|
||||
# Device Naming
|
||||
device_name: "esp-lounge6chdimmer"
|
||||
friendly_name: "6 Channel Lounge Dimmer"
|
||||
description_comment: "Lounge 6 Channel Mains Lighting Dimmer (3 x 2 channel modules) controlled using DMX512 protocol with a D1 Mini Pro (Layout V1.0)"
|
||||
description_comment: "Lounge 6 Channel Mains Lighting Dimmer (3 x 2 channel modules) controlled using DMX512 protocol with a D1 Mini Pro (Layout V1.1)"
|
||||
device_area: "Lounge" # Allows ESP device to be automatically linked to an 'Area' in Home Assistant.
|
||||
|
||||
# Project Naming
|
||||
project_name: "Generic ESP8266.D1 Mini" # Project Details
|
||||
project_version: "v1.1" # Project V denotes release of yaml file, allowing checking of deployed vs latest version
|
||||
project_version: "v1.2" # Project V denotes release of yaml file, allowing checking of deployed vs latest version
|
||||
|
||||
# Passwords & Secrets
|
||||
# Passwords and Secrets
|
||||
api_key: !secret esp-api_key # unfortunately you can't use substitutions inside secrets names
|
||||
ota_pass: !secret esp-ota_pass # unfortunately you can't use substitutions inside secrets names
|
||||
static_ip_address: !secret esp-lounge6chdimmer_ip
|
||||
|
||||
# If we are changing IP addresses, you must update the current IP address here, otherwise it remains
|
||||
# Don't forget to switch it back when changed.
|
||||
# Layout v1.1 requirement
|
||||
current_ip_address: ${static_ip_address}
|
||||
|
||||
# Device Settings
|
||||
@@ -110,7 +119,6 @@ substitutions:
|
||||
gamma_output_5: "2.2"
|
||||
gamma_output_6: "2.2"
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# PACKAGES: Included Common Packages
|
||||
# https://esphome.io/components/packages.html
|
||||
@@ -151,7 +159,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
|
||||
@@ -175,7 +182,6 @@ esphome:
|
||||
id(dmx_ch5_sensor).publish_state(0);
|
||||
id(dmx_ch6_sensor).publish_state(0);
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# ESP PLATFORM AND FRAMEWORK:
|
||||
# https://esphome.io/components/esp8266/
|
||||
@@ -186,7 +192,6 @@ esp8266:
|
||||
board_flash_mode: dout # Default is dout
|
||||
restore_from_flash: true # restore some values on reboot
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# MDNS:
|
||||
# https://esphome.io/components/mdns.html
|
||||
@@ -194,7 +199,6 @@ esp8266:
|
||||
mdns:
|
||||
disabled: false # Disabling will make the build file smaller (and it is still available via static IP)
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# LOGGING: ESPHome Logging Enable
|
||||
# https://esphome.io/components/logger.html
|
||||
@@ -205,7 +209,6 @@ logger:
|
||||
#esp8266_store_log_strings_in_flash: false
|
||||
#tx_buffer_size: 64
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# STATUS LED:
|
||||
# https://esphome.io/components/status_led.html
|
||||
@@ -215,7 +218,6 @@ logger:
|
||||
# number: GPIO2
|
||||
# inverted: true
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# UART COMPONENT:
|
||||
# https://esphome.io/components/uart/
|
||||
@@ -231,7 +233,6 @@ uart:
|
||||
allow_other_uses: true # For ESPHome >= 2023.12.0
|
||||
stop_bits: 2
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# LIGHT COMPONENT:
|
||||
# https://esphome.io/components/light/
|
||||
@@ -285,7 +286,6 @@ light:
|
||||
gamma_correct: "${gamma_output_6}"
|
||||
restore_mode: RESTORE_DEFAULT_OFF
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# SENSOR COMPONENT:
|
||||
# https://esphome.io/components/sensor/
|
||||
@@ -382,7 +382,6 @@ sensor:
|
||||
min_value: 0
|
||||
max_value: 255
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# EXTERNAL COMPONENTS:
|
||||
# https://github.com/andyboeh/esphome-dmx512
|
||||
@@ -390,7 +389,6 @@ sensor:
|
||||
external_components:
|
||||
- source: github://andyboeh/esphome-dmx512
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# DMX512 COMPONENT:
|
||||
# https://github.com/andyboeh/esphome-dmx512
|
||||
@@ -409,7 +407,6 @@ dmx512:
|
||||
#custom_mab_len: 12 # optional. Mark after Break Length. Default is 12mS
|
||||
#update_interval: 500 # optional. Custom update interval. Default is 500mS
|
||||
|
||||
|
||||
#:########################################################################################:#
|
||||
# OUTPUT COMPONENT:
|
||||
# https://esphome.io/components/output/
|
||||
|
||||
Reference in New Issue
Block a user