I want to create a rule where a virtual switch will toggle the state of my August lock.
My idea was to make two rules.
First rule:
Rule:
virtual switch on
AND
door locked
Actions for true:
unlock door
The second rule would be the inverse to lock it (switch on AND door unlocked -> lock door).
For some reason these rules are not working. I can trigger the lock using just the virtual switch but adding the second condition causes it to get hung up. Any help on how to correct this would be appreciated!
I'm trying something similar with my schlage - but I'm not sure why I would use something like an if/then?
Wouldn't it be better to have something like:
"When virtual switch = on", lock door
"When virtual switch = off", unlock door?
I was playing with both methods last night, but the if/then would occasionally hang and not transmit...
I'm sorry, but I'm not following you. Are you trying to use a virtual switch to toggle your lock? There is going to be an issue with doing that if you ever unlock the lock from somewhere other than the virtual switch. It's going to get out of sync with the lock. Why are you trying to create the virtual switch to pair with the lock? Is there a reason you can't just unlock the lock directly?
I'm trying to create the virtual switch for 2 reasons
Allow me to lock and unlock it with google home (I'm not concerned about the security risk, they'd have to get through the other door first)
Create a routine at night that insures that the door is locked.
Isn't having the two rules capable of maintaining sync with the lock?
When the virtual switch is 'on', the door locks (or stays locked).
When the virtual switch is 'off', the door unlocks (or stays unlocked)?
You'll end up with a loop where one rule will feed into the other. I would suggest creating 2 virtual switches with the "auto-off" feature turned on. That way you can turn one switch on to lock the lock and the other lock on to unlock the lock. That would require a lot less syncing as the switch will turn itself off.