Triggering Home Assistant Automation from Keyboard Maestro

I used the rest API and sent the command using the following schema:

curl -X POST -H "Authorization: Bearer "
-H "Content-Type: application/json"
-d '{"entity_id": "automation.dnd_on"}'
http://homeassistant.local:8123/api/services/automation/trigger

1 Like