1
0
Fork 0
ha-config/config/packages/electricity.yaml

9 lines
323 B
YAML

template:
- sensor:
- unique_id: current_electricity_cost
state: |
{{ (states('sensor.electricity_general_price') | float * states('sensor.eagle_200_meter_power_demand') | float) | round(2) }}
unit_of_measurement: $/hr
device_class: monetary
name: Current electricity cost