Triggering Home Assistant Automation from Keyboard Maestro

I would love to set DND on my devices using Home Assistant. I already wrote the automation in Home Assistant but I haven't figured out how to link keyboard maestro with Home Assistant?
How do I solve this?

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"}'

1 Like