I have four calculated (in yaml) sensor values as $ values that are all working on my dashboard-
sensor.agl_hot_water
sensor.agl_imported_offpeak
sensor.agl_imported_peak
sensor.agl_exported_income
I would like to have a calculation on the dash that shows the current cost/credit (exported, minus all 3 imported charges) - the ‘english’ formular is thus -
sensor.agl_exported_income - ( sensor.agl_hot_water + sensor.agl_imported_offpeak + sensor.agl_imported_peak )
I have been messing in the dev tools but I cant get this right. I was resigned into thinking I would do a helper sum of the three imported values, then a yaml subtraction of the exported minus this helper value - but surely there is a better way to do it all on one line ?