I have Gas sensor and I pay 6.15 PLN per m3, but I also have Fixed Monthly Subscriber Fee for 25.5 PLN which does not not depend on my monthly m3 gas consumption.
My monthly total cost for Gas is 25.5 PLN + (6.15 PLN/m3 * m3 consumption in this month)
How can I add this 25.5 PLN Fixed Monthly Subscriber Fee to be shown in Energy dashboard like this?
I tried to create 2 sensors:
# gas sensor for energy board
- sensor:
- name: Gas Monthly Subscription Fee
unique_id: gas_monthly_subscription_fee
state: 0
unit_of_measurement: mÂł
device_class: gas
state_class: total_increasing
# gas sensor total cost entity
- sensor:
- name: Gas Monthly Subscription Fee PLN
unique_id: gas_monthly_subscription_fee_pln
state: 25.5
unit_of_measurement: PLN
state_class: total_increasing
device_class: monetary
And added gas_monthly_subscription_fee sensor to Gas source at Energy dashboard configuration, where I selected gas_monthly_subscription_fee_pln as “entity tracking total cost”.
But unfortunately it does not work. Energy dashboard shows cost 0.00 PLN next to gas_monthly_subscription_fee
Is that a bug or what did I do wrong, how can I fix it?