Energy delivery output high

Moderator: leecollings

Post Reply
kozzen
Posts: 13
Joined: Saturday 27 February 2021 7:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Energy delivery output high

Post 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 ?
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Energy delivery output high

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest