experiments in AC dimming (RobotDyn)
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
##########################################################################################
|
##########################################################################################
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
# Lounge Mains Dimmer
|
# Lounge Mains Dimmer
|
||||||
# V3.5 2025-07-24 YAML tidyups
|
# V1.0 2025-09-05 Fiest Attempt
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
# Zemismart KS-811 Double push button
|
|
||||||
# pinout/schematic https://community.home-assistant.io/t/zemismart-ks-811-working-with-esphome/
|
|
||||||
#
|
|
||||||
# NOTES
|
# NOTES
|
||||||
# -
|
# -
|
||||||
|
# D5 = GPIO14 ZC
|
||||||
|
# D6 = GPIO12 PWM
|
||||||
#
|
#
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
@@ -39,18 +38,7 @@ substitutions:
|
|||||||
log_level: "INFO" # Define logging level: NONE, ERROR, WARN, INFO, DEBUG (Default), VERBOSE, VERY_VERBOSE
|
log_level: "INFO" # Define logging level: NONE, ERROR, WARN, INFO, DEBUG (Default), VERBOSE, VERY_VERBOSE
|
||||||
update_interval: "60s" # update time for for general sensors etc
|
update_interval: "60s" # update time for for general sensors etc
|
||||||
|
|
||||||
# MQTT LOCAL Controls
|
|
||||||
#mqtt_device_name: "bedroom2-lights"
|
|
||||||
#mqtt_local_command_topic: "${mqtt_local_command_main_topic}/${mqtt_device_name}" # Topic we will use to command this locally without HA
|
|
||||||
#mqtt_local_status_topic: "${mqtt_local_status_main_topic}/${mqtt_device_name}" # Topic we will use to view status locally without HA
|
|
||||||
|
|
||||||
# Switch Naming
|
|
||||||
#switch_1_name: "Main Lights"
|
|
||||||
#switch_2_name: "Desk Lights"
|
|
||||||
#switch_3_name: "Nil"
|
|
||||||
|
|
||||||
# D5 = GPIO14 ZC
|
|
||||||
# D6 = GPIO12 PWM
|
|
||||||
#########################################################################################
|
#########################################################################################
|
||||||
# PACKAGES: Included Common Packages
|
# PACKAGES: Included Common Packages
|
||||||
# https://esphome.io/components/packages.html
|
# https://esphome.io/components/packages.html
|
||||||
@@ -125,61 +113,6 @@ status_led:
|
|||||||
number: GPIO2
|
number: GPIO2
|
||||||
inverted: yes
|
inverted: yes
|
||||||
|
|
||||||
#########################################################################################
|
|
||||||
# BINARY SENSORS
|
|
||||||
# https://esphome.io/components/binary_sensor/
|
|
||||||
#########################################################################################
|
|
||||||
#binary_sensor:
|
|
||||||
# - platform: gpio
|
|
||||||
# pin:
|
|
||||||
# number: GPIO16
|
|
||||||
# mode: INPUT
|
|
||||||
# inverted: True
|
|
||||||
# name: "Button 1: ${switch_1_name}"
|
|
||||||
# on_press:
|
|
||||||
# - switch.toggle: Relay_1
|
|
||||||
|
|
||||||
# - platform: gpio
|
|
||||||
# pin:
|
|
||||||
# number: GPIO05
|
|
||||||
# mode: INPUT
|
|
||||||
# inverted: True
|
|
||||||
# name: "Button 2: ${switch_2_name}"
|
|
||||||
# on_press:
|
|
||||||
# - switch.toggle: Relay_2
|
|
||||||
|
|
||||||
# KS-811-2 is a double only
|
|
||||||
# - platform: gpio
|
|
||||||
# pin:
|
|
||||||
# number: GPIO4
|
|
||||||
# mode: INPUT
|
|
||||||
# inverted: True
|
|
||||||
# name: "Button 3: ${switch_3_name}"
|
|
||||||
# on_press:
|
|
||||||
# - switch.toggle: Relay_3
|
|
||||||
|
|
||||||
#########################################################################################
|
|
||||||
# SWITCH COMPONENT
|
|
||||||
# https://esphome.io/components/switch/
|
|
||||||
#########################################################################################
|
|
||||||
#switch:
|
|
||||||
# - platform: gpio
|
|
||||||
# name: "Relay 1: ${switch_1_name}"
|
|
||||||
# pin: GPIO13
|
|
||||||
# id: Relay_1
|
|
||||||
|
|
||||||
# - platform: gpio
|
|
||||||
# name: "Relay 2: ${switch_2_name}"
|
|
||||||
# pin: GPIO12
|
|
||||||
# id: Relay_2
|
|
||||||
|
|
||||||
# KS-811-2 is a double only
|
|
||||||
# - platform: gpio
|
|
||||||
# name: "Relay 3: ${switch_3_name}"
|
|
||||||
# pin: GPIO14
|
|
||||||
# id: Relay_3
|
|
||||||
|
|
||||||
|
|
||||||
output:
|
output:
|
||||||
- platform: ac_dimmer
|
- platform: ac_dimmer
|
||||||
id: dimmer1
|
id: dimmer1
|
||||||
@@ -190,7 +123,7 @@ output:
|
|||||||
input: true
|
input: true
|
||||||
inverted: yes
|
inverted: yes
|
||||||
method: LEADING
|
method: LEADING
|
||||||
init_with_half_cycle: true
|
#init_with_half_cycle: true
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: monochromatic
|
- platform: monochromatic
|
||||||
|
|||||||
Reference in New Issue
Block a user