diff --git a/atom.xml b/atom.xml index 717bdca117..1e867ba1ca 100644 --- a/atom.xml +++ b/atom.xml @@ -4,7 +4,7 @@
Configuration variables:
-False
.Pick an icon that you can find on materialdesignicons.com to use for your input and prefix the name with mdi:
. For example mdi:car
, mdi:ambulance
, or mdi:motorbike
.
Here’s an example of an automation using the above input_boolean. This action will only occur if the switch is on.
+(map)(Required)Alias for the input. Multiple entries are allowed.
+(String)(Optional)Friendly name of the input.
+(boolean)(Optional)Initial value when Home Assistant starts.
+Default value: false
+(icon)(Optional)Icon to display for the component. Refer to the Customizing devices page for possible values.
+This component supports the restore_state
function which restores the state after Home Assistant has started to the value it has been before Home Assistant stopped. To use this feature please make sure that the recorder
component is enabled and your entity does not have a value set for initial
. Additional information can be found in the Restore state section of the recorder
component documentation.
Here’s an example of an automation using the above input_boolean
. This action will only occur if the switch is on.
automation:
alias: Arriving home
trigger:
diff --git a/components/input_datetime/index.html b/components/input_datetime/index.html
index 4d9a7e8333..208fc1f7b8 100644
--- a/components/input_datetime/index.html
+++ b/components/input_datetime/index.html
@@ -92,25 +92,72 @@
has_time: true
Configuration variables:
-true
if this input should have time. Defaults to false
.true
if this input should have a date. Defaults to false
.false
this must be just a date (e.g.: ‘1970-01-01’). If has_date is false
this must be just a time (e.g.: ‘15:16’).A datetime input entity’s state exports several attributes that can be useful in automations and templates:
-true
if this entity has time.true
if this entity has a date.(map)(Required)Alias for the datetime input. Multiple entries are allowed.
+(String)(Optional)Friendly name of the datetime input.
+(Boolean)(Optional)Set to true
if the input should have a time. At least one has_time
or has_date
must be defined.
Default value: false
+(Boolean)(Optional)Set to true
if the input should have a date. At least one has_time
or has_date
must be defined.
Default value: false
+(datetime | time | date)(Optional)Set the initial value of this input, depending on has_time
and has_date
.
Default value: 1970-01-01 00:00 | 1970-01-01 | 00:00
+A datetime input entity’s state exports several attributes that can be useful in automations and templates.
+Attribute | +Description | +
---|---|
has_time |
+ true if this entity has a time. |
+
has_date |
+ true if this entity has a date. |
+
year month day |
+ The year, month and day of the date. (only availabel if has_date: true ) |
+
hour minute second |
+ The hour, minute and second of the time. (only available if has_time: true ) |
+
timestamp |
+ A timestamp representing the time held in the input. If has_date: true , this is the UNIX timestamp of the date / time held by the input. Otherwise if only has_time: true , this is the number of seconds since midnight representing the time held by the input. |
+
This component supports the restore_state
function which restores the state after Home Assistant has started to the value it has been before Home Assistant stopped. To use this feature please make sure that the recorder
component is enabled and your entity does not have a value set for initial
. Additional information can be found in the Restore state section of the recorder
component documentation.