Now.time() function

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

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

Many thanks ih8gates & fanaticDavid!!! this fix the problem!!!

Thanks again

Regards
Jose