From 04b7d53b6f02a04dca2e6cb5c53868159e55d9f7 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 6 Sep 2025 21:30:40 +1200 Subject: [PATCH] experiments in AC dimming (RobotDyn) --- esphome/esp-loungemainsdimmer1.yaml | 75 ++--------------------------- 1 file changed, 4 insertions(+), 71 deletions(-) diff --git a/esphome/esp-loungemainsdimmer1.yaml b/esphome/esp-loungemainsdimmer1.yaml index 22d5b45..ae92186 100644 --- a/esphome/esp-loungemainsdimmer1.yaml +++ b/esphome/esp-loungemainsdimmer1.yaml @@ -1,13 +1,12 @@ ########################################################################################## ########################################################################################## # 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 # - +# 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 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 # https://esphome.io/components/packages.html @@ -125,61 +113,6 @@ status_led: number: GPIO2 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: - platform: ac_dimmer id: dimmer1 @@ -190,7 +123,7 @@ output: input: true inverted: yes method: LEADING - init_with_half_cycle: true + #init_with_half_cycle: true light: - platform: monochromatic