I’m trying to set off a device within a block of code.
if( lu_GetVariable("urn:schemas-micasaverde-com:device:MotionSensor:1","Tripped",18)=="1") then
luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget", {newTargetValue = "1"}, 36)
end
The call to the device works. (Call to device 36).
I believe the problem is that I can’t get the IF to run the code.
I’ve tried all sorts of values for the send part of the evaluation… “0”, “1”, “dkjslkdjlsjlj”.