I have a Schlage smart door lock working with my VeraEdge in our vacation house. Every time someone enters the house, I want to trigger (or restart the timer on) a hot water recirc pump to run for 24 hours. The recirc pump will be plugged in to a smart switch.
Can someone point me in the right direction for guidance on how to make this work?
it’s not easy if you’re not comfortable with code. you’ll need to monitor the door status and write the last opened date in a custom variable (I don’t know if it’s already written automatically, check for something like LastTripped or similar in Advanced->Variables under the Device properties) and then switch your relay on. Then you’ll need to check for this variable every x minutes (I suggest 5 to 10, to be less invasive) and do your math to decide if it’s time to switch the relay off.
Maybe you can accomplish this with DelayLight plugin. it will survive to luup reload and do most of the things you’ll need automatically. I’m not sure if you can trigger it directly with a Door Sensor, but you’d trigger it from a scene for sure. rigpapa is very responsive, give it a try: http://forum.micasaverde.com/index.php?topic=60498.0
I’ve done exactly that at my holiday (vacation) home:
[ol][li]Unlocking the door triggers a scene[/li]
[li]Scene triggers DelayLight[/li]
[li]DelayLight turns on an Aeotec SmartSwitch which powers a bunch of appliances[/li]
[li]DelayLight configured to time for 36 hours - which is reset each time it is re-triggered[/li][/ol]
Thus the end result is that power is cut within that home when I’m not there, but as long as we are there power to the appliances turns on and stays on so long as we are coming and going within a 36 hour time frame - after which it all turns off again.