esphome minor additions and HA pool controls

This commit is contained in:
root
2025-06-14 23:17:56 +12:00
parent 5ef9d0df7d
commit 4e0986a73f
7 changed files with 215 additions and 11 deletions

View File

@@ -5,4 +5,5 @@
api:
encryption:
key: ${local_api_key}
reboot_timeout: 0s # disables watchdog reboot on API failure

View File

@@ -20,3 +20,4 @@ mqtt:
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

View File

@@ -497,8 +497,18 @@ binary_sensor:
# https://esphome.io/components/text_sensor/index.html
##########################################################################################
sensor:
- platform: template
name: "Boost Duration"
id: boost_duration_time
unit_of_measurement: "mins"
accuracy_decimals: "0"
update_interval: "${update_interval}"
lambda: |-
return id(boost_duration);
- platform: template
name: "Mins from Midnight"
id: mins_from_midnight
unit_of_measurement: "mins"
accuracy_decimals: "0"
update_interval: "${update_interval}"

View File

@@ -506,11 +506,21 @@ binary_sensor:
##########################################################################################
sensor:
- platform: template
name: "Mins from Midnight"
name: "Boost Duration"
id: boost_duration_time
unit_of_measurement: "mins"
accuracy_decimals: 0
accuracy_decimals: "0"
update_interval: "${update_interval}"
internal: True # No need to show this in Home Assistanti
lambda: |-
return id(boost_duration);
- platform: template
name: "Mins from Midnight"
id: mins_from_midnight
unit_of_measurement: "mins"
accuracy_decimals: "0"
update_interval: "${update_interval}"
internal: True # No need to show this in Home Assistant
lambda: |-
return id(current_mins);