The problem was not in HA, but in the P1 Meter dongle. For some reason, even though it was accessible from HA, it had stopped responding to API queries, and wasn’t sending data to HA, even though it was sending data to the HomeWizard Energy app on my smartphone.
I power cycled the dongle, and it started working again…
Would it be possible to change the component to have access to all telegram elements ?
In this way, I could monitor mains voltages as well.
All data is available via the telegram api, so why not use it ?
I make use of the /data api, where the data is already nicely parsed for me. Yes, It is possible to take the telegram and parse it to make all properties available, but I do not have the time nor need to do that.
Hello, i’ve installed the P1 meter today and HomeWizard Energy integration but i’m not getting all the sensors compared to the ‘DSMR Slimme Meter’ integration which i’m currently using. For instance, the hourly gas sensor isn’t there (only the gas timestamp and Total gas, but also the voltage (netspanning) and current (stroom) are ‘missing’. The DSMR integration reads over 30 sensors and HomeWizard Energy ‘only’ 14. is this to be expected because if DSMR can read those, then HomeWizard potentially could do it too?
As I already have mentioned here, you can always use the /telegram API endpoint to get all datapoints. The /data API only exposes the datapoints that are also available in the HomeWizard Energy app.
You can always propose your idea to HomeWizard Support.
Hi all,
The public API for the HomeWizard kWh meter is released. You have to enable the API per device in the HomeWizard Energy app (You need version 1.5.0 or higher).
When you have enabled the API, this integration can find and use your kWh meter(s). Please let me know if everything works for you or if you find something that does not work right
After enabling the API setting and restarting HA the kWh meters are found, great!!
At the moment I use the ‘S0’ output of the meters to get the value imported into HA.
My DSMR meter only reports every 10 seconds. Is it possible to sync those P1 reports with the reading of the kWh meters? One of the kWh meters is being used with my solar energy and to sync the P1 and the kWh will give more accurate numbers. Thanks!
What do you expect from “sync those reports” ?
You can change the update frequency from the integration settings, but it is not possible to sync readings. This is handled by Home Assistant.
I can take a look in the new ‘disable polling’ feature. With that you can disable the integration from polling itself and make a automation that polls all the data you need.
You also can play with templates, as I have done to create a ‘daily’, ‘weekly’ and ‘monthly’ history.
Already set the polling interval to 10 seconds. The problem is that the PV (solar panels) generated power has effect on the power reported by the P1 meter. So when the PV generated power increases and they are not sample at the same time strange differences might occur.
Let me explain, the P1 meter reports 200W used at time ‘0’ after 10 seconds it reports 2200W used. At time ‘0’ the sun was shining and at time ‘10 seconds’ there is a cloud in front of it so the PV panels generate 2000W less. But when the PV meter samples at time ‘5 seconds’ the cloud might not be casting a shadow. If you use those numbers to calculate the actual power usage of the house you end up with strange numbers. If the output of the PV’s is constant over time, there is no problem. But the generated power can change rapidly.
I hope this clarifies it…
Since updating the Home Assistant Core to version 2021.7.1 the Home Energy Wizard integration no longer works. I see these errors in the Core log:
2021-07-10 07:46:48 ERROR (MainThread) [custom_components.homewizard_energy.sensor] Error connecting to the Energy device at 192.168.178.143
2021-07-10 07:46:48 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up homewizard_energy platform for sensor
Traceback (most recent call last):
File "/config/custom_components/homewizard_energy/sensor.py", line 128, in async_setup_entry
await energy_api.initialize()
File "/usr/local/lib/python3.9/site-packages/aiohwenergy/hwenergy.py", line 50, in initialize
await self.update()
File "/usr/local/lib/python3.9/site-packages/aiohwenergy/hwenergy.py", line 54, in update
status, response = await self.request('get', 'api')
File "/usr/local/lib/python3.9/site-packages/aiohwenergy/hwenergy.py", line 96, in request
raise RequestError(
aiohwenergy.errors.RequestError: Error requesting data from 192.168.178.143: Server disconnected
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 250, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/homewizard_energy/sensor.py", line 136, in async_setup_entry
raise ConfigEntryNotReady
homeassistant.exceptions.ConfigEntryNotReady: None
Everything seems to work on my side. If I can remember correctly, there were more problems in the past with your setup. Please check if you have the most recent version of the integration installed (0.7.1) with all the files and that your P1 meter still can be found at 192.168.178.143.
I seem to have a similar problem.
after a few days, HA is not able to read the results anymore from P1 meter.
When I reboot, everything is fine again for a few days, and then it stops again,
The custom component version is ": “0.7.1”
Up to the HA updates, there has never been a problem.
Any ideas on how to solve this ?
Let me know if you need me to do additional debugging.
I see this in the lovelace dashboard.
Impossible energy consumption measure of total
In the logs I see this:
July 14, 2021, 8:40:35 PM – (ERROR) helpers/entity_component.py
Error while setting up homewizard_energy platform for sensor
July 14, 2021, 8:40:33 PM – (ERROR) Sensor (custom integration)
Error connecting to the Energy device at 192.168.0.92
July 14, 2021, 8:40:33 PM – (ERROR) Homewizard Energy (custom integration)
July 15, 2021, 9:49:15 PM – (WARNING) Home Assistant WebSocket API
Error unloading entry P1 meter for sensor
Impossible energy consumption measure of total
July 15, 2021, 9:49:15 PM – (WARNING) Home Assistant WebSocket API
Error unloading entry P1 meter for sensor
July 14, 2021, 8:40:35 PM – (ERROR) helpers/entity_component.py
Error while setting up homewizard_energy platform for sensor
July 14, 2021, 8:40:33 PM – (ERROR) Sensor (custom integration)
Error connecting to the Energy device at 192.168.0.92
July 14, 2021, 8:40:33 PM – (ERROR) Homewizard Energy (custom integration)
Oh and by the way, is it already possible to read out the Homewizard kWh meters with Home Assistant ?