Page 1 of 1

Energy delivery output high

Posted: Monday 24 October 2022 20:08
by kozzen
i have a P1 smart meter

so i can see when i deliver and use energy, now what i want to do is after 5 min off delivery l1 energy and a certain power to put a output high (http://192.168.0.176/control?cmd=GPIO,22,1) and when i use energy instead off delivery put it low (http://192.168.0.176/control?cmd=GPIO,22,0)

So i can charge a powerbank for example with this energy i have to much.

where and how can i do that ?

Re: Energy delivery output high

Posted: Tuesday 25 October 2022 8:57
by waltervl
This can be done with scripting (lua, dzvents). I think the 5 minutes of delivery will be the most difficult part to script. The rest are simple if then statements.
I have one example but a little complex for a beginner for reference:
viewtopic.php?t=37281