Integrations

Mobile App

Spook adds an action that asks a question on your phones, waits for somebody to tap an answer, and hands that answer to your automation.

The Mobile App integration is how Home Assistant talks to its companion apps for Android and iOS. Among other things, it sends notifications to your phones and tablets.

A notification can carry buttons. Home Assistant tells you when somebody taps one, but waiting for that tap takes a blueprint, or a wait_for_trigger on an event with IDs you make up yourself. Spook adds an action that asks the question, waits for the answer, and hands it back in one go.

Actions

Spook adds one action for the companion apps. You find it wherever you add an action, marked with a 👻.

Ask

Sends a notification with buttons to one or more phones, waits for somebody to tap one, and answers with what they tapped.

The run waits right there, until somebody answers or the time is up. The first tap counts, from whichever phone. The question is then taken away from the other phones, so nobody answers a question that was already answered. When the time is up, it is taken away from every phone, and the answer is empty. That is not an error: the run goes on, and you decide what nobody answering means.

Stop the automation while it waits, or let a mode: restart automation start over, and the question is taken away from every phone as well.

You get one to three answers. Android shows three buttons at most and quietly leaves out the rest, so Spook holds every phone to three. A question asks the same on every phone.

How to use it

  1. Open the automation or script that should ask, and select Add action.
  2. Search for ask, and select Mobile App: Ask 👻.
  3. Under Devices, choose the phones to ask.
  4. Fill in the Message, and a Title if you like.
  5. Under Answers, add the buttons, like Close it and Leave it.
  6. Set Timeout to how long to wait for an answer. It is ten minutes if you leave it.
  7. Under Response variable, give the answer a name, like reply. The steps after this one can use it.
  8. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once. The answer shows up below the action once somebody taps.

Missing something here?

An action, an entity or a repair this integration should have? Say so. Stuck, or found a bug? There is help.