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

How to setup an automation with a webhook JSON variable?

$
0
0

@Marius82 wrote:

Hi,

I try to setup an automation wich groups Sonos speaker together:

- id: '1582236119964'
  alias: sonos_ueberall
  description: ''
  trigger:
  - platform: webhook
    webhook_id: sonos_ueberall
  condition: []
  action:
  - entity_id: media_player.wohnzimmer, media_player.schlafzimmer, media_player.kuche,
      media_player.bad
    service: sonos.unjoin
  - delay: 00:00:03
  - data_template:
      master: '{{ trigger.json.entity_id }}'
      entity_id: media_player.wohnzimmer, media_player.schlafzimmer, media_player.kuche, media_player.bad
    service: sonos.join

Then I get this error:

voluptuous.error.MultipleInvalid: Entity ID {{ trigger.json.entity_id }} is an invalid entity id for dictionary value @ data[‘master’]

What is wrong with the '{{ trigger.json.entity_id }}'´?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



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