v1.17.0
✨New Feature: Create Token Service
You can generate guest tokens instantly from automations, scripts, or even trigger them with a button right on your dashboard.
Perfect for quickly sharing access with visitors without navigating through multiple menus.
Parameters List
| Parameter | Description | Required |
|---|---|---|
user_id |
The name of the user to create the token for. | Yes |
token_name |
The name of the token. | No |
expiration_duration |
The duration until the token expires (e.g., '02:00:00'). | No |
expiration_date |
The date when the token expires. | No |
start_date |
The date when the token becomes valid. | No |
dashboard |
The URL path of the desired dashboard (e.g., 'lovelace-guest'). Do not include the leading slash. | No |
If neither expiration_duration nor expiration_date is provided, the token will never expire.