Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Template documentation inaccurate on latest Home Assistant version?

$
0
0

@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 behind temperature 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

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>