HomeWizard Wi-Fi P1 Meter state_classes

Hey everyone,

Build: Home Assistant 2022.10.4

I might not understand this a 100%, so all help is much appreciated.

I bought P1 meter a which works great:

HomeWizard HWE-P1 Firmware: 3.02 (Model LGF5E360)

However, im unable to figure out how to flip the settings, or make a custom sensor, from this:

P1 Active power
state_class: measurement
unit_of_measurement: W
device_class: power

to somthing like this:

From a shelly smart plug:
state_class: total_increasing
unit_of_measurement: kWh
device_class: energy

The main issue i am unable to add the total consumption from my power meter to the Energy Dashbord (Add Consumption). The entity will not list in here.

The dev tool statistics looks like this.

I haven´t made any exclusions to the recorder, not that i am aware off atleast.
There most be a way to make a custom sensor so it can be included.

Anyone have some ideas?

Why would you? :slight_smile:

Just use total_power_import_t1, total_power_import_t2, these work natively with the Energy Dashboard.

Hey Unsigus,

Thank you for the reply.

Not sure i follow, the sensors you mention is not available in/on my P1 Meter:

That is weird, can you share your diagnostic file?

Hey Unsigus,

For sure! :slight_smile:

I see what you mean, the total_power_import_t1_kwh is there, but it´s “null”.
That´s weird, the sensors should be there. Might it be a compatibility issue with my power meter?
Which model and firmware are you running on?

{
“home_assistant”: {
“installation_type”: “Home Assistant OS”,
“version”: “2022.10.4”,
“dev”: false,
“hassio”: true,
“virtualenv”: false,
“python_version”: “3.10.5”,
“docker”: true,
“arch”: “aarch64”,
“timezone”: “Europe/Copenhagen”,
“os_name”: “Linux”,
“os_version”: “5.15.61-v8”,
“supervisor”: “2022.10.0”,
“host_os”: “Home Assistant OS 9.2”,
“docker_version”: “20.10.17”,
“chassis”: “embedded”,
“run_as_root”: true
},
“custom_components”: {
“hacs”: {
“version”: “1.28.2”,
“requirements”: [
“aiogithubapi>=22.2.4”
]
},
“ble_monitor”: {
“version”: “10.5.3”,
“requirements”: [
“pycryptodomex>=3.14.1”,
“janus>=1.0.0”,
“aioblescan>=0.2.13”,
“btsocket>=0.2.0”,
“pyric>=0.1.6.3”
]
},
“energidataservice”: {
“version”: “0.4.2”,
“requirements”: [
“CurrencyConverter==0.16.13”
]
}
},
“integration_manifest”: {
“domain”: “homewizard”,
“name”: “HomeWizard Energy”,
“documentation”: “HomeWizard Energy - Home Assistant”,
“codeowners”: [
“@DCSBL”
],
“dependencies”: [],
“requirements”: [
“python-homewizard-energy==1.1.0”
],
“zeroconf”: [
“_hwenergy._tcp.local.”
],
“config_flow”: true,
“iot_class”: “local_polling”,
“loggers”: [
“homewizard_energy”
],
“is_built_in”: true
},
“data”: {
“entry”: {
“ip_address”: “REDACTED”
},
“data”: {
“device”: {
“product_name”: “P1 meter”,
“product_type”: “HWE-P1”,
“serial”: “REDACTED”,
“api_version”: “v1”,
“firmware_version”: “3.02”
},
“data”: {
“smr_version”: 22,
“meter_model”: “LGF5E360”,
“wifi_ssid”: “REDACTED”,
“wifi_strength”: 26,
“total_power_import_t1_kwh”: null,
“total_power_import_t2_kwh”: null,
“total_power_export_t1_kwh”: null,
“total_power_export_t2_kwh”: null,
“active_power_w”: 1160,
“active_power_l1_w”: 306,
“active_power_l2_w”: 766,
“active_power_l3_w”: 87,
“total_gas_m3”: null,
“gas_timestamp”: null,
“active_liter_lpm”: null,
“total_liter_m3”: null
},
“state”: null
}
}
}

Its connected to a Landis/Gyr E360 power meter.

Maybe the smart meter does not send the expected data. We have a beta-firmware available that maybe helps. I’ve send you a DM.

All right, the beta should be installed. Try to reload the HomeWizard integration. Maybe you have to enable some disabled entities in the device settings.

Hey Unsigus,

You are the man!!

The sensors are now showing up after you installed the beta software.

Since you are the king of these devices, i have crawled the net and saw somewhere that the P1 Meter can receive power directly from the power meter. Right now it is powered from a micro USB cable and it is not a pretty installation. Can this be modifed in the software so the Landis/Gyr can power the device? Or do i have to open the P1 meter device and change some wires?

🫶 thank you for the feedback, enjoy!

The beta should support all smart meters that can supply enough power, just try :wink:

It works like a charm! You are my hero!!

I have HomeWizard P1 meter connected to Aidon 7000 series power meter in Elenia electricity network, Finland. I have the same problem as AtomArne: P1 meter is returning only partial data on REST API:

      "data": {
        "smr_version": 22,
        "meter_model": "ADN9 7534",
        "wifi_ssid": "**REDACTED**",
        "wifi_strength": 36,
        "total_power_import_t1_kwh": null,
        "total_power_import_t2_kwh": null,
        "total_power_export_t1_kwh": null,
        "total_power_export_t2_kwh": null,
        "active_power_w": 14506,
        "active_power_l1_w": 5945,
        "active_power_l2_w": 5369,
        "active_power_l3_w": 3178,
        "total_gas_m3": null,
        "gas_timestamp": null,
        "active_liter_lpm": null,
        "total_liter_m3": null
      },

It would be really nice to get also these parameters working:

        "total_power_import_t1_kwh": null,
        "total_power_import_t2_kwh": null,
        "total_power_export_t1_kwh": null,
        "total_power_export_t2_kwh": null,

If the beta sw can solve this, I’m more than happy.

Link to Aidon www: https://www.aidon.com/our-solutions/#smart-energy-service-devices

You need a device with beta-firmware indeed. Contact HomeWizard support to install that for you. You may reference this topic.

Thanks. I will contact them.

I got the new SW version to my HomeWizard and now it works like a charm.
Thank you @DCSBL :grinning:

1 Like