Hi, I have made a template sensor called “Cost of Electric Today” that tracks the total energy spent over the course of a day. It pulls in my daily rate from an API and factors in my standing charge.
`{{ states('sensor.energy_spent_today') | float(0) * states('sensor.octopus_current_rate') | float(0) + states('sensor.octopus_standing_charge') | float(0) | round(2) }}`
I am pleased having managed this myself, but for some reason it won’t report the value in Energy Consumption. Energy Consumption will accept the entity.
Everything looks OK and resets and works as expected, but Energy Consumption won’t read the information (final screen shoot) which is frustrating. I have included screen shots and my template code. I bet I am missing something.
- Core 2024.7.3
- Supervisor 2024.06.2
- Operating System 12.4
- Frontend 20240710.0
Can anybody help? I was feeling great having worked out the template sensor but a bit defeated when Energy Consumption is not showing the figure. I have left it for hours including over night, but it still won’t report.