Page 1 of 1
Need a script to turn off device when under specific watt value
Posted: Tuesday 31 December 2019 11:54
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?!
Re: Need a script to turn off device when under specific watt value
Posted: Sunday 05 January 2020 19:19
by wouterlet
What did you try already? What kind of script do you want? Blocky Dzvents, Lua?
Re: Need a script to turn off device when under specific watt value
Posted: Sunday 05 January 2020 22:51
by DutchHans
I have something like that in Lua, be more specific in your question.
Regards,Hans
Re: Need a script to turn off device when under specific watt value
Posted: Monday 06 January 2020 8:11
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?
Re: Need a script to turn off device when under specific watt value
Posted: Monday 06 January 2020 11:04
by Phantom
Re: Need a script to turn off device when under specific watt value
Posted: Tuesday 07 January 2020 8:02
by wouterlet