I’ve released version 0.8.0 of this integration and it can be installed via HACS.
- Add support for ’ Long term statistics’
- Add support for the new Energy Dashboard
- Gas timestamp is now parsed. It now shows the current time in the frontend.
I’ve released version 0.8.0 of this integration and it can be installed via HACS.
After upgrade to 0.8.0 version, my P1 meter readings are unavailable.
In the log I see:
2021-08-04 14:54:36 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform homewizard_energy.sensor: Platform not found (cannot import name ‘SensorEntityDescription’ from ‘homeassistant.components.sensor’ (/usr/src/homeassistant/homeassistant/components/sensor/init.py)).
Also restarted HA many times and also updated HA to the August version.
Any thoughts?
What version is your Hone Assistant installation?
edit: Apperantly SensorEntityDescription
is new in HA 2021.8. So it fix itself if you update your installation. I will update the minimum version for HACS. Thanks for the report
I expected to use the P1 meter in the new HA 2021.8 energy settings with entity. sensor.p1_meter_active_power , but i am unable to select it. Can you give some advice in integrating P1 meter with new HA energy settings?
(i have all latest updates)
Updating to HA 2021.8 did the trick. Thanks
I have all latest updates
Can you specify which one?
Can you give some advice
You have to select the totals (kWh). The default entity name is sensor.p1_meter_total_active_import_t2
(Or export/t2). Can you try this one?
I have HA 2021.8 and HomeWizard Energy 0.8.1
Thanks for your advice regarding totals. And yes i have the import/export T1/T2.
Somehow i assumed i needed to go for current consumption.
@DCSBL
I updated to the last version of the plugin, and could select the necessary sensors in the energy setup, however it seems it’s not updating. Any clue where I could be looking?
In the developer tools, I see the sensors updating with the information.
Otherwise, Thanks for the quick update on your plugin to enable it all
Edit: Nevermind, it seems I needed to have patience. I though I waited for an hour at least, but just refreshed and there it was
It’s working now. Thanks for your quick answer, and the new update to 0.8.1
Need to look a bit closer in what I have setup, as it looks like it’s working for me…
i have updated to the latest version of Homewizard Energy.
I have the latest version of Home Assitant.
I can see that i can select some sensors in the energy settings, but nothing happens.
Are my settings correct, of do i need to select a different sensor?
You have to wait at least 2 hours before data shows op
It looks ok the internal board, but running behind also… not sure what I gain more on metrics on what I already have.
I agree, I think the biggest improvement is that the dashboard is maintained by Home Assistant instead of the individual user. They will work on more advanced features without you doing anything (same thing for the Energy App).
Some cards that are used by the energy dashboard are also available as Lovelace card, so you can create your own dashboard at any moment.
@Fabian_v, thanks for checking. Strange because I started over from scratch and double checked everything but now I have 0.00eur for all electric values and only the Gas cost works. Not sure if the daily graphs are working yet because I reset everything so need to wait at least 2 days.
@DCSBL, for the energy dashboard, I used the “sensor.p1_meter_total_power_import_t1/t2” consumption inputs, but still not getting any values to show up. I thought that maybe I just needed to wait for the data to load but after ~12 hours I still don’t see anything. Any ideas on how to solve it?
For reference, I have both HA 2021.8 and HomeWizard Energy 0.8.1 installed.
Here are some screenshots:
and here is the data from my HomeWizard Energy app:
Strange… I have the exact same configuration. Can you see something in your logs?
Did you change some settings according to history
? Please check if your kWh readings are recorded into the database (aka, do you see graphs?). I am not sure but I had issues before that are maybe related.
I checked in history and seems like there is data coming in. Also in my dashboard the kWh and meter readings are displayed, just not in the new energy dashboard.
ok now i see information comming in.
But it seems that it wont show the power that is deliverd to the grid. In the app it is working fine.
@dawnchorus and @marcel1988, I think the best thing to do is to ask some help at Energy Management in Home Assistant. If it turns out that this integration is doing something wrong, please come back to me and I will try to fix it. But for now it seems that the HomeWizard Energy component is working the way it should.
I have picked up my config so you can compare…
##############################################
## ELEKTRA ##
##############################################
sensor:
- platform: template
sensors:
energy_import_t2_dagelijks_eur:
friendly_name: 'Dagelijkse kosten nomaal tarief (T2)'
value_template: "{{ (states('sensor.energy_import_t2_dagelijks')|float * states('input_number.t2_energy_cost')|float)|round(2) }}"
unit_of_measurement: "€"
- platform: template
sensors:
energy_import_t2_wekelijks_eur:
friendly_name: 'Wekelijkse kosten nomaal tarief (T2)'
value_template: "{{ (states('sensor.energy_import_t2_wekelijks')|float * states('input_number.t2_energy_cost')|float)|round(2) }}"
unit_of_measurement: "€"
- platform: template
sensors:
energy_import_t2_maandelijks_eur:
friendly_name: 'Maandelijkse kosten nomaal tarief (T2)'
value_template: "{{ (states('sensor.energy_import_t2_maandelijks')|float * states('input_number.t2_energy_cost')|float)|round(2) }}"
unit_of_measurement: "€"
##############################################
- platform: template
sensors:
energy_import_t1_dagelijks_eur:
friendly_name: 'Dagelijkse kosten dal tarief (T1)'
value_template: "{{ (states('sensor.energy_import_t1_dagelijks')|float * states('input_number.t1_energy_cost')|float)|round(2) }}"
unit_of_measurement: "€"
- platform: template
sensors:
energy_import_t1_wekelijks_eur:
friendly_name: 'Wekelijkse kosten dal tarief (T1)'
value_template: "{{ (states('sensor.energy_import_t1_wekelijks')|float * states('input_number.t1_energy_cost')|float)|round(2) }}"
unit_of_measurement: "€"
- platform: template
sensors:
energy_import_t1_maandelijks_eur:
friendly_name: 'Maandelijkse kosten dal tarief (T1)'
value_template: "{{ (states('sensor.energy_import_t1_maandelijks')|float * states('input_number.t1_energy_cost')|float)|round(2) }}"
unit_of_measurement: "€"
##############################################
- platform: template
sensors:
energy_import_total_dagelijks_eur:
friendly_name: 'Dagelijkse kosten dal + normaal'
value_template: "{{ (states('sensor.energy_import_t2_dagelijks_eur')|float + states('sensor.energy_import_t1_dagelijks_eur')|float)|round(2) }}"
unit_of_measurement: "€"
- platform: template
sensors:
energy_import_total_wekelijks_eur:
friendly_name: 'Wekelijkse kosten dal + normaal'
value_template: "{{ (states('sensor.energy_import_t2_wekelijks_eur')|float + states('sensor.energy_import_t1_wekelijks_eur')|float)|round(2) }}"
unit_of_measurement: "€"
- platform: template
sensors:
energy_import_total_maandelijks_eur:
friendly_name: 'Maandelijkse kosten dal + normaal'
value_template: "{{ (states('sensor.energy_import_t2_maandelijks_eur')|float + states('sensor.energy_import_t1_maandelijks_eur')|float)|round(2) }}"
unit_of_measurement: "€"
##############################################
- platform: template
sensors:
energy_import_total_dagelijks_kwh:
friendly_name: 'kWh vandaag dal + normaal'
value_template: "{{ (states('sensor.energy_import_t1_dagelijks')|float + states('sensor.energy_import_t2_dagelijks')|float)|round(2) }}"
unit_of_measurement: "kWh"
- platform: template
sensors:
energy_import_total_wekelijks_kwh:
friendly_name: 'kWh wekelijks dal + normaal'
value_template: "{{ (states('sensor.energy_import_t1_wekelijks')|float + states('sensor.energy_import_t2_wekelijks')|float)|round(2) }}"
unit_of_measurement: "kWh"
- platform: template
sensors:
energy_import_total_maandelijks_kwh:
friendly_name: 'kWh maandelijks dal + normaal'
value_template: "{{ (states('sensor.energy_import_t1_maandelijks')|float + states('sensor.energy_import_t2_maandelijks')|float)|round(2) }}"
unit_of_measurement: "kWh"
##############################################
## GAS ##
##############################################
- platform: template
sensors:
energy_gas_daily_eur:
friendly_name: 'Dagelijkse kosten gas'
value_template: "{{ (states('sensor.energy_gas_dagelijks')|float * states('input_number.gas_energy_cost')|float)|round(2) }}"
unit_of_measurement: "€"
- platform: template
sensors:
energy_gas_weekly_eur:
friendly_name: 'Wekelijkse kosten gas'
value_template: "{{ (states('sensor.energy_gas_wekelijks')|float * states('input_number.gas_energy_cost')|float)|round(2) }}"
unit_of_measurement: "€"
- platform: template
sensors:
energy_gas_monthly_eur:
friendly_name: 'Maandelijkse kosten gas'
value_template: "{{ (states('sensor.energy_gas_maandelijks')|float * states('input_number.gas_energy_cost')|float)|round(2) }}"
unit_of_measurement: "€"
##############################################
## Totale netto kosten (Gas + electra) ##
##############################################
- platform: template
sensors:
energy_gas_en_elektriciteit_dagelijks_eur:
friendly_name: 'Totale netto dag kosten energie'
value_template: "{{ (states('sensor.energy_gas_daily_eur')|float + states('sensor.energy_import_total_dagelijks_eur')|float)|round(2) }}"
unit_of_measurement: "€"
- platform: template
sensors:
energy_gas_en_elektriciteit_wekelijks_eur:
friendly_name: 'Totale netto week kosten energie'
value_template: "{{ (states('sensor.energy_gas_weekly_eur')|float + states('sensor.energy_import_total_wekelijks_eur')|float)|round(2) }}"
unit_of_measurement: "€"
- platform: template
sensors:
energy_gas_en_elektriciteit_maandelijks_eur:
friendly_name: 'Totale netto maand kosten energie'
value_template: "{{ (states('sensor.energy_gas_monthly_eur')|float + states('sensor.energy_import_total_maandelijks_eur')|float)|round(2) }}"
unit_of_measurement: "€"
##############################
## input_number ##
##############################
input_number:
t2_energy_cost:
name: Stroom import nomaal
mode: box
min: 0
max: 100
unit_of_measurement: "€/kWh"
icon: mdi:currency-eur
t1_energy_cost:
name: Stroom import dal
mode: box
min: 0
max: 100
unit_of_measurement: "€/kWh"
icon: mdi:currency-eur
gas_energy_cost:
name: Gas
mode: box
min: 0
max: 100
unit_of_measurement: "€/m3"
icon: mdi:currency-eur
##############################
## Utility Meter ##
##############################
utility_meter:
# Hourly sensors
energy_offpeak_hourly:
source: sensor.p1_meter_total_power_import_t1_kwh
cycle: hourly
energy_peak_hourly:
source: sensor.p1_meter_total_power_import_t2_kwh
cycle: hourly
gas_hourly:
source: sensor.p1_meter_total_gas_m3
cycle: hourly
# Daily sensors
energy_offpeak_daily:
source: sensor.p1_meter_total_power_import_t1_kwh
cycle: daily
energy_peak_daily:
source: sensor.p1_meter_total_power_import_t2_kwh
cycle: daily
energy_import_t2_dagelijks:
source: sensor.p1_meter_total_power_import_t2
cycle: daily
energy_import_t1_dagelijks:
source: sensor.p1_meter_total_power_import_t1
cycle: daily
# Weekly
energy_offpeak_weekly:
source: sensor.p1_meter_total_power_import_t1_kwh
cycle: weekly
energy_peak_weekly:
source: sensor.p1_meter_total_power_import_t2_kwh
cycle: weekly
energy_import_t2_wekelijks:
source: sensor.p1_meter_total_power_import_t2
cycle: weekly
energy_import_t1_wekelijks:
source: sensor.p1_meter_total_power_import_t1
cycle: weekly
# Monthly
# energy_peak_monthly:
# source: sensor.p1_meter_total_power_import_t2_kwh
# cycle: monthly
# energy_offpeak_monthly:
# source: sensor.p1_meter_total_power_import_t1_kwh
# cycle: monthly
energy_import_t2_maandelijks:
source: sensor.p1_meter_total_power_import_t2
cycle: monthly
energy_import_t1_maandelijks:
source: sensor.p1_meter_total_power_import_t1
cycle: monthly
# energy_export_t2_dagelijks:
# source: sensor.p1_meter_total_power_export_t2_kwh
# cycle: daily
# energy_export_t1_dagelijks:
# source: sensor.p1_meter_total_power_export_t1_kwh
# cycle: daily
# Gas
energy_gas_dagelijks:
source: sensor.p1_meter_total_gas
cycle: daily
energy_gas_wekelijks:
source: sensor.p1_meter_total_gas
cycle: weekly
energy_gas_maandelijks:
source: sensor.p1_meter_total_gas
cycle: monthly
# Yearly sensors
energy_offpeak_yearly:
source: sensor.p1_meter_total_power_import_t1_kwh
cycle: yearly
energy_peak_yearly:
source: sensor.p1_meter_total_power_import_t2_kwh
cycle: yearly
gas_yearly:
source: sensor.p1_meter_total_gas_m3
cycle: yearly