Set an input_datetime value
helpers_set_input_datetimeWrite a date, time, or combined datetime to a Home Assistant input_datetime helper; leave date or time unchanged by omitting those parameters.
Instructions
Set an input_datetime helper's date, time or combined datetime value.
Calls input_datetime.set_datetime over HTTP with whichever of date,
time, datetime are given; passing none of them still calls the
service with only entity_id.
Use when: writing a specific date/time to an input_datetime helper. Returns: the list of states changed by the call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date to set, formatted YYYY-MM-DD. Omit to leave the date unchanged. | |
| time | No | Time to set, formatted HH:MM:SS. Omit to leave the time unchanged. | |
| datetime | No | Combined date and time, formatted 'YYYY-MM-DD HH:MM:SS'. Takes precedence over date/time when given. | |
| entity_id | Yes | Full input_datetime entity ID to set, e.g. 'input_datetime.reminder'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |