automation:
- alias: "Schalter ruft URL auf"
description: "Ruft eine URL auf, wenn der Schalter eingeschaltet wird"
trigger:
- platform: state
entity_id: input_boolean.mein_schalter
to: "on"
action:
- service: rest_command.aufruf_url
rest_command:
aufruf_url:
url: "http://192.168.1.50/api/start"
method: GET