Improve error handling (#195)

* added optional expiry time

* optionally use availability messages

* exclude git_update from expiry/availability

it's running at a different update rate
This commit is contained in:
Hagen Graf
2025-03-23 17:09:54 +01:00
committed by GitHub
parent e5ef4dffbd
commit 3e46ef5d89
2 changed files with 37 additions and 10 deletions

View File

@@ -28,6 +28,9 @@ language = "en"
# Interval in seconds between probes when running the script as a service (--service option)
service_sleep_time = 120
# Let homeassistant mark sensors as unavailable after a given time without updates
expire_after_time = 3*service_sleep_time
# Interval for checking git_update and apt_updates
update_check_interval = 3600 # 1 hour
@@ -103,6 +106,9 @@ cpu_thermal_zone = 'cpu'
ext_sensors = False
#ext_sensors = [["Housing", "ds18b20", "0014531448ff", -300], ["ext2", "sht21", 0, [-300, 0]]]
# use availability, i.e. switch sensors to "unavailable" if there are issues reading them
use_availability = True
# output file
output_filename = False
#output_filename = "/dev/shm/mjpeg/user_annotate.txt"