joselh
(Jose Lopez)
October 3, 2016, 5:49pm
1
Good afternoon to all you,
I’m really new in home assistant… i have a problem with the function now.time() from version 0.29.x doesn’t exist anymore…
I have an automatic rule triggered every day at 6:30 (using an input_select for more flexibility) but now i have this message:
homeassistant.helpers.condition: Error duriong template condition: UndefinedError: ‘function object’ has no attribute ‘time’
Could you help me to find the new function “time”? or where we can find all the functions availables.
Thanks in advance.
Regards
Jose
ih8gates
(Scott Reston)
October 3, 2016, 6:41pm
2
There was a change in .29.x that changed now(). I don’t think you need to call time() any more. The guys working on an alarm clock recently dealt with this.
now()
shows the current date and time, now().time()
shows just the current time.
As @ih8gates pointed out, now
and als utcnow
became functions in version 0.29 so you must now use now()
and utcnow()
.
1 Like
joselh
(Jose Lopez)
October 3, 2016, 7:30pm
4
Many thanks ih8gates & fanaticDavid!!! this fix the problem!!!
Thanks again
Regards
Jose