← Plugins

home-assistant

Control and query Home Assistant devices, automations, and history

View source

Home Assistant plugin for Stavrobot

This plugin lets Stavrobot control and query your Home Assistant instance via the HA REST API. You can turn devices on and off, read the current state of any entity, trigger services and automations, and retrieve historical state data — all through natural-language requests to the assistant.

Installation

Tell Stavrobot to install the plugin from:

https://github.com/stavrobot/plugin-home-assistant

Configuration

After installation, configure the following values:

KeyDescription
urlThe base URL of your Home Assistant instance, e.g. http://homeassistant.local:8123
access_tokenA long-lived access token used to authenticate API requests

To create a long-lived access token: open your Home Assistant profile page (click your username in the sidebar), scroll to the Long-lived access tokens section at the bottom, and click Create token. Give it a name (e.g. stavrobot) and copy the token value — it is only shown once.