You can persist custom state across runs through variables.
Variables will be stored on the application database and can model any kind of
state that you want to share across different pieces of automation.
For example, you can set a AT_HOME variable in the previous
procedure.at_home - and, conversely, you may want to unset it if you have a
procedure.outside_home when that procedure is called.