@elafargue wrote:
It took me way too long to realize that the - otherwise pretty awesome - documentation seems to be inaccurate when it comes to describing templates: in most pages, templates are described this way (simplified for clarity, see https://www.home-assistant.io/docs/scripts/service-calls/ ):
service: thermostat.set_temperature data: entity_id: thermostat.upstairs data_template: temperature: {{ 22 - distance(states.device_tracker.paulus) }}
When putting this into
scripts.yml
, this does not work and does not pass the config check, because the template behindtemperature
should actually be quoted:service: thermostat.set_temperature data: entity_id: thermostat.upstairs data_template: temperature: '{{ 22 - distance(states.device_tracker.paulus) }}'
If looks like all the Home Assistant doc has this inaccuracy, or am I missing something? I’d be happy to do a PR to correct it…
Posts: 2
Participants: 2