From acbcf6f426b1ba95448ecb3397acf2ca672b4cee Mon Sep 17 00:00:00 2001 From: David Date: Tue, 4 Oct 2016 16:36:24 +0200 Subject: [PATCH] Update templating.markdown (#1096) now and utcnow became functions in version 0.29 of Home Assistant --- source/_topics/templating.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_topics/templating.markdown b/source/_topics/templating.markdown index efd7660c255..5a84181d89f 100644 --- a/source/_topics/templating.markdown +++ b/source/_topics/templating.markdown @@ -70,8 +70,8 @@ Home Assistant adds extensions to allow templates to access all of the current s - `states('device_tracker.paulus')` will return the state string (not the object) of the given entity or `unknown` if it doesn't exist. - `is_state('device_tracker.paulus', 'home')` 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. -- `now` will be rendered as current time in your time zone. -- `utcnow` will be rendered as UTC time. +- `now()` will be rendered as current time in your time zone. +- `utcnow()` will be rendered as UTC time. - `as_timestamp` will convert datetime object or string to UNIX timestamp - `distance()` will measure the distance in meters between home, entity, coordinates. - `closest()` will find the closest entity.