73 lines
2.3 KiB
YAML
73 lines
2.3 KiB
YAML
---
|
|
- platform: template
|
|
sensors:
|
|
cost_energy_monthly:
|
|
friendly_name: "Energy Cost (Monthly)"
|
|
unit_of_measurement: '$'
|
|
value_template: >
|
|
{{ "%.2f" | format( states('sensor.power_house_total_1mon') | float * ( 0.112830 + 0.062540 ) + 4.27 ) }}
|
|
|
|
cost_energy_daily:
|
|
friendly_name: "Energy Cost (Daily)"
|
|
unit_of_measurement: '$'
|
|
value_template: >
|
|
{{ "%.2f" | format( states('sensor.power_house_total_1d') | float * ( 0.112830 + 0.062540 ) ) }}
|
|
|
|
# Price per kWh
|
|
# Delivery Price per kWh
|
|
# Customer charge 4.27 per month
|
|
|
|
- platform: template
|
|
sensors:
|
|
cost_water_monthly:
|
|
friendly_name: "Water Cost (Monthly)"
|
|
unit_of_measurement: '$'
|
|
value_template: >
|
|
{{ "%.2f" | format( states('sensor.water_monthly') | float / 100 * ( 0.77752 + 0.05289 + 0.08791 + 0.00551) + 19.85 + 3.67 ) }}
|
|
|
|
cost_water_daily:
|
|
friendly_name: "Water Cost (Daily)"
|
|
unit_of_measurement: '$'
|
|
value_template: >
|
|
{{ "%.2f" | format( states('sensor.water_daily') | float / 100 * ( 0.77752 + 0.05289 + 0.08791 + 0.00551 ) ) }}
|
|
|
|
# Aug 02 + 31 day
|
|
# Water Service 50.95
|
|
# Water Service Charge 19.85
|
|
# Water Usage Charge (40 x $0.77752) 31.10
|
|
# Other Charges 9.53
|
|
# Purchased Water Surcharge (40 x $0.05289) 2.12
|
|
# Distribution System Improvement Charge
|
|
# (1 x $3.67) 3.67
|
|
# LSLRC Surcharge (40 x $0.08791) 3.52
|
|
# Special Program Charge (40 x $0.00551) 0.22
|
|
|
|
- platform: template
|
|
sensors:
|
|
cost_gas_monthly:
|
|
friendly_name: "Gas Cost (Monthly)"
|
|
unit_of_measurement: '$'
|
|
value_template: >
|
|
{{ "%.2f" | format( states('sensor.gas_monthly') | float * 1.012 * 1.032 * (0.550932 + 0.397731) + 8.62 ) }}
|
|
|
|
cost_gas_daily:
|
|
friendly_name: "Gas Cost (Daily)"
|
|
unit_of_measurement: '$'
|
|
value_template: >
|
|
{{ "%.2f" | format( states('sensor.gas_daily') | float * 1.012 * 1.032 * ( 0.550932 + 0.397731 ) ) }}
|
|
|
|
# Converted to CCF x 1.012 13.156
|
|
# Converted to therms x 1.032 13.577
|
|
# Total gas you used in 29 days 13.577 therms
|
|
|
|
# Delivery charges
|
|
# Monthly service charge $8.62
|
|
# Charges for delivering gas to you:
|
|
# 13.577 therms x $0.550932 $7.48
|
|
# Total gas delivery charges $16.10
|
|
# Supply charges
|
|
# Cost of gas supplied by PSE&G:
|
|
# 13.577 therms x $0.397731 $5.40
|
|
# Total gas supply charges $5.40
|
|
# Total gas charges $21.50
|