I have the below code, and multiple similar in my setup, and this has worked flawlessly until I just updated from 2024.12.5 to the latest release. Can anyone see what could be causing this sensor to list as ‘unavailable’ after the system is upgraded. Appreciate any help.
As I said, running 2024.12.5 it all sensors like this work perfectly, just not after upgrading.
Thanks
- platform: history_stats_mod
name: acid_on_today_new
entity_id: switch.pentair_acid
state: "on"
type: time
start: "{{ now().replace(hour=00, minute=00, second=00) }}"
end: "{{ now() }}"
- platform: template
sensors:
acid_on_today_cup_new:
unit_of_measurement: 'cups'
value_template: "{{ states('sensor.acid_on_today_new') | float * (states('input_number.acid_time_volume_ratio') | float) * 16 * 1.0000 }}"
- platform: template
sensors:
acid_on_today_cup_round_new:
unit_of_measurement: 'cups'
value_template: "{{ states('sensor.acid_on_today_cup_new') |round(2) }}"