It would be nice if variables were automatically created for the current state of Devices. e.g.
Device Name: Safe
something like %Safe.contact%
Then we could use that variable in Rules without first creating a local variable and then copying the sensor value to the local variable.