-
Notifications
You must be signed in to change notification settings - Fork 0
Actions
cvrt-jh edited this page Feb 22, 2026
·
1 revision
Actions are triggered on button press via the on_press field.
on_press = { action = "http", method = "POST", url = "https://example.com/webhook" }With headers and body:
on_press = { action = "http", method = "POST", url = "http://ha.local:8123/api/services/light/toggle", headers = { "Authorization" = "Bearer ${HA_TOKEN}" }, body = '{"entity_id": "light.living_room"}' }Methods: GET, POST, PUT, DELETE, PATCH.
on_press = { action = "shell", command = "sudo reboot" }Runs via /bin/sh -c. Output logged at debug level.
on_press = { action = "navigate", page = "lights" }on_press = { action = "back" }on_press = { action = "home" }