I am struggling (as I often do) with time formatting in yaml. This time I am trying to convert the expression below as minutes only, i.e. as an integer telling me how many minutes my garagedoor has been open (or closed).
I believe the now() function is a home assistant, JSON, or Jinja thing. I’ve looked up docs on JSON and Jinja and didn’t find anything on the topics that match NOW. The format of “last_changed” appears to be formatted in JSON, so maybe now() is a JSON function. Either way, yaml is just the framework for the information. It’s not what executes the code. Jinja is what executes inside the yaml. I’d look there.
Ok, so I need to find the format syntax for JSON then. I have already browsed through the Jinja documentation linked to from HA templates. I’ll try to find some documentation for JSON as well.