I'm sorry for my late response - I didn't get mail notification of new post for some reason.
Unfortunately it is not possible natively, but you can put sqlite query to `status` table and check for status of any other device.
You may get inspiration from this function:
----------------------
# get state of device from DB (print it on stdout)
# $1 = device name
get_state () {
sqlite3 "$dbname" << /EOF/
SELECT status FROM status WHERE name = "$1" AND status IS NOT NULL;
/EOF/
}
-----------------------
and then, for example, execute this in run-in
if [ "$(get_state OtherDeviceName)" == "OUT" ] ; then
.........
fi
I hope this will help you.
Paul