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

How can we get all the data that is on api/v1/telegram to HA? Currently, P1 just sends the data from api/v1/data.

Hi,

I’ve issues to synchronize P1 with HA but in the Energy app from Home wizard everything is OK.

My issue seems very similar to this one 87432 which is supposed to be closed. I’ve tried to power off 5 min and plug it again, it works when I plug it then stops.

My P1 meter has SW5.19 (says no update availble for firmware) and my HA is on the latest core version 2024.11.0.

@DCSBL any idea what can be wrong ?

I’m connected over WiFi with a quite poor connection but as data on the Energy app is OK it should be OK in HA no ?

I’m in Switzerland if it can have any impact.

Thank you in advance

Does anyone have any idea why both of my tarrifs are not showing? I can only see T2. This is the data from diagnostics:

      "data": {
        "wifi_ssid": "**REDACTED**",
        "wifi_strength": 74,
        "smr_version": null,
        "meter_model": "ISKRA 2M551T-200",
        "unique_meter_id": "**REDACTED**",
        "active_tariff": null,
        "total_energy_import_kwh": 5365.081,
        "total_energy_import_t1_kwh": 2182.155,
        "total_energy_import_t2_kwh": 3182.926,
        "total_energy_import_t3_kwh": null,
        "total_energy_import_t4_kwh": null,

I have sum, t1 and t2. But in HA I can only see the sum and T2, not T1:

"total_energy_import_kwh": 5365.081,
"total_energy_import_t1_kwh": 2182.155,
"total_energy_import_t2_kwh": 3182.926,

image

You may have the same issue as found here: Missing value HomeWizard P1 total_power_import_t1_kwh · Issue #133379 · home-assistant/core · GitHub

Do you have my any change disabled ‘export’ totals?

Yes this is exactly the same issue that user is having. I have replied to the topic. No idea where or how to “disable ‘export’ totals” or every why this is needed.

Edit: Oh sorry. I see you are same author. I wrote more details to the Github ticket. For sure this is a bug. I have two tarrif. Low and high. And both produce values which are then summed. Only input, not export. So this should be correctly displayed in integration.

Who can help me with this? I have solar panels. I would like to know my current net consumption (kW). As far as I know, the P1 meter shows the export/import consumption.

I have 2 sensors:

A) sensor.solar_invertor_current_power (kW)
B) sensor.p1_meter_actueel_vermogen (current power consumption, kW)

Situation 1 The Sun production is bigger than my consumption
A>B
A-B = (current power consumption, kW)

Situation 2 My consumption is bigger than my sun production
A<B
B-A = (current power consumption, kW)

I have created 2 template sensors
A-B = (current power consumption, kW)
B-A = (current power consumption, kW)

The P1 meter can have “negative” current power consumption when the inventor produces more energy than my house uses.
How can I create 1 sensor for both situations?

1 Like

Hello,

I would like to track my current consumption on my energy dashboard as I have solar panels.

It seems I don’t have the current consumption as a sensor even with the p1 meter. In only have export and import sensors…
Do I need to subscribe to the Home Wizard Energy + service and then link it to my inverter ?

Thanks

You don’t need to subscribe to the energy + service.

Here is my energy panel configuration and the energy display.
The energy usage (consumption and injection) comes from the Homewizard P1 meter,
And the solar production data comes from another integration, that reads the data directly from my solar invertor.

1 Like

Hi, I want to add my HomeWizard P1 meter to HA, but have a weird situation. I get the error ‘device not reachable’ when adding the integration.

When I go to the URL /API/v1/data I get the data (on my phone and the laptop).
When I ping with the ping integration in HA, the ping is not successful.

So other devices can reach the IPaddress, but HA not. I have other integrations working fine.

My router is a tplink deco and everything connects to the guest network.

Any idea’s what the problem is? Thanks!

Can you try to move everything from the guest network to the internal tp link network?
And double check that everything is on the internal network? And then try again?

I don’t have tp link equipment. But generally speaking guest networks have all kind of restrictions. Like a device on a guest network cannot reach stuff which is in the internal network.

So if your HA is on the guest network and the P1 meter is on the internal network then HA is blocked from accessing the P1 meter.

Start with everything in the internal network

Today I connected with an electrician the m-bus module and now we can read the water consumption from the water meter.

The electrician showed me that this data are available to the p1 port, but I guess that the application is not programmed to recognise them .

It would be great if you can add this feature, so that the water consumption can also be identified.

The water meter is connected to M-Bus channel 1. Any chance we can import this with a template sensor by reading the logs?

Can you DM me some details and pictures about your installation, so I can understand what you trying to do?

Can the energy display be used for streaming video ?

No, the hardware is to limited to do that.

I have updated HA to latest version and lost access to my own API readings tp P1 meter while Homewizard in HA still pulls them but as I reported before, without the total_power_import_t2_kwh values.

Was there a change in code somewhere that killed my own API access calls? I am getting error:

cURL error: Recv failure: Connection reset by peer

I had sniffed the traffic from HA to my P1 Meter and can see it calls the /api/v1/data and gets the result as JSON. But when I open this URL in my browser I get the connection reset by peer.

Edit: I made a HA restore to backup from this morning. While it was restoring API calls were working. As soon as it restored I was unable to call the API calls myself.

I installed the Homewizar integration and I get all the necessary entities. Living in Belgium (Brussels) I am missing the energy costs (€/kWh). Can we scrape these values ​​in the form of a json file from the Engie website or elsewhere in order to update my automations?

1 Like

Did the P1 meter API change ?
Since yesterday, I cannot read data from the API anymore, this has always worked up to yesterday, and now the 3 entities are unavailable

rest:
  - authentication: basic
    scan_interval: 5
    resource: http://192.168.0.92/api/v1/telegram
    sensor:
      - name: "Voltage L1"
        value_template: "{{ (value|regex_findall_index('1\\-0\\:32\\.7\\.0\\([0-9.]*')).split('(',1)[-1].strip() }}"
      - name: "Voltage L2"
        value_template: "{{ (value|regex_findall_index('1\\-0\\:52\\.7\\.0\\([0-9.]*')).split('(',1)[-1].strip() }}"
      - name: "Voltage L3"
        value_template: "{{ (value|regex_findall_index('1\\-0\\:72\\.7\\.0\\([0-9.]*')).split('(',1)[-1].strip() }}"

When I try to read the data with curl, I get the response

curl http://192.168.0.92/api/v1/telegram                                                                                       
curl: (56) Recv failure: Verbinding is weggevallen

curl http://192.168.0.92/api/telegram                                                                                          
curl: (56) Recv failure: Verbinding is weggevallen

And when I try it via a browser, I get ERR_CONNECTION_REFUSED

I checked in the Homewizard app, the local api is still activated, I tried to de-activate and activate it a few times, but that does not help.
In HA, via the integration, I still receive data from the P1 meter, and I can also ping it.

With wireshark, I see this, there is no html reply coming back from the P1 meter.

Hi,

I’m replying to an older post I saw regarding tariffs and history data not being available through the local API.

I was just curious if there have been any updates on this? It would be really handy to get this data into Home Assistant for smart energy management.

Thanks for any info!

In the app the readings update every second. When I disable the polling and use an automation that’s triggered every second to update the entities, the automation is triggered perfectly, however, the readings are only updated every 10 or so seconds…

Sorry for disturbing all of you here, as I’m a bit of an outlier not having a HomeWizard meter myself, but: I’m working on a universal EVSE Load Balancer and am looking for someone who has HomeWizard’s P1 meter and can help me doing some E2E testing.

The project is described over here:

And the PR specifically I’m looking to be tested:

Given the limited number of chargers currently supported I’m looking for someone who has one of the supported EV chargers (Zaptec, Easee, few others) and the HomeWizard P1 sensor.

Would be absolutely great of someone can do some testing so I don’t have to buy all the devices :sweat_smile: :pray: