Ein Webhook löst eine Automation aus, zusätzlich soll auch ein Text (type) über die Sonos Lautsprecher ausgegeben werden > wie könnte ich das anstellen?
Aufbau der Automation (das schalten funktioniert)
Code: Alles auswählen
trigger:
- platform: webhook
allowed_methods:
- POST
local_only: false
webhook_id: '-hook-id'
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.steckdose
mode: single
curl command (zum testen bzw. gleicher Aufbau)
Code: Alles auswählen
curl -X POST -d 'type=STICHWORT' https://meinHA.duckdns.org/api/webhook/hook-id