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

Where is the problem? "invalid template (TemplateSyntaxError: unexpected '}')"

$
0
0

I’m trying to figure out where this problem is. Unfortunately, the logs doesn’t help much, since it can’t say which automation that has the problem (could it not just say the id/alias of the automation?)

The full log error is:

Invalid config for [automation]: invalid template (TemplateSyntaxError: unexpected '}') for dictionary value @ data['condition'][0]['value_template']. Got None. (See ?, line ?).
Invalid config for [automation]: invalid template (TemplateSyntaxError: unexpected '}') for dictionary value @ data['condition'][0]['value_template']. Got None. (See /home/homeassistant/.homeassistant/configuration.yaml, line 0).

If I grep for value_template in my automations.yaml I get:

(homeassistant) homeassistant@mistik:~/_homeassistant$ grep value_template automations.yaml 
    value_template: '{{ state.attributes.elevation }}'
    value_template: '{{ state.attributes.elevation }}'
      value_template: '{{ state.attributes.elevation }}'
    value_template: '{{ state.attributes.elevation }}'
        value_template: '{{ not is_state(''device_tracker.gte_position'', ''home'') }}'
        value_template: '{{ not is_state(''device_tracker.gte_position'', ''home'') }}'
    value_template: '{{ state.attributes.elevation }}'
      value_template: '{{ states.media_player.sony_x77 != "playing" }}'
      value_template: '{{ states.media_player.dining_room_jbl != "playing" }}'

Can someone see a problem here?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103380

Trending Articles



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