Hi All,
Because i don?t have any experience with LUA and LUUP i hope someone can help me?
I have 5 motion sensors and they work fine, but in some cases, mainly when the battery is (almost) empty, they stay on the ?tripped? status.
Because this influence my Alarm and light automation, I would like to have the ability to reset all the tripped statuses back to ?0? (so I can run this scene before change to ?Away or Night).
I did found some code in the forum, but I can?t find this topic anymore… Based on what I found, I create a scene with the following LUA code, but this isn?t working:
luup.variable_set (urn:micasaverde-com:serviceId:SecuritySensor1, “Tripped”, 0, 139
luup.variable_set (urn:micasaverde-com:serviceId:SecuritySensor1, “Tripped”, 0, 146
luup.variable_set (urn:micasaverde-com:serviceId:SecuritySensor1, “Tripped”, 0, 153
luup.variable_set (urn:micasaverde-com:serviceId:SecuritySensor1, “Tripped”, 0, 136
luup.variable_set (urn:micasaverde-com:serviceId:SecuritySensor1, “Tripped”, 0, 133
I hope one of you can tell me how I can reset the tripped status of my 5 devices.
Thanks