So far so good, but in the temperature row I can’t get it to work that HA uses the “deviceLocation” variable.
I tried:
[’ … '] which don’t give an error in the config but later HA says
Error rendering data template: UndefinedError: ‘None’ has no attribute ‘deviceLocation’
‘deviceLocation’ and {{‘deviceLocation’}} which gives errors like
Invalid config for [intent_script]: invalid template (TemplateSyntaxError: expected token ‘end of print statement’, got ‘string’) for dictionary value @ data
everything works fine, but that means I would need 4 different intents (2 for temp. up and 2 for temp. down)
I already google quite a bit if there is a possiblity to make an if elif statement with a condition for ‘entity_id’,‘XYZ’ but I can’t find much. Its always with “state is_state” which won’t help me because the only condition I have is the entity_id at the beginning. Sure I could save the “told” entity_id in a separate (sensor) template and create an automation watching that sensor with state is_state but that’s too much code for that little function…
Wow thanks for the late reply.
In the meantime I kinda “solved” it with hard-coding that last part in the action which gives me still just one intent (instead of four).