I’m taking on a pretty hefty challenge to add doorbell support to the Frigate notification blueprint, but am getting hung up on getting a variable to pass through for my automation. So I tried creating a simple automation example and this isn’t working either. Can someone take a look at this and help me figure out why the trigger variable isn’t working?
Sorry, that was after I was messing with it a bit, didn’t realized I copied the broken part in there. I fixed the original post and put a link to the test blueprint I’m trying to build.
The cause of the "[object Object]": null is that you tried to use a template in a State trigger, which is not supported. You can use inputs there, but not templates.
There is also a significant issue in the action… you are using both a multi-line quote indicator and double-quote marks. This keeps the the variables global_variable and nested_variable from being rendered. It should be:
The way the values of YAML variables are rendered in HA is through templates. Anything in HA that includes double-curly bracket delimiters, {{ }}, is a Jinja template.
You can use templates in triggers that support templates and only where they are supported. State triggers only support templates in the for configuration variable.