Add timestamp option for input_datetime.set_datetime (#39121)

This commit is contained in:
Phil Bruckner authored and GitHub committed 2020-08-26 11:28:30 +02:00
1 parent 2568932c1c
commit 4ff376cdd6
3 files changed
+96 -41

No files matched your search

@@ -1,18 +1,21 @@
set_datetime:
description: This can be used to dynamically set the date and/or time.
description: This can be used to dynamically set the date and/or time. Use date/time, datetime or timestamp.
fields:
entity_id:
description: Entity id of the input datetime to set the new value.
example: input_datetime.test_date_time
date:
description: The target date the entity should be set to. Do not use with datetime.
description: The target date the entity should be set to.
example: '"2019-04-20"'
time:
description: The target time the entity should be set to. Do not use with datetime.
description: The target time the entity should be set to.
example: '"05:04:20"'
datetime:
description: The target date & time the entity should be set to. Do not use with date or time.
description: The target date & time the entity should be set to.
example: '"2019-04-20 05:04:20"'
timestamp:
description: The target date & time the entity should be set to as expressed by a UNIX timestamp.
example: 1598027400
reload:
description: Reload the input_datetime configuration.