Syslog

The syslog integration集成将 Home Assistant 与您的设备、服务等连接和集成。 [Learn more] allows you to deliver notifications from Home Assistant to the local syslog.

To enable syslog notifications in your installation, add the following to your configuration.yamlconfiguration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] file. 在更改了configuration.yamlconfiguration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] 文件后,重启 Home Assistant 以应用更改。 该集成现在显示在集成页面的 设置 > 设备与服务 下。其实体在集成卡片上以及实体标签上列出。

# Example configuration.yaml entry
notify:
  - name: NOTIFIER_NAME
    platform: syslog

Configuration Variables

name string (Optional, default: notify)

Setting the optional parameter name allows multiple notifiers to be created. The notifier will bind to the notify.NOTIFIER_NAME action.

facility string (Optional, default: syslog)

Facility according to RFC 3164 (https://tools.ietf.org/html/rfc3164). Check the table below for entries.

option string (Optional, default: pid)

Log option. Check the table below for entries.

priority string (Optional, default: info)

Priority of the messages. Check the table below for entries.

The table contains values to use in your configuration.yaml file.

facility option priority
kernel pid 5
user cons 4
mail ndelay 3
daemon nowait 2
auth perror 1
LPR 0
news -1
uucp -2
cron
syslog
local0
local1
local2
local3
local4
local5
local6
local7

For details about facility, option, and priority please consult the wikipedia article and RFC 3164.

To use notifications, please see the getting started with automation page.