various tidyups
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
# PACKAGE: Energy Cost Monitoring
|
||||
################################################################################
|
||||
#
|
||||
# Version: 1.3.0
|
||||
# Date: 2026-08-23
|
||||
# Version: 1.3.1
|
||||
# Date: 2026-09-01
|
||||
#
|
||||
# Purpose:
|
||||
# Track GST-inclusive electricity costs for the three-phase grid supply and
|
||||
@@ -18,6 +18,8 @@
|
||||
# boundary without averaging the old and new rates.
|
||||
#
|
||||
# Version history:
|
||||
# 1.3.1 (2026-09-01): Move Downstairs Fridge and Freezer shared power-cost
|
||||
# telemetry from X41PP to X68PM.
|
||||
# 1.3.0 (2026-08-24): Add Drinks Fridge and Vertical Freezer energy and
|
||||
# cost monitoring.
|
||||
# 1.2.0 (2026-08-23): Add Downstairs Lounge North GPO (X48PM) energy and
|
||||
@@ -326,11 +328,11 @@ template:
|
||||
unique_id: energy_cost_downstairs_fridge_rate
|
||||
unit_of_measurement: "NZD/h"
|
||||
state_class: measurement
|
||||
availability: "{{ has_value('sensor.downstairs_fridge_power_x41pp_power') }}"
|
||||
availability: "{{ has_value('sensor.downstairs_fridge_gpo_power_x68pm_power') }}"
|
||||
state: >-
|
||||
{{
|
||||
(
|
||||
states('sensor.downstairs_fridge_power_x41pp_power') | float(0)
|
||||
states('sensor.downstairs_fridge_gpo_power_x68pm_power') | float(0)
|
||||
/ 1000
|
||||
* states('sensor.electricity_current_price') | float(0)
|
||||
) | round(6)
|
||||
|
||||
Reference in New Issue
Block a user