cool:
calculated_totaal_dag_afname:
friendly_name: Totaal dag afname
unit_of_measurement: 'kWh'
value_template: >
{{ (states('sensor.teller_1')|float
+ states('sensor.teller_2')|float -
states('sensor.teller_1_daystart')|float
- states('sensor.teller_2_daystart')|float)|round(2) }}
calculated_totaal_dag_levering:
friendly_name: Totaal dag levering
unit_of_measurement: 'kWh'
value_template: >
{{ (states('sensor.teller_1_terug')|float
+ states('sensor.teller_2_terug')|float -
states('sensor.teller_1_terug_daystart')|float
- states('sensor.teller_2_terug_daystart')|float) | round(2)}}
would simply need to split the above sensors per ‘teller’:
calculated_totaal_dag_afname_t1:
friendly_name: Totaal dag afname T1
unit_of_measurement: 'kWh'
value_template: >
{{ (states('sensor.teller_1')|float -
states('sensor.teller_1_daystart')|float)|round(2) }}
calculated_totaal_dag_levering_t1:
friendly_name: Totaal dag levering T1
unit_of_measurement: 'kWh'
value_template: >
{{ (states('sensor.teller_1_terug')|float -
states('sensor.teller_1_terug_daystart')|float) | round(2)}}
calculated_totaal_dag_afname_t2:
friendly_name: Totaal dag afname T2
unit_of_measurement: 'kWh'
value_template: >
{{ (states('sensor.teller_2')|float -
states('sensor.teller_2_daystart')|float)|round(2) }}
calculated_totaal_dag_levering_t2:
friendly_name: Totaal dag levering T2
unit_of_measurement: 'kWh'
value_template: >
{{ (states('sensor.teller_2_terug')|float -
states('sensor.teller_2_terug_daystart')|float) | round(2)}}
Got them working nicely here…proof (uncustomized new sensors at the top), at the bottom the sensors used now in the card version 0.0.5:
now where is the link for the dev version 0.0.6?
EDIT
never mind the link, Ive found it.
Im bending my mind here, so please help me:
this is the config, and Ive left the old entities in there for reference:
- type: 'custom:power-wheel-card'
title: 'Power distribution'
solar_power_entity: sensor.zp_actuele_opbrengst
grid_power_entity: sensor.netto_verbruik
grid_power_consumption_entity:
grid_power_production_entity:
solar_energy_entity: sensor.solar_energy_entity
grid_energy_entity: sensor.grid_energy_total
grid_energy_consumption_entity: sensor.calculated_totaal_dag_afname
grid_energy_production_entity: sensor.calculated_totaal_dag_levering
color_icons: true
power_decimals: 2
energy_decimals: 2
energy_price:
initial_view: energy
I take it I have to use the newly created sensors Ive posted above at the grid_energy_consumption/production_entity ?
Im stuck what to do at the grid_power_consumption/production_entity though. Would you please have another look and assist in configuration? Thanks!
would this do for production:
{{ (states.sensor.zp_pulse_total.state|float -
states.sensor.zp_pulse_total_daystart.state|float)|round(2) }}
being the current total production pulses - daystart, hence the production for the day?
I also have a dedicated sensor for last_day production of the solar panels, but that seems to calculate the day before, and not from daystart to now…
What to use for grid_power_consumption/production_entity?
Since my dsmr sensors read the netto verbruik directly, I don’t have to calculate that. Power consumption should hence be as follows? :
calculated_bruto_verbruik:
friendly_name: Bruto verbruik
unit_of_measurement: 'Watt'
value_template: >
{{ (states('sensor.zp_actuele_opbrengst')|int)
+ (states('sensor.netto_verbruik')|int) }}
and as a consequence I should then use the current solar production, sensor.zp_actuele_opbrengst, as power production?
completing the config as follows:
- type: 'custom:power-wheel-card'
title: 'Power distribution'
solar_power_entity: sensor.zp_actuele_opbrengst
grid_power_entity: sensor.netto_verbruik
grid_power_consumption_entity: sensor.calculated_bruto_verbruik
grid_power_production_entity: sensor.zp_actuele_opbrengst
solar_energy_entity: sensor.solar_energy_entity
grid_energy_entity: sensor.grid_energy_total
grid_energy_consumption_entity: sensor.calculated_totaal_dag_afname
grid_energy_production_entity: sensor.calculated_totaal_dag_levering
color_icons: true
power_decimals: 2
energy_decimals: 2
energy_price: 0.45
initial_view: energy
above setup gives:
which seems alright at first glance?