minor additions in V1.2

This commit is contained in:
root
2025-08-22 00:08:51 +12:00
parent c73e41496d
commit a0588bf6c2
5 changed files with 159 additions and 26 deletions

View File

@@ -0,0 +1,9 @@
#############################################
# Enable the Home Assistant API
# https://esphome.io/components/api.html
#############################################
api:
#encryption:
#key: ${local_api_key}
reboot_timeout: 0s # disables watchdog reboot on API failure

View File

@@ -21,3 +21,4 @@ mqtt:
discover_ip: False # enable device discovery (true is default)
id: mqtt_client
reboot_timeout: 0s # same for MQTT
log_topic: null # <— stops MQTT log streaming (big JSON payloads)

View File

@@ -0,0 +1,41 @@
##########################################################################################
# GENERAL COMMON SENSORS
# https://esphome.io/components/sensor/
# LITE (1MB-friendly)
##########################################################################################
sensor:
- platform: uptime
name: "Uptime (s):"
update_interval: ${local_update_interval}
id: uptime_sensor
entity_category: diagnostic
- platform: wifi_signal
name: "Wifi (dB):"
id: wifi_signal_db
update_interval: ${local_update_interval}
entity_category: diagnostic
binary_sensor:
- platform: status
name: "Network Status"
icon: mdi:check-network-outline
entity_category: diagnostic
##########################################################################################
# BUTTONS
# Diagnostic buttons, activated if needed in HA
##########################################################################################
button:
- platform: safe_mode
name: "Safe Mode Restart:"
entity_category: "diagnostic"
disabled_by_default: true
- platform: restart
name: "Restart:"
entity_category: "diagnostic"
disabled_by_default: true
- platform: factory_reset
name: "FACTORY RESET:"
entity_category: "diagnostic"
disabled_by_default: true