Hello. Help set the device found by the controller.I do not quite understand how I make one device control another. help steps to configure the device with each other.
@halo6 I use Domoticz instead of Vera, but the general idea should work.
Add another child sensor to your parking sensor that is a binary switch. Maybe S_DOOR, V_TRIPPED or S_BINARY, V_STATUS. That switch gets presented to your controller. Then have the parking sensor listen for a message to that child ID and work normally if on or do nothing (but listen for messages) when off.
In Vera, write a small script that turns on the new parking sensor switch when the garage door is open, and turns it back off again when the garage door is closed.
Hi @tamorgen - sorry for the reply to your old post (ignore if you've solve this already - or perhaps it's valuable still).
Have you looked at the Reactor Plugin for Vera? (it's on Github too - by Patrick Rigney aka Rigpapa from the Vera Forums). I believe it runs on OpenLUUP as well if you were external to Vera.
There are example use case videos on Youtube for it.
It is a logic engine for LUUP - (if/then/else/and/or/not/timers). You can react to any variable or device state. (ie if door not locked, lock it, then unlock it). You can chain actions or conditions together as well.
This was probably done in the past with PLEG, but I was never fond of PLEG so I wrote some conditional stuff directly in LUA, but since Reactor came along - it's so powerful, lightweight and a no brainer to use.
I'm probably going to write some battery monitoring and door state monitoring with MySensors with it shortly.
/Mark