I was updating my config with some new sensors and now my energy consumption stuff doesnt work anymore.
basically I would have a helper I could set to my energy tarrif as "electricity_rate" and use kasa smart plugs to calculate how much it was costing to run my pc daily or monthly. I had just set it up for my 3d printer also.
it would go something like this
kettle_energy_cost_monthly:
friendly_name: "Kettle Energy Cost per Month"
unit_of_measurement: "£"
value_template: >-
{% set rate = states('input_number.electricity_rate') | float / 100 %}
{% set monthly_consumption = states('sensor.kettle_this_month_s_consumption') | float %}
{{ (rate * monthly_consumption) | round(2) }}
can anyone help me?
the number helper electricity_rate was acting alittle funny, it was stuck as a slider when i wanted it to stay as a input field.
ive deleted a lot of this too start from scratch but nothing is working. I hate HA today,