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

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

Thanks for the video! Is there anything to see in the system log (Configuration -> Log)?

Will try to troubleshoot this tomorrow. I think it should be an easy fix, i’ll keep you updated!

hi just looked into the logs, with a clear log and there is nothing popping up… keep me posted, looking forward to it.

Found it in const.py. Change the DOMAIN value to homewizard_energy. I think that will fix the issue. thanks for trying this component!

I’ve pushed the fix to Github.

Thanks a lot for this great addition to the P1 meter! A great product!
I added this to home assistant. And it works well. I only have 1 issue i cannot seems to solve.

Today i’m on a night tariff (weekend). But the Home assistant meter today show i’m using peak tariff. Where do he get the info from that it is using off peak or on peak? Is this info the meter provides, or is this coded somewhere?

Additions i like to have:

  • Gas meter (like in the app)
  • Changeable Costs per Kwh (Electricity)/m3 (gas) off peak/on peak and some visual meters to see it (like the app)
  • Yearly usage with a set start/reset date. To informative compare the energy bill. 2020, 2021, 2022, etc… Would also be a great addition to the app.

The integration exposes all data that is send from the energy meter. Its main value is the measured power consumption in watts. It is not dependent on peak/off-peak, I do not understand what you want to see. I’m planning to update the integration so these values are available directly without templates.

For now, to use the other values within the frontend (Lovelace), you have to create some template sensors (as shown in the example in the first post). By copy and change these you can add the gas meter. By updating the Utility Meter component (see same example), you can monitor your yearly usage.

The available datapoints are:

homewizard_p1_meter.attributes.smr_version
homewizard_p1_meter.attributes.meter_model
homewizard_p1_meter.attributes.wifi_ssid
homewizard_p1_meter.attributes.wifi_strength
homewizard_p1_meter.attributes.total_power_import_t1_kwh
homewizard_p1_meter.attributes.total_power_import_t2_kwh
homewizard_p1_meter.attributes.total_power_export_t1_kwh
homewizard_p1_meter.attributes.total_power_export_t2_kwh
homewizard_p1_meter.attributes.active_power_w
homewizard_p1_meter.attributes.active_power_l1_w
homewizard_p1_meter.attributes.active_power_l2_w
homewizard_p1_meter.attributes.active_power_l3_w
homewizard_p1_meter.attributes.total_gas_m3
homewizard_p1_meter.attributes.gas_timestamp

Just to be clear: The goal of this integration is to include the HomeWizard Energy products with API support into Home Assistant like any other integration. It is up to you to create your dashboard with these integrations within the frontend. Please check this awesome example if you want some inspiration. It also shows how you can create the costs monitoring.

1 Like

Thank you for trying to integrate Homewizard with home assistant.
Homewizard is functioning through the homewizard app.
Somehow, I cannot get it to work, although the integration itself is installed, and functional.
Logbook shows: 2020-11-07 21:08:28 ERROR (MainThread) [homeassistant.components.sensor] homewizard_energy: Error on device update!

Your ip address check does not work ( 1. 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.) I get ERR_CONNECTION_REFUSED

I think the problem is in connecting to the dongle somehow.
Any leads?

Just to be sure. Do you have setup problems with the HomeWizard Energy P1 meter, or are you referencing to the original ‘HomeWizard’?

I have problems with getting the Homewizard p1 meter to function through home assistant.

All right! Please check the following:

  • Please check if the light of the P1 meter is ‘fading’ green, indicating that is is online.
  • Check if the software of the P1 meter is at least 1.48 or higher (2.xx is also fine). You can see this in the HomeWizard Energy app > Gear icon > Meters > (your meter) > Software. If you are not sure, please send me a DM.
  • Try to ping the dongle. You should see a response such as “64 bytes from <ip_address>: icmp_seq=0 ttl=254 time=4.992 ms”.

Then try to restart you P1 meter (unplug all power sources). Then do the browser check again and, when successful, reconfigure the HASS integration. Can you please let me know if the restart was the solution (or not)?