Integrations

Input datetime

Spook adds actions to create and delete input datetime helpers in Home Assistant from your automations and scripts, without a trip to the helper settings.

The input datetime helper in Home Assistant holds a date, a time, or both, that can be set from a dashboard or from automations, and used as a trigger. An alarm clock you can put on a dashboard, for example.

Spook adds actions to the input datetime integration to create and delete these helpers from automations and scripts.

Actions

Spook adds two actions for input datetimes. You find them wherever you add an action, marked with a 👻.

Create an input datetime

Creates a new input datetime helper, the same as adding one on the helpers page.

Some moments only matter for a while. The time the guests are due, the day the holiday ends, the moment a script should check back. Made by hand, that helper stays on the helpers page long after. Made with this action, the script makes it when it needs it, and deletes it when it is done.

How to use it

  1. Open the automation or script that should make the helper, and select Add action.
  2. Search for create an input datetime, and select Input datetime: Create an input datetime 👻.
  3. Fill in Name, like Wake up.
  4. Turn on Has a date, Has a time, or both. At least one has to be on.
  5. Optionally, set Input datetime entity ID to pick the entity ID yourself, Initial value, and Icon.
  6. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once.

The Actions tool with Create an input datetime 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

Delete an input datetime

Deletes one or more input datetime helpers.

The other half of Create an input datetime: the script that made a helper cleans it up again. It works on any input datetime made in the UI as well, disabled ones included.

How to use it

  1. Open the automation or script that should do the cleaning up, and select Add action.
  2. Search for delete an input datetime, and select Input datetime: Delete an input datetime 👻.
  3. Under Entity ID, choose the input datetimes to delete.
  4. Select Save.

Just want to see it work? Try this action opens it in your Home Assistant, ready to run once. Mind that it really deletes.

The Actions tool with Delete an input datetime 👻 picked and filled in with an example.
What Try this action opens, filled in with an example.

Use cases

What people use this for:

  • Let a script make the date or time it needs, and clean it up again afterwards, so the helpers page only has input datetimes you actually use.

Missing something here?

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