-
Notifications
You must be signed in to change notification settings - Fork 0
Home Assistant
Sentinel can send alert-rule matches to Home Assistant as a custom event, which you can turn into mobile push notifications, automations, TTS, lights, etc.
Set these environment variables on the Sentinel server (see env.example in the main repo):
-
HOME_ASSISTANT_URL: Base URL of your HA instance, e.g.https://homeassistant.local:8123 -
HOME_ASSISTANT_ACCESS_TOKEN: Long-lived access token (Home Assistant → Profile → Security) -
HOME_ASSISTANT_EVENT_TYPE(optional): Default issentinel_alert -
PUBLIC_BASE_URL(recommended): Public URL to your Sentinel dashboard, e.g.https://sentinel.example.com
Then restart the Sentinel server container/service.
Sentinel fires an event of type HOME_ASSISTANT_EVENT_TYPE with fields including:
-
rule_name,channel,agent_id,agent_name,snippet,ts -
dashboard_url(whenPUBLIC_BASE_URLis set) -
dashboard_activity_url(whenPUBLIC_BASE_URLis set): deep-link to the agent Activity tab and highlight the event time
In Home Assistant:
- Go to Settings → Automations & Scenes → Blueprints
- Click Import Blueprint
- Paste this URL:
https://raw.githubusercontent.com/gladsonsam/Sentinel/main/server/src/notify/home_assistant_blueprint.yaml
If your default branch is master, use:
https://raw.githubusercontent.com/gladsonsam/Sentinel/master/server/src/notify/home_assistant_blueprint.yaml
- Create a new automation from the imported blueprint
- Pick your mobile_app device (Companion app)
- Optional: customize the title prefix
When an alert rule matches, you should receive a push notification with an Open event action that deep-links to Sentinel.
Install and configure
Day to day
Integrations
Developers and security