Page 1 of 1
question about P1 counter
Posted: Thursday 25 September 2025 17:24
by BartSr
shows current consumed electricity retrieved from grid
that's as expected
but... if solar.power is returned to the grid the returned (Watt) value is just 0 wheras I expected same (negative) value as shown on P1 device.
Any advice?
Bart
Re: question about P1 counter
Posted: Thursday 25 September 2025 18:08
by cvvt
Bart ,
I use in LUA :
local udPower = dz.devices(idxP1data).usageDelivered
local uPower = dz.devices(idxP1data).usage
where idxP1Data is the index of the P1 hardware device.
udPower is the delivered power in the grid
uPower is the used power from the grid

- ud-u.jpg (104.97 KiB) Viewed 85 times
Re: question about P1 counter
Posted: Thursday 25 September 2025 19:24
by BartSr
cvvt, thanks. This makes sense allthough I cannot check the generated power right now. Hopefully tomorrow there's enough required sunpower
Re: question about P1 counter
Posted: Thursday 25 September 2025 19:47
by waltervl
Always check the wiki for device functions of dzvents
https://wiki.domoticz.com/DzVents:_next ... mart_meter
Code: Select all
counterDeliveredToday: Number.
counterToday: Number.
usage1, usage2: Number.
return1, return2: Number.
updateP1(usage1, usage2, return1, return2, cons, prod): Function. Updates the device. Supports command options.
usage: Number.
usageDelivered: Number.
Re: question about P1 counter
Posted: Thursday 25 September 2025 20:49
by BartSr
Walter, I fully agree.
I know there is lot of information in the Wiki.
Maybe it's me but while looking for the information I have seen before I often cannot easily ' refind ' it.
Starting at the wiki domoticz Main Page I expect to easily be able to find the information as per your link. But how to find?
Oke, you know it's in the dzVents part. But that you have to know it. Otherwise it wil take lots of reading before you find it (if you make it). I am missing a logic lookup feature or do I overlook? What's the advised way for looking up information.
HA (which I tried for some time due to curiousity) has excellent lookup functions. Domoticz is an excelent system with pretty very well scripting facilities where HA users might dream of. But the chain is as strong as the weakest shackle. That's how we call it in Dutch. For me the weakest part is the documentation. But again, maybe it's just me. A review of the documentation possibly might give domoticz another boost.
Re: question about P1 counter
Posted: Friday 26 September 2025 20:39
by waltervl
In a webbrowser there is a search function (F3 key) so when on the dzvents wiki page search for P1 and you will soon hit the correct section of the dzvents page.
Re: question about P1 counter
Posted: Saturday 27 September 2025 15:33
by BartSr
Thanks walter but how to find myself via this page (main domoticz wiki) the result you showed me :
https://wiki.domoticz.com/DzVents:_next ... mart_meter
Re: question about P1 counter
Posted: Sunday 28 September 2025 0:14
by waltervl
Just bookmark the dzvents wiki page so you can find it the next time.
If you type dzvents in the search field of the wiki on the right top corner you can find the page. There are numerous links to this page. When in the dzvents wiki page use the browser search to search for the topic or device you want info on.