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

9 lines
323 B
YAML
Raw Normal View History

2022-05-11 16:41:13 +10:00
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