Hi,
I have a virtual switch (contact sensor) that I use to control my EZVIZ cameras within Smartthings with the additional IFTTT routines. It works like that:
- If I open the virtual switch, the IFTTT routine arm the cameras
- If I close the virtual switch, the IFTTT routine disarm the cameras.
Simple. But there is one problem. It is only synced one way. So if for some reason I change the cameras state inside the EZVIZ app (it is also used by my wife so the probability that somebody will do it is high) not in Smartthings, those changes aren’t reflected in Smartthings. So the virtual switch do not change its state. You can imagine that causes a problem because from that moment my virtual switch won’t work as it suppose to (I will open it thinking it is closed although it is not, so it won’t arm the cameras).
Is there a way to make a routine in Smartthings to always check first what is the state of the switch?
So if I’m closing the switch, first it checks if it’s open. If not, it opens it first and than closes it. That would solve the problem.