It would be great if in the rules, there was an action that could return a particular sensor or sensors to their previous state. Example: if my front door sensor is tripped, it flashes the light in my living room. But if I had the light on before the sensor was tripped I would like it to return to on, if the light was off before the sensor was tripped it should return to off. It seems it would make sense that you could do this for each sensor individually in the rule or for all sensors. I imagine that a small yes or no box on each action could suffice, it would say something like return to previous state (before the action began) and you could select yes or no or add a full separate action that allows you to do so.