So, the Dutch company HomeWizard has introduced a device that plugs into the P1 port of a DSMR Smart Meter (mostly used by in The Netherlands). I work for this company and am highly involved in the development of this product.
The P1 meter is about €30 and can be used with the HomeWizard Energy app. This week we released a new firmware version which enables a local API.
UPDATE
I created an initial version for the custom component. Let me now what you think! I updated this post so it’s clear how to configure your HASS installation with this component. This component is available in HACS!
See: HomeWizard Energy - Custom Component on GithubAlso please check this post.
My Home Assistant installation is not near my meter, so I wasn’t be able to use a serial cable with the default DSMR integration. I my own time I am working to get the P1 meter integrated into HASS. I have started to create a custom component to make it easier. This component is available at Github.
Please let me know what you think! If you have any ideas or feedback for this component, don’t hesitate to make any suggestions! If you find any bugs, please let me now.
Installation
- Install ‘HomeWizard Energy’ from HACS > integrations.
- Restart your HASS installation.
- Goto configuration > Integrations (
<hass_ip>:8123/config/integrations
) add HomeWizard Energy. - Search for ‘HomeWizard Energy’ and select this integration. When you can’t find it, refresh this page or check if you have the most recent version.
- Enter the IP address of your dongle. (You can test if this is the correct IP by going to
http://<ip_address>/api/v1/data
in your browser. You should get a JSON response. - You are done! Now you can use this component to create graphs, automate things and collect data.
My configuration
With this I created a simple configuration, with the following result. Don’t forget to update your dashboard.
# HomeWizard P1 meter
sensor:
- platform: template
sensors:
daily_energy:
friendly_name: Daily Energy
unit_of_measurement: kWh
value_template: "{{ (states('sensor.daily_energy_offpeak')|float + states('sensor.daily_energy_peak')|float) | round(3)}}"
weekly_energy:
friendly_name: Weekly Energy
unit_of_measurement: kWh
value_template: "{{ (states('sensor.weekly_energy_offpeak')|float + states('sensor.weekly_energy_peak')|float) | round(3) }}"
monthly_energy:
friendly_name: Monthly Energy
unit_of_measurement: kWh
value_template: "{{ (states('sensor.monthly_energy_offpeak')|float + states('sensor.monthly_energy_peak')|float) | round(3) }}"
utility_meter:
daily_energy_peak:
source: sensor.p1_total_power_import_t2_kwh
cycle: daily
weekly_energy_peak:
source: sensor.p1_total_power_import_t2_kwh
cycle: weekly
monthly_energy_peak:
source: sensor.p1_total_power_import_t2_kwh
cycle: monthly
daily_energy_offpeak:
source: sensor.p1_total_power_import_t1_kwh
cycle: daily
weekly_energy_offpeak:
source: sensor.p1_total_power_import_t1_kwh
cycle: weekly
monthly_energy_offpeak:
source: sensor.p1_total_power_import_t1_kwh
cycle: monthly