esphome device updates
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
##############################################
|
||||
############################################################################################
|
||||
# SPECIFIC DEVICE VARIABLE SUBSTITUTIONS
|
||||
# If NOT using a secrets file, just replace
|
||||
# these with the values (in quotes)
|
||||
#############################################
|
||||
###########################################################################################
|
||||
substitutions:
|
||||
timezone: "Pacific/Auckland"
|
||||
sntp_update_interval: 6h # Set the duration between the sntp service polling
|
||||
@@ -11,12 +11,12 @@ substitutions:
|
||||
sntp_server_2: !secret ntp_server_2
|
||||
sntp_server_3: !secret ntp_server_3
|
||||
|
||||
#############################################
|
||||
###########################################################################################
|
||||
# Real time clock time source for ESPHome
|
||||
# If it's invalid, we fall back to an internal clock
|
||||
# https://esphome.io/components/time/index.html
|
||||
# https://esphome.io/components/time/sntp
|
||||
#############################################
|
||||
###########################################################################################
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
@@ -53,14 +53,14 @@ time:
|
||||
text_sensor:
|
||||
# Creates a sensor showing when the device was last restarted
|
||||
- platform: template
|
||||
name: "Last Restart"
|
||||
name: "Time: Last Restart"
|
||||
id: device_last_restart
|
||||
icon: mdi:clock
|
||||
entity_category: diagnostic
|
||||
#device_class: timestamp
|
||||
|
||||
- platform: template
|
||||
name: "Internal Time"
|
||||
name: "Time: Internal Time"
|
||||
id: time_text
|
||||
update_interval: "1min"
|
||||
entity_category: diagnostic
|
||||
@@ -69,7 +69,7 @@ text_sensor:
|
||||
return { time_text };
|
||||
|
||||
- platform: template
|
||||
name: "Time Sync Status"
|
||||
name: "Time: Sync Status"
|
||||
id: time_sync
|
||||
update_interval: "1min"
|
||||
entity_category: diagnostic
|
||||
Reference in New Issue
Block a user