Debian Codegraph @

pkg/services/push/homeassistant/doc.go

raw
1 // Package homeassistant sends notifications through the Home Assistant REST API.
2 //
3 // Upstream documentation: https://developers.home-assistant.io/docs/api/rest/
4 //
5 // # URL Format
6 //
7 // homeassistant://TOKEN@host[:port][/basepath][?query]
8 //
9 // The long-lived access token is the URL username. The host identifies the
10 // Home Assistant instance. An optional path is a reverse-proxy prefix.
11 //
12 // # Query Parameters
13 //
14 // - title: optional notification title. Omitted from the API request when empty.
15 // - service: Home Assistant action. Empty defaults to persistent_notification.create.
16 // A value without a dot is sent as notify/<value>. A value with a dot is
17 // sent as <domain>/<action>.
18 // - targets: comma-separated notify destinations, sent as JSON field target.
19 // Omitted for persistent notifications.
20 // - nid: persistent notification ID. Omitted when empty. Replaces an existing
21 // notification when reused.
22 // - disabletls: use HTTP instead of HTTPS. Default No.
23 // - skiptlsverify: skip TLS certificate verification. Default No.
24 //
25 // When the port is omitted, HTTPS uses 443 and HTTP (disabletls=yes) uses 8123.
26 //
27 // # Example
28 //
29 // homeassistant://<token>@homeassistant.local:8123/?disabletls=yes&title=Update
30 package homeassistant