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

Webhook - action depending on state

$
0
0

Hi all
I keep getting and error message in the File Editor (automations.yaml)

missed comma between flow collection entries at line 36, column 8:
{% if is_state("trigger.json.valu …
^


 - alias: Receive Message
    trigger:
    - platform: webhook
      webhook_id: alarm_status
    action:
      {% if is_state("trigger.json.value_id", "on") %}
        service: input_boolean.turn_on
        entity_id: input_boolean.alarm_status
      {% elif is_state("trigger.json.value_id", "off") %}    
        service: input_boolean.turn_off
        entity_id: input_boolean.alarm_status
      {% endif %}

Any help would be appreciated. Thanks

6 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 106087

Trending Articles



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