Sir_Goodenough
((SG) WhatAreWeFixing.Today)
December 16, 2024, 10:02pm
2
Hello zer02pi ,
First of all, ChatGPT is not trained for the language of Home Assistant, so much of the time it makes stuff up and guesses. Never trust it as your final answer, it is usually wrong.
Then I think this is your problem.
When you gather data in a blueprint using !inputs, you will need to use that data in the lower parts of the blueprint. All the native Home Assistant places accept the
!input my_data
format for this.
If you are using the value in a template, however, this does not work.
The code inside of the template brackets is all rendered by a jinja2 template engine, not Home Assistant. That engine does not know what the !input tag is. That is looking for a variable.
Therefore in order for template engin…
In addition, that is a Trigger so you need a triffer_variable:
First, this is not meant to be a replacement for the section in the HA Docs about this.
Please read and refer to that as the official word on this subject.
Automation Trigger - Home Assistant .
When I mention Triggers here I am referring to the main key trigger: used to activate an automation, and not necessarily the triggers found in key action: statements.
What the Docs don’t say is the reason that there are 2 kinds of variables. Regular variables used in Automations and the ‘trigger’ varia…