If watts > then do something

#1

Hi,
I’ve vera plus with neo coolcam smart wall plug that report the watts usage.
how can i write an luup code that is watts is greater then x then run some code?

thx

#2

Create a scene with a trigger, selecting the device in question and then the condition “energy usage goes above”. Then add the code you want to run to the scene Lua code.

#3

i already done this but the problem with this scene is that if i trigger it manually it runs when it shouldn’t run. so i want to test it with full lua code.
can someone help with the code please?

thx

#4

Not sure I understand… scenes are supposed to run when you trigger them manually.