BTW, the error message said “automation.gps_status_881e_2”, whereas the automation we’ve been talking about is “automation.gps_status_881e”. Or did you rename it?
Are you sure you’re restarting HA whenever you change the automation? There’s something going on that maybe you haven’t explained yet.
The log says:
invalid longitude for dictionary value @ data[‘gps’]
If I change the "{{ states('sensor.car_longitude') }}" for 1.0 (for instance) everything seems to work ok. I really don’t know what could be, I have tried all sorts of variations and nothing seems to work.
If I write this down in the template editor it works well and I can see that the sensors have correct values.