{ services.home-assistant.config = { rest_command = { moltbot_home_arrival = { url = "https://moltbot.cloonar.com/hooks/agent"; method = "POST"; headers = { Authorization = "!secret moltbot_home_arrival"; Content-Type = "application/json"; }; payload = "{\"message\":\"I just arrived home. Read home-reminders.md in my workspace. This file may contain reminders to tell me, or instructions/tasks to perform (like looking something up). Execute any instructions, send me the results along with any simple reminders, then clear the file content (keep the header). If the file is empty, just welcome me home briefly.\",\"name\":\"HomeArrival\",\"deliver\":true,\"channel\":\"whatsapp\",\"to\":\"+436607055308\"}"; }; }; "automation home_arrival" = { alias = "home_arrival"; trigger = { platform = "zone"; entity_id = "person.dominik"; zone = "zone.home"; event = "enter"; }; action = { service = "rest_command.moltbot_home_arrival"; }; }; }; }