Gotify

The Gotify component allows Viseron to send notifications to a Gotify server when recordings start. Gotify is a simple server for sending and receiving push notifications. It's self-hosted, open-source, and provides a simple way to send notifications to your devices.
Features
- Send notifications to Gotify when recordings start
- Include thumbnails of detected objects in notifications (when enabled)
- Configure notification priority
- Filter notifications by object type
- Only send notifications for objects that trigger recordings
How It Works
The Gotify component listens for the EVENT_RECORDER_START
event, which is triggered when a recording starts. When this event occurs, the component:
- Checks if the recording contains objects
- Filters objects based on the configured detection labels
- Sends a notification to the Gotify server with:
- A text message
- A thumbnail image (if
send_thumbnail
is enabled and a thumbnail is available)
Installation
- Set up a Gotify server if you don't already have one. You can follow the official documentation.
- Create an application in Gotify and get the application token.
- Configure the Gotify component in your Viseron configuration file.
Configuration
Configuration example
gotifymap required
Gotify server to send notifications for events.
Limitations
- Gotify doesn't support direct video uploads, so the component only sends a notification that a video was recorded
- Image thumbnails are sent as base64-encoded images in markdown format, which requires a Gotify client that supports this format
Troubleshooting
To enable debug logging for
gotify
, add the following to your config.yaml
/config/config.yaml
logger:
logs:
viseron.components.gotify: debug
Common Issues
- No notifications are being sent: Ensure your Gotify server is accessible from the device running Viseron
- Authentication errors: Check that the application token has the correct permissions
- Connection issues: Verify that the URL is correct and includes the protocol (http:// or https://)
- Missing thumbnails: Make sure the
send_thumbnail
option is enabled and that the recording contains a thumbnail