#template help
1 messages ยท Page 1 of 1 (latest)
Open your Home Assistant instance and show your state developer tools
That screen shows you all your entities
Tinkerer is right, though
I always am, except when I'm not ๐
sec
Now you have some expert help
number.tcv_badezimmer_external_measured_room_sensor
He can 'see' the template where I have to works thru it...
Nah... mostly I direct people to #templates-archived for anything beyond the simple stuff
My template-fu is weak
๐
Well, i thought it was "easy" to adapt the working automation from yesterday to that blueprint
I think, the last puzzle is that entity id
problem is, i dont know, what i am looking for
ally_ext_meas_temp_id is an input, not an entity
but we need an entity there?
Yes, but no, but yes
๐
Okay, what i have is: the whole thing works, when i just insert the real entity id
alias dont work
states('ally_ext_meas_temp_id')
``` is _probably_ going to be sometingg more like
states[!input ally_ext_meas_temp_id].state
You may need to set a variable to the input, and then use the variable instead
variables:
ally_ext_meas_id: !input ally_ext_meas_temp_id
...
states[ally_ext_meas_id].state
variables:
device: !input ally_device
ally_ext_meas_id: !input ally_ext_meas_temp_id
temp_sensor_id: !input temp_sensor_id
- condition: template
value_template: |-
{{
(((states[ally_ext_meas_id].state|float(0))
now my automation is gone xD
not visible anymore in gui
That gui is so annoting.
thats why i am restarting sometimes ๐
i am more restarting the testing changes ๐
It mens when you restarted with invalid syntax it won't let you back in.
Well, another option is: i let it how it is and just make 11 automations from it
Scratch writing small things the gui is OK. If you are editing and tweaking you would be better off in an editor (preferably code server)
the automation itself works, so not a big problem. I just would like have to give it back to the community
I need to learn coding i think
๐
The way to learn this is to do this...
Use the template developer and work your way thru this. It will be a much bigger win for you...
That's my goto. When yu nave the basics, that will get you thru the details
You are in a blank slate that includes all the HA entities there. Device is only in the scope of that BP, so you have to define it in the scratchpad in order for this local to see it.
ah ok
Temlpates all work using Jinja2 rules with some HA tweaks, mostly Jinja2
{% set dv_name = 'tarantulapro'%}
{{ states('binary_sensor.'~dv_name~'_printing') }}
You do thing like that in there to set a variable, then get your template to work.
I will try later ๐ I give u a resonse ๐ Thanks again for the nice help