mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 22:06:50 +00:00
Add now and utcnow
This commit is contained in:
parent
1666ba7535
commit
20a7123a77
@ -64,6 +64,8 @@ Home Assistant adds extensions to allow templates to access all of the current s
|
|||||||
- `is_state_attr('device_tracker.paulus', 'battery', 40)` will test if the given entity is specified state.
|
- `is_state_attr('device_tracker.paulus', 'battery', 40)` will test if the given entity is specified state.
|
||||||
- Filter `multiply(x)` will convert the input to a number and multiply it with `x`
|
- Filter `multiply(x)` will convert the input to a number and multiply it with `x`
|
||||||
- Filter `round(x)` will convert the input to a number and round it to `x` decimals.
|
- Filter `round(x)` will convert the input to a number and round it to `x` decimals.
|
||||||
|
- `now` will be rendered as current time in your time zone.
|
||||||
|
- `utcnow` will be rendered as UTC time.
|
||||||
|
|
||||||
#### {% linkable_title Examples %}
|
#### {% linkable_title Examples %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user