Hi team…
I’ve created total_power value template under which i’m adding all the power entities so i can get total power for entities i want to monitor.
If all entities are up everything works fine… issue becomes if i turn off one of devices from power… meaning entity is unavailable… total power becomes unavailable… is there a way to run the calculation where if entity becomes unavailable, value of such entity becomes zero so calculation continues without that entity???
This is what I got at the moment
value_template: '{{states("sensor.cab_1_power") | float + states("sensor.cab_2_power") | float
+ states("sensor.cab_3_power") | float
+ states("sensor.uph_1_power") | float + states("sensor.uph_2_power") | float
+ states("sensor.heater_power") | float
+ states("sensor.spare_power_2") | float + states("sensor.lvl2_art_power") | float
+ states("sensor.pwrlvl1_power") | float
+ states("sensor.prep_1_power") | float + states("sensor.prep_2_power") | float
+ states("sensor.homewares_power") | float
+ states("sensor.fitup_power") | float + states("sensor.feather_power") | float
+ states("sensor.cut_1_power") | float
+ states("sensor.cut_2_power") | float + states("sensor.foam_power") | float
+ states("sensor.spare_power_3") | float + states("sensor.spare_power") | float
+ states("sensor.canteen_power") | float + states("sensor.lvl1sonos1_power") | float
}}'
I could see examples for individual template to check status but cant figure out how to do the calculation with those checks
Any help is greatly appreciated