I’m looking for a virtual door sensor. The Tripped/Untripped value will be set by a luup scene.
Is there anything like this available?
I’m looking for a virtual door sensor. The Tripped/Untripped value will be set by a luup scene.
Is there anything like this available?
You should be able to achieve this simply by creating a device with Upnp Device Filename = D_DoorSensor1.xml provided you don’t need the Arm/Bypass buttons to work. If you want the buttons to work, you would need to create an implementation file to provide the SetArmed action.
I tried to change the virtual motion implementation, but it failed.
I set mines in my code in case people try changing it.
Try the attached. I haven’t.
Thanks, this helps a lot.
However…
Device not ready
So you uploaded I_VDoor.xml to Vera, changed impl_file to I_VDoor.xml, saved and restarted? Any error messages on the blue panel? If so, check LuaUPnP.log for an error message about the implementation. It would usually be early in the restart sequence.
It works! Thanks!
It was a simple typo.
Is it normal that the sensor goes to untrip after a reload?
How can I avoid this?
[quote=“dawiinci, post:8, topic:180032”]Is it normal that the sensor goes to untrip after a reload?
How can I avoid this?[/quote]
The attached version of I_VDoor.xm will not do this.
Edit: 09/03/2014 13:12 Fixed typo in file.
Thanks a lot!
Lua Engine failed to load
There was an error in the code, the second “=” was missing:
if trip =[b][glow=red,2,300]=[/glow][/b] nil then
[quote=“dawiinci, post:11, topic:180032”]Lua Engine failed to load
There was an error in the code, the second “=” was missing:
if trip =[b][glow=red,2,300]=[/glow][/b] nil then[/quote]
I’m just making sure you stay alert. ;D
It doesnt work anymore in scenes. Only in Lua Test.
Any ideas?
[quote=“dawiinci, post:13, topic:180032”]It doesnt work anymore in scenes. Only in Lua Test.
Any ideas?[/quote]
I do have ideas. Many and frequently.
If you want help, you will need to explain your problem in a lot more detail.
Looks like it is because of the other code. It worked before though.
local http = require("socket.http")
http.TIMEOUT = 1
local status, result = http.request("http://192.168.1.170/arduino/command/5/1")
if status == ""
then
luup.variable_set("urn:micasaverde-com:serviceId:SecuritySensor1","Tripped", "1", 297)
return true
else
luup.call_action("urn:intvelt-com:serviceId:HWPush1", "SendMessage", {Msg = 'Failed!'}, 274)
return false
end
Looks like the old forum at http://forum.micasaverde.com/ is no longer hosted / UP.
When Ezlo migrated the old forum to this new one the attached files in the threads were NOT also migrated.
There is a file in this old thread that I wanted to download.
I guess all these files are now lost ?
Thanks
Hello @cw-kid
Please share with us the link or the file name or subject and we will help you to search it.
Regards,
Jonathan Botero.
Customer Care Tier 1 Support.
Hi
The file was original attached to this post here in this thread titled “Virtual Door Sensor” but on the old forum at http://forum.micasaverde.com/
I don’t know the URL to this thread on the old forum.
According to the post above the file was named I_VDoor.xml
however it might not have been named that on the original post on the old forum, as the file may have been zipped up etc.
So the old forum has gone forever now ?
Hello @cw-kid ,
Unfortunately, we have searched everywhere, but the file is unavailable.
We will keep looking for a copy and will let you know as soon as possible if we found one, thank you for your patience and understanding.
Yeah thanks but the real question is the old forum gone and down for good?
Ask Sorin…
Best Home Automation shopping experience. Shop at Ezlo!
© 2024 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules