Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

HomeAssistant

Schemeshassio://, hassios://
Cargo featureservice-homeassistant
Servicehttps://www.home-assistant.io/
Body formatstext (first is the default)
Attachmentsno
Title length250 characters
Body length32,768 characters
Body linesunlimited
Request throttlenone
Vendor URLs acceptedno

URL formats

{schema}://{host}/{accesstoken}
{schema}://{host}/{accesstoken}/{targets}
{schema}://{host}:{port}/{accesstoken}
{schema}://{host}:{port}/{accesstoken}/{targets}
{schema}://{user}@{host}/{accesstoken}
{schema}://{user}@{host}/{accesstoken}/{targets}
{schema}://{user}@{host}:{port}/{accesstoken}
{schema}://{user}@{host}:{port}/{accesstoken}/{targets}
{schema}://{user}:{password}@{host}/{accesstoken}
{schema}://{user}:{password}@{host}/{accesstoken}/{targets}
{schema}://{user}:{password}@{host}:{port}/{accesstoken}
{schema}://{user}:{password}@{host}:{port}/{accesstoken}/{targets}

{schema} is one of hassio://, hassios://.

URL tokens

TokenMeaningTypeRequiredDefaultNotes
{accesstoken}Long-Lived Access Tokenstringyessecret
{host}Hostnamestringyes
{password}Passwordstringnosecret
{port}Portint, 1 to 65535no
{target_device}Target Devicestringno
{targets}Targetslistnoany of target_device; separated by /
{user}Usernamestringno

Query parameters

ParameterMeaningTypeDefaultNotes
batchBatch Modeboolno
nidNotification IDstringmust match ^[a-z0-9_-]+$
prefixPath Prefixstring
toTargetslistsets {targets}
tokenLong-Lived Access Tokenstringsets {accesstoken}

The common URL parameters (format, overflow, verify, redirect, cto, rto, retry, wait, store, tag, tz, user, password, port, optional, emojis) apply as well.

Examples

Accepted URLs (tokens are fake):

hassio://localhost/long.lived.token
hassio://user@localhost:8123/long.lived.token
hassio://user:pass@localhost/long.lived.token/
hassio://localhost/prefix/path/long.lived.token
hassios://localhost:8443/path/long.lived.token/
hassio://localhost/0123abcd.0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef/light.turn_on
hassios://localhost/long.lived.token?nid=abcd
hassio://localhost/long.lived.token/notify.mobile:dev1,dev2,dev3?batch=yes

Rejected URLs:

hassio://
hassio://user@localhost
hassios://localhost/long.lived.token?nid=!%

Send one from the command line:

mercurio -t 'Backup' -b 'Finished in 42s' 'hassio://localhost/long.lived.token'

Notes

Home Assistant (hassio://, hassios://): notifications through the Home Assistant REST API.

Without targets a persistent notification is created; otherwise each [domain.]service[:target,...] entry calls /api/services/{domain}/{service}.