{{ (states(‘sensor.byd_battery_box_premium_hv_state_of_charge’) | float / 100 ) * (states(‘sensor.byd_battery_box_premium_hv_maximum_capacity’) | float ) | round(1) }}
And please “Format” your Code when you post it in the Forum
How to help us help you - or How to ask a good question. (PT.11)
PS: Paste/test your templates in /Developer Tools/Templates !