If watts > then do something


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?



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.


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?



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