HomeWizard Energy (Wi-Fi P1 meter, kWh meter, Energy Socket and Water Meter)

The Dutch company HomeWizard has introduced a device that plugs into the P1 port of a DSMR Smart Meter. The P1 meter is €30 and can be used with the HomeWizard Energy app. This platform can also be used with a wifi kWh meter and Energy Socket. The P1 meter has a public API that can be used to fetch live data.

The P1 meter supports many smart meters, see this page if your meter is supported.

Update
This topic was originally created to share my progress to implement HomeWizard Energy in Home Assistant. This journey continued and the integration is now available in Home Assistant core (since 2022.2)

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.

Continue reading
The release is announced in this post. You can read stuff about the core integration and the migration from the custom integration in from this post:

Installation
Click here for the official documentation: HomeWizard Energy - Home Assistant

Full disclosure
I work for HomeWizard and am highly involved in the development of this product line. I make this integration in my spare time. I am not paid to promote this device or to create this integration.

13 Likes

Very cool thanks for your work.

Very nice work, let me know how to set it up for mine and ill test it

Hi!
You have to update your “configuration.yaml” file for now until I’ve created a custom component. Read here how: https://www.home-assistant.io/docs/configuration/yaml/. Use the examples im by previous post.

Find the IP address of your Energymeter and open http://<ip-address>/api/v1/data in your browser to see if it is up, and update configuration.yaml with the correct IP. Good luck!

Very nice.
How can i use sensor daily_energy_offpeak ?

In the example “p1_total_power_import_total” value_template says '“p1_dongle.attributes…”

I forgot to add the utility_meter component in my example. Please see the updated version!

Thx for the quick response

Much appreciated! love the product and the easy integration within HA thanks to your configuration. I read the info from the IP, but I could not really narrow it down to how to be able to read the gas part of the sensor. Thanks in advance!

Awesome to hear you like it!
It should be as easy as adding the gas parameter in json_attributes. Then copy, paste and update the sensors.

json_attributes:
    - total_power_import_t1_kwh
    - total_power_import_t2_kwh
    - total_power_export_t1_kwh
    - total_power_export_t2_kwh
    - active_power_w
    - active_power_l1_w
    - total_gas_m3 // like this

Or do you need help with the configuration file? Please check this post. I will create a custom integration in the near future so we all can just click on “add integration” :).

Thanks! Awsome. Like to use the component

Ordered one yesterday and received it today. Installation was easy, intergration in HA was a breeze thanks to your supplied documentation.
I have a ISKRA 2MT382-1004, smr_version":22. Gas meter seems to be connected through my power meter as it also picks up my gas usage.
Great product, tnx

1 Like

First of all many thanks for providing this wonderful product! It is easy to install, very affordable and allows easy integration due to the local API!

Honestly I’m not a home assist user, but couldn’t find any other way to provide some feedback.

I’m running a small linux server that has php, influxdb and grafana. I use it to get data from multiple sources and create nice dashboards. PHP scripts call the API and feed influxdb. Since a couple of days one of the sources is the P1.

I’m still solving some problems, so I might have more feedback later on. For now:

  • Calling API via file_get_contents took almost a minute, so I switched to curl. Although running PHP 7.2, it might be caused by incorrect behavior of the P1 webserver. https://stackoverflow.com/questions/3629504/php-file-get-contents-very-slow-when-using-full-url
  • it would be nice to see the firmware version it is running and have a link to the release notes
  • it would be nice to be able to get some hourly/daily statistics (and maybe for last X hours or last X days)
  • it would be nice to be able to get the totals since previous request
  • it would be nice to change what it sends to the internet (the homewizard cloud), e.g. enable/disable/change frequency of sending metrics to the HomeWizard cloud and enable/disable automatic updates of the firmware (and perform them manually)

Oh, btw… It would also be very nice to extend the Smartwares 868Mhz thermo-hygrometer with a wifi chip and API to get actual temperature/humidity (and also carbon-dioxide levels?) the same way. I’m now considering a Shelly H&T (https://shelly.cloud/products/shelly-humidity-temperature-smart-home-automation-sensor/) or a custom build based on arduino.

Great to hear you like the product and great ideas! I’ll see what I can do with them, but I can’t promise anything :slight_smile:

Let’s keep this topic to the HASS integration. The best thing you can do is fill in this form, that way you can get in contact with with correct persons within HomeWizard. HomeWizard is also active on Tweakers, where anyone can share feedback about HomeWizard Energy!

Thanks, will do!

Hi All

I created an initial version for the custom component.
HomeWizard Energy - Custom Component on Github

To use this, add the folder custom_components/homewizard_energy_p1 to your config folder (where all the config files are located). Restart HASS and add it as a normal component!

Please let me know what you think!

Configuration.yaml

# HomeWizard P1 meter
sensor:
# << Remove the REST sensor >>
- platform: template
  sensors:
    p1_total_power_import_t1_kwh:
      friendly_name: "Energy - Low Tarif"
      icon_template: mdi:weather-sunset-down
      unit_of_measurement: "kWh"
# << Rename the sensors: >>            \ ----------------  /
      value_template: '{{ states.sensor.homewizard_p1_meter.attributes.total_power_import_t1_kwh | float }}'
      entity_id: sensor.p1_meter
 
1 Like

hi there, what ever i do home assistant wont see the folder i placed in the config dir, below you find the path i used… anyone knows what’s wrong?

Oke, update, i just found it in the integration list, however, when i click it for installation it will refuse and goes back to the list with all the integrations… i even did try to login on a different browser… So, still ongoing

Hi!
Did you pick the most recent version from Github? When so, please rename the folder to “homewizard_energy”. I renamed the component in manifest.json (see domain) but not the folder. I think that could be the issue.

Also, the folder custom_component, readme.md and LICENCE should not be in the here. Don’t know how it ended up there, but just to be sure, better remove it :slight_smile:

Please let me know it that solved it!

It shows up in the integration list, but again when clicking for installation it fires me back to the integrations list…

Here a little video how it acts when clicks and the stucture on how the folder and files are placed