This is kinda messed up because I have tried changing the formatting too many times. What are the correct quotes for making this work? I keep getting errors.
Invalid config for [automation]: invalid template (TemplateSyntaxError: expected token 'end of print statement', got 'integer') for dictionary value @ data['condition'][0]['value_template']. Got None
not a valid value for dictionary value @ data['condition'][0]['condition']. Got None
required key not provided @ data['condition'][0]['entity_id']. Got None.
The problem was to sort out the many numbers on the temperature sensor. It needs that -bracket-doublequote- thing to read the template, but the double quote was messing with the other double quotes I had on the same template. The whole template should be inside a single quote so if I used a double like u said, it wouldnt work. Anyway I tried your solution to be sure, but it didnt work anyways.
But I didnt think of using the “states” templating. Thank you for that!