pmb 6 button switch now V1.1

This commit is contained in:
root
2025-08-06 16:36:08 +12:00
parent a6ddc60ec9
commit b5375b2219

View File

@@ -33,13 +33,13 @@
# 6. Power Loss: LEDs and v_relays are restored on power loss (restore settings saved
# every 10s). If v_relay4 was turned on with a timer (double press or hold), the
# state isn't restored on power loss.
# 7. There is an overall brigntness slider/variable. This allows the LEDs (except when
# 7. There is an overall brightness slider/variable. This allows the LEDs (except when
# flashing) to have a maximum brightness (eg for night mode)
#
# NOTES
# 1. To Flash via ESPHome, you likely have to connect to the computer, start the flash
# then hold down I00 button. I think GPIO12 connection is preventing the flash process.
# 2. OTA flash to an Existing Tasmota device is likely a bit hard with and ESP32 as they
# 2. OTA flash to an existing Tasmota device is likely a bit hard with and ESP32 as they
# expect a signed Tasmota binary... and partition layout needs to be fixed anyway
# 3. ESPHome warns on compiling: "legacy adc driver is deprecated, please migrate to use
# esp_adc/adc_oneshot.h and esp_adc/adc_continuous.h for oneshot mode and continuous mode
@@ -105,7 +105,6 @@ 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
pwm_freq: "1000Hz" # ESPHome default is 1000Hz, but will go much higher... (not much point for a switch LED)
ledc_bits: "12" # ESPHome default resolution is 12 bits
# Network reconnect every x hours to ensure best access point
# This is my own script. No need to use if only one AP or it is always fixed.
@@ -185,9 +184,9 @@ wifi:
password: ${fallback_ap_password}
ap_timeout: 10min # Time until it brings up fallback AP. default is 1min
# Allow rapid re-connection to previously connect WiFi SSID, skipping scan of all SSID
fast_connect: "${wifi_fast_connect}"
fast_connect: ${wifi_fast_connect}
# Define dns domain / suffix to add to hostname
domain: "${dns_domain}"
domain: ${dns_domain}
#captive_portal: # extra fallback mechanism for when connecting if the configured WiFi fails
@@ -225,8 +224,8 @@ mqtt:
topic_prefix: ${mqtt_topic}/${device_name}
username: ${mqtt_username}
password: ${mqtt_password}
discovery: False # enable entity discovery (true is default)
discover_ip: False # enable device discovery (true is default)
discovery: false # enable entity discovery (true is default)
discover_ip: false # enable device discovery (true is default)
id: mqtt_client
reboot_timeout: 0s # same for MQTT
@@ -369,7 +368,7 @@ status_led:
##########################################################################################
script:
# Restart Networking every x hours + rand mins. Starts on reboot and always runs
# This ensure that the device is connected to the best AP, but no need for it
# This ensures that the device is connected to the best AP, but no need for it
# if one AP and it is always reliable.
- id: random_reconnect
mode: restart
@@ -921,9 +920,8 @@ sensor:
name: "WiFi (%):"
filters:
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
unit_of_measurement: "% Max"
unit_of_measurement: "%"
entity_category: "diagnostic"
device_class: ""
##########################################################################################
# TEXT SENSOR COMPONENT