Date: add state (#34685)

* Date: add state

* Update source/_integrations/date.markdown
This commit is contained in:
c0ffeeca7 2024-09-11 15:32:09 +02:00 committed by GitHub
parent 672fd7865a
commit 4cc02a6cfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 4 deletions

View File

@ -17,6 +17,15 @@ The **Date** {% term integration %} is built for the controlling and monitoring
If you are looking for a way to create a similar entity, please take a look at the [Date/Time helper](/integrations/input_datetime).
## The state of a date entity
The state of a date entity is the actual date value.
<p class='img'>
<img src='/images/integrations/date/state_date.png' alt='Screenshot showing the state of a date in the developer tools' />
Screenshot showing the state of a date in the developer tools. In the example shown, the state is January 1, 2020; in the format YYYY-MM-DD.
</p>
## Actions
### Date actions
@ -27,7 +36,7 @@ Available {% term actions %}: `date.set_value`
Set a new value for the date {% term entity %}.
| Data attribute | Optional | Description |
| ---------------------- | -------- | ----------- |
| `entity_id` | no | String or list of strings that point at `entity_id`'s of dates to control.
| `date` | no | New date value to set.
| Data attribute | Optional | Description |
| -------------- | -------- | -------------------------------------------------------------------------- |
| `entity_id` | no | String or list of strings that point at `entity_id`'s of dates to control. |
| `date` | no | New date value to set. |

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB