HomeWizard P1 Wifi into Domoticz
Posted: Sunday 05 September 2021 11:10
Hello,
I have a Homewizard P1 Dongle, connected via Wifi to my LAN. When I access the device via the browser, I get something like this:
http://192.168.1.169/api/v1/data
{"smr_version":50,"meter_model":"Sagemcom XS210 ESMR 5.0","wifi_ssid":"xxx","wifi_strength":68,"total_power_import_t1_kwh":6566.39,"total_power_import_t2_kwh":5230.154,"total_power_export_t1_kwh":106.717,"total_power_export_t2_kwh":228.224,"active_power_w":-1616,"active_power_l1_w":-1616,"active_power_l2_w":null,"active_power_l3_w":null,"total_gas_m3":2154.48,"gas_timestamp":210905105000}
I'd like to get this data into Domoticz (running in Docker on a synology), but I'm not entire sure how this is done. I tried adding the "P1 Smart Meter with LAN interface" (which sounds exactly like what I want) and pointed it to the above IP on port 80. In the log I see the following entries, but when I look under Setup/Devices, there is no entry related to the P1 Lan Device - which is unexpected.
2021-09-05 02:17:19.780 Status: P1MeterTCP: attempt connect to 192.168.1.169:80
...
2021-09-05 02:17:19.787 Status: P1MeterTCP: connected to: 192.168.1.169:80
The other approach I've seen mentioned is to use a "Dummy Virtual Sensor" under Setup/Hardware and then add "Gas" and "P1 Smart Meter Electric" as sensor. These two then do appear under Setup/Devices, but don't report any data (which is kind of obvious, since I didn't find a way to point them to the correct IP to read their data from).
What is the correct way to do this, could someone give some pointers?
Thanks!
I have a Homewizard P1 Dongle, connected via Wifi to my LAN. When I access the device via the browser, I get something like this:
http://192.168.1.169/api/v1/data
{"smr_version":50,"meter_model":"Sagemcom XS210 ESMR 5.0","wifi_ssid":"xxx","wifi_strength":68,"total_power_import_t1_kwh":6566.39,"total_power_import_t2_kwh":5230.154,"total_power_export_t1_kwh":106.717,"total_power_export_t2_kwh":228.224,"active_power_w":-1616,"active_power_l1_w":-1616,"active_power_l2_w":null,"active_power_l3_w":null,"total_gas_m3":2154.48,"gas_timestamp":210905105000}
I'd like to get this data into Domoticz (running in Docker on a synology), but I'm not entire sure how this is done. I tried adding the "P1 Smart Meter with LAN interface" (which sounds exactly like what I want) and pointed it to the above IP on port 80. In the log I see the following entries, but when I look under Setup/Devices, there is no entry related to the P1 Lan Device - which is unexpected.
2021-09-05 02:17:19.780 Status: P1MeterTCP: attempt connect to 192.168.1.169:80
...
2021-09-05 02:17:19.787 Status: P1MeterTCP: connected to: 192.168.1.169:80
The other approach I've seen mentioned is to use a "Dummy Virtual Sensor" under Setup/Hardware and then add "Gas" and "P1 Smart Meter Electric" as sensor. These two then do appear under Setup/Devices, but don't report any data (which is kind of obvious, since I didn't find a way to point them to the correct IP to read their data from).
What is the correct way to do this, could someone give some pointers?
Thanks!