Hi there,
I have an P1 capable Power Meter installed and am pulling the data successfully via USB cable to my Domo.
The P1 Meter only delivers total values but no current usage. Luckily Domo calculates the usage out of the given data (see first screenshot).
Now my problem: If I pull the data via API, I only get Zeros for Usage and UsageDeliv:
(The Board forced me to cut some values, full API call and result are in the attachment
curl -ks ...type=devices&rid=1
{
[...]
"result" :
[
{
"BatteryLevel" : 255,
"Counter" : "6711",
"CounterDeliv" : "5702",
"CounterDelivToday" : "0kWh",
"CounterToday" : "2kWh",
"CustomImage" : 0,
"Data" : "6711786;0;5702780;0;0;0",
"Description" : "",
"Favorite" : 1,
"HardwareDisabled" : false,
"HardwareID" : 2,
"HardwareName" : "P1 Counter",
"HardwareType" : "P1 Smart Meter USB",
"HardwareTypeVal" : 4,
"HaveTimeout" : false,
"ID" : "0001",
"LastUpdate" : "2023-06-23 19:15:36",
"Name" : "Power",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" :
[
0
],
"Protected" : false,
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "Energy",
"SwitchTypeVal" : 0,
"Timers" : "false",
"Type" : "P1 Smart Meter",
"TypeImg" : "counter",
"Unit" : 1,
"Usage" : "0 Watt",
"UsageDeliv" : "0 Watt",
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "1"
}
],
"status" : "OK",
"title" : "Devices"
}
Any chance of getting the calculated usage values via API?
Background: I want to increase the hot water temp in my buffer tank when delivering to much energy to the network.
Normal cloudy day: keep it at 47°C something
Sunny day: increase it to 57°C something
Energy production comes from a PV on the roof, hot water and heating is supplied by a heat pump. The heat pump is controlled by a BACnet capable device and I already managed to get data from Domo to it. So if the normal PV battery is fully loaded and the energy starts to go to the public power network, why not use the hot water tank as second "battery".
Thanks for your help
Getting Calculated P1 Power Meter Values per API
Moderator: leecollings
-
- Posts: 1
- Joined: Friday 23 June 2023 19:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Getting Calculated P1 Power Meter Values per API
- Attachments
-
- API Call.txt
- API Call and Results
- (2.6 KiB) Downloaded 31 times
-
- Power Meter in Domo
- Screenshot 2023-06-23 191315.png (73.8 KiB) Viewed 743 times
Who is online
Users browsing this forum: No registered users and 1 guest