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

Yaml parse error - why is it not working 8-0?

$
0
0

@c-soft wrote:

Hi there!

In one of my I got an error while doing check config:

while parsing a flow mapping
  in "/config/automations.yaml", line 1175, column 22
expected ',' or '}', but got '<scalar>'
  in "/config/automations.yaml", line 1175, column 77

Here’s the automation with offending line marked. If I skip the template, everything works fine.

action:
  - service: homeassistant.turn_on
    data_template:
      entity_id: script.light_{{ trigger.to_state.state }}_param
      variables:
        entity_id: light.tasma_led_ekran
        # This line gives me error:
        brightness: {{ state_attr('light.dimmer_salon_kinkiet', 'brightness')}}
# If changed to line below, everything is fine:
#        brightness: 50

What am I doing wrong?
Any help appreciated!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 101645

Trending Articles



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