Dashboards

Automation actions

A card feature for the tile card of an automation. Run it, snooze it for a while, or turn it on for a while, with one button.

Automation actions is a card feature for the tile card of an automation. A row of buttons under the tile, for the actions Spook adds to automations:

Snoozing only makes sense for an automation that is on, and turning one on for a while only for one that is off. So the buttons follow the automation: you see the ones that do something.

It needs Spook on your dashboards switched on.

Back at 14:30

A snoozed automation says when it comes back: Back at 14:30. One turned on for a while says until when: On until 14:30. That takes the place of the duration buttons, until the time is up or somebody turns the automation back by hand. Run stays.

The time is written the way your profile says: your language, 12 or 24 hours, and your time zone or the one of Home Assistant. A time that is not today has its date with it.

It follows along as it happens. Snooze an automation from the tile, from an automation, or from anywhere else, and the time shows up without a reload. Turn the automation back on, and it goes again. A restart of Home Assistant changes nothing: Spook writes a snooze down, and the time is still there after.

Everybody who sees the dashboard sees the times, not only administrators. A user who may only see some entities sees the times of those automations, and no others.

Adding it to a tile

  1. Open the dashboard, and edit it.
  2. Edit the tile card of an automation, or add one.
  3. Open Features, select Add feature, and select Automation actions (Spook).
  4. Select Save.

It starts with three durations: an hour, four hours and a day.

Options

Select the pencil next to the feature to change it.

OptionWhat it does
DurationsThe buttons to snooze it, or turn it on, for. One button each, shortest first.
Trigger to run byThe trigger ID that Run runs the automation by. Needed when the automation has more than one trigger: Spook does not guess which one you meant.
Skip the conditionsRun runs the actions even when the conditions say no.

A trigger without an ID of its own goes by its position, starting at 0.

In YAML

type: tile
entity: automation.porch_lights
features:
  - type: custom:spook-automation-actions-feature
    durations:
      - "00:30:00"
      - "02:00:00"
      - "08:00:00"
    trigger: sunset
    skip_condition: false

A duration is written HH:MM:SS, the way Home Assistant writes one everywhere.

When a button says no

Pressed Run on an automation with more than one trigger, and no Trigger to run by? The message says which triggers it has. Pick one under Trigger to run by.

An automation that is unavailable has its buttons greyed out.