Can SimpliSafe trigger take into account previous state?

Just moved to Home Assistant and am loving it. I’ve been using SimpliSafe as the backbone of all my home automation previously and looking to use the integration from @bachya to do it here as well.

From everything I’ve read, it seems like the triggers can be when alarm is set to home, off, or away. Is it possible to have the action take into account the previous state of the alarm? For example, I’ll want to run different flows for going from home to off versus away to off as opposed to one option for just “to off”.

Yes. All Home Assistant entities belong to a state machine, which means that their state is constantly being recorded. Automations can make use of both “old” and “new” state values.

Take a look at these docs to learn more: https://www.home-assistant.io/docs/automation/trigger/

That is a thing of beauty. Thanks @bachya!

1 Like