rhanson wrote:Since this original post, you guys have written the new bridge plug-in.
I have a similar scenario as the original post. If someone enters their unique PIN code on the door lock, I would like appropriate actions to occur in the house. The unlocking of the door isn't one of those things, since that's handled by the physical lock itself, obviously. But the lights, etc. could be adjusted, as well as some announcements, etc.
So, if a PIN code is entered on the door lock itself, that can trigger a Trigger within Vera, and that trigger could make an http call to Indigo, I suppose, to cause an Indigo trigger to fire. But other than writing Luup code to fire the Indigo trigger, was there a more elegant solution that you were thinking about when you wrote the Bridge?
I'd look myself, but you've given us an .so for the Bridge
Recently sought some help on a similar project,
here.
Jay's response was similar in that thread, but there is a workaround that allowed me to integrate more detailed Z-Wave lock events than just the lock state into Indigo as triggers -- to achieve the functionality described in the linked thread, above. Essentially, the goal was to have Indigo be aware of when the Z-Wave was locked from the
outside, as opposed to when it is locked from the
inside of the house. This approach might work for you. As a side note, the approach might not be sufficiently secure. I don't know. Also, you mention elegance. This is not elegant.
The workaround was to use the Vera notification features to send an email to an email account I set up specifically to receive Vera notifications. That email's server, then scans the Vera notification message's content. When it sees that the Kitchen deadbolt was locked from the outside, it adds specific language to the subject line then forwards the message to the separate email account that Indigo checks. Indigo has an email trigger based upon the subject line and the sender of the email.
Here's a more detailed description of what I did to have Indigo execute actions when our kitchen dooZ-Wave deadbolt is locked by pressing the lock button on the outside of the door:
[list=bullet]
-In the Vera interface, select the Z-Wave lock you want to monitor for a specific action and click on the settings (wrench icon), then select "Notifications,"
-Add a new Notification, selecting the "Lock Button is Pressed" event from the drop down list (There are several options here, including "A PIN Code is Entered" that will monitor for a specific PIN code's entry on that lock),
-Setup Vera to send the Notifications to an email account that can scan the text of the body, then modify and forward. (Indigo can only look at sender and subject. Vera notifications come from various senders and always say something generic like "Notification" in the subject line),
-In my case, the email server scans for "Code: DL_LOCK_BUTTON Value:1" in the body of the Vera notification along with the ID of the lock, then adds a unique subject line to the email, like "Indigo #$!Z-Wave_Kitchen.Door_OutsideLockKitch1Pressed@22," and sends it to the email account that Indigo monitors every minute.
-Indigo scans for an email from that sender with that subject line, then turns off lights, Sonos, adjusts HVAC, and controls several variables including a DSC Alarm plugin related variable that sends me a text message if any doors are opened while I'm gone.
[/list]
This works fine for my goal, which is related to leaving the house. Vera seems to send the notification right away and Indigo has a maximum 1 minute delay, so there might be up to two minutes delay between when I press the Z-Wave Lock's lock button and when the house changes modes. That probably wouldn't be useful for entry, but there are so many other Indigo sensors for quickly noticing and triggering from entry.
Since Vera can send text message notifications, that might be an alternative, possibly using the Google Voice plugin. Also, the Vera notifications include the name of the notification in the body of the email, so that might be an alternative method for scanning content.
Hope this helps you,
mjc