Hey guys,
i receive my kWh consumption on a daily basis via an addon which writes to a sensor and now i wanted to add the costs to it with the “entity with current price” option.
The way i approached this is, that i have 2 helper inputs to which i will write my energy costs manually (thats pure energy cost and network fee and taxes. Both parameter are dependend on how many kWh are spent, so €/kWh). After that i sum those two up with the help of a sensor template. This sensor entity is then used for the field “entity with current price”.
Reason for my approach is because energy prices will increase in the future, yet network fees will stay the same and only be updated once a year or so. So i wanted to change them independently.
The costs in the energy panel never get updated. The state for the cost entity is “unknown”.
The entity:
- sensor:
name: "Kosten pro kWh"
unique_id: "cost_per_kWh"
state: "{{ states('input_number.arbeitspreis_strom_pro_kwh') | float + states('input_number.netzkosten_und_steuern_pro_kwh') | float }}"
unit_of_measurement: '€/kWh'
state_class: measurement
device_class: monetary
Thanks in advance!