various tidyups

This commit is contained in:
zorruno
2026-08-30 15:35:24 +12:00
parent bce8abe48c
commit d81deae3be
5 changed files with 214 additions and 33 deletions
+5 -4
View File
@@ -1,8 +1,8 @@
#:########################################################################################:#
# Package: Refrigerator Temperature MQTT Publishing
# File: fridge_temperatures.yaml
# Version: v1.1.0
# Date: 2026-08-17
# Version: v1.2.0
# Date: 2026-08-30
#
# Purpose:
# Publishes refrigerator and freezer temperature changes to household MQTT
@@ -19,6 +19,7 @@
# - Home Assistant MQTT integration and broker connectivity.
#
# Version History:
# - v1.2.0 (2026-08-30): Moved the calibrated main fridge source to X65TS.
# - v1.1.0 (2026-08-17): Added the -0.84 C main fridge sensor calibration.
# - v1.0.0 (2024-09-04): Initial refrigerator temperature publishing package.
#:########################################################################################:#
@@ -30,9 +31,9 @@ template:
device_class: temperature
state_class: measurement
unit_of_measurement: "°C"
availability: "{{ has_value('sensor.main_kitchen_fridge_temp_zth08') }}"
availability: "{{ has_value('sensor.main_kitchen_fridge_temperature_x65ts_temperature') }}"
state: >-
{{ (states('sensor.main_kitchen_fridge_temp_zth08') | float - 0.84) | round(2) }}
{{ (states('sensor.main_kitchen_fridge_temperature_x65ts_temperature') | float - 0.84) | round(2) }}
automation:
- id: publish_fridge_temps_drinks_fridge