Automation actions
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:
- Run runs the automation, as if one of its triggers fired. The same as
automation.run. - While the automation is on: snooze it for a while. The same as
automation.snooze. - While the automation is off: turn it on for a while. The same as
automation.turn_on_for.
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
- Open the dashboard, and edit it.
- Edit the tile card of an automation, or add one.
- Open Features, select Add feature, and select Automation actions (Spook).
- 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.
| Option | What it does |
|---|---|
| Durations | The buttons to snooze it, or turn it on, for. One button each, shortest first. |
| Trigger to run by | The 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 conditions | Run 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.
Overview
Spook brings card features to your Home Assistant dashboards. A preview for now, switched on under Labs. How to switch it on, and what you get.
Action buttons
A card feature for any tile, area, thermostat or humidifier card. A row of buttons, each with an icon, a label and any action, and an "are you sure?" first when you want one.
