Sentry
The free Sentry account allows 5000 events per month. Depending on the amount of events sent to Sentry, you will either have to upgrade your Sentry account or have a period without data flowing from Home Assistant to Sentry.
The Sentry integration in Home Assistant integrates with Sentry
Preparation
Before configuring the Sentry integration, you’ll need to get Sentry account and a DSN.
Follow these steps to get the DSN:
- Go to Projects.
- Select Create project.
- Fill out the Give your project a name and choose Assign a Team fields and select the Create project button.
- Select the Get your DSN link in top of the page.
- Your DSN is now visible and looks like https://sdasdasdasdsadsadas@sentry.io/sdsdfsdf
- Your DSN is now visible and looks like https://sdasdasdasdsadsadas@sentry.io/sdsdfsdf
配置
要将 Sentry service 添加到您的 Home Assistant 实例中,请使用此 My 按钮:
手动配置步骤
如果上述 My 按钮不起作用,您也可以手动执行以下步骤:
-
浏览到您的 Home Assistant 实例。
-
转到
设置 > 设备与服务。 -
在右下角,选择
Add Integration 按钮。 -
从列表中选择 Sentry。
-
按照屏幕上的说明完成设置。
Options
The Sentry integration provides settings to:
- Set an environment name for your instance.
- Limit the event log level to trigger on, and the log level of the breadcrumbs.
- Ability to send out error events that are handled.
- Ability to send out events caused by custom integrations.
- Ability to send out events originating from third-party Python packages.
- Enable performance tracing and tune the tracing sample rate used.
To change the settings, go to Settings > Devices & services. Select the Sentry integration. Then, select Options.
After changing the Sentry settings, you’ll need to restart Home Assistant in order to make them effective.