Need a script to turn off device when under specific watt value

Moderator: leecollings

Post Reply
joostvanmeurs
Posts: 2
Joined: Wednesday 30 January 2019 22:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Need a script to turn off device when under specific watt value

Post by joostvanmeurs »

I need a script (blockly preferred) to turn off a wall plug when the device connected is under a specific watt value for 30 minutes. The device is standby when using 5 watt, when it is active it's using more than 700 watt. So when it's reaching 700 watt within 30 minutes the 30 minutes counter should be cleared, and when it's not reaching this value again within 30 minutes it should turn off.

Can someone please help me?!
wouterlet
Posts: 109
Joined: Tuesday 02 October 2018 20:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Need a script to turn off device when under specific watt value

Post by wouterlet »

What did you try already? What kind of script do you want? Blocky Dzvents, Lua?
DutchHans
Posts: 230
Joined: Friday 03 April 2015 20:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Germany (near dutch border)
Contact:

Re: Need a script to turn off device when under specific watt value

Post by DutchHans »

I have something like that in Lua, be more specific in your question.

Regards,Hans
freijn
Posts: 536
Joined: Friday 23 December 2016 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: Netherlands Purmerend
Contact:

Re: Need a script to turn off device when under specific watt value

Post by freijn »

Hans, I think you could use this as a start ? (Garage Door ( blocky won't be able doing this I believe ))

https://www.domoticz.com/wiki/Event_script_examples

test on how to retrieve the consumed power, then test how to switch off.
And most of all, how will it be on again?
User avatar
Phantom
Posts: 87
Joined: Saturday 31 December 2016 14:47
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11652
Location: The Netherlands
Contact:

Re: Need a script to turn off device when under specific watt value

Post by Phantom »

Hi, maybe this will help you getting started: https://www.domoticz.com/forum/viewtopi ... 72#p164572
wouterlet
Posts: 109
Joined: Tuesday 02 October 2018 20:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Need a script to turn off device when under specific watt value

Post by wouterlet »

Sorry I see you prefer blocky, maybe this one helps?
https://www.domoticz.com/forum/viewtopi ... 96#p225737
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest