Hi, my problem is in a value template.
I want to extract a data from a web (rest json), but when I try to enter it as an HA sensor, it gives me an error due to the blank spaces (at the end of the value template line).
How should I do it ?
- platform: jsonrest
resource: https://sedeaplicaciones.minetur.gob.es/ServiciosRESTCarburantes/PreciosCarburantes/EstacionesTerrestres/
name: origendatos
scan_interval: 28800 # tiempo en segundos de actualizacion- platform: template
sensors:
cepsa1:
value_template: ‘{{ states.sensor.origendatos.attributes.ListaEESSPrecio.923.Precio Gasoleo A}}’
friendly_name: Cepsa Noreña