The repository or configuration that created this release differ from a previous release. View details.
This release is a pre-release and may not be stable for production use.
ovos-phal-plugin-ha-link
An OpenVoiceOS PHAL plugin that links the device to Home Assistant.
It is part of Emkay, and works on any OpenVoiceOS.
The device connects to Home Assistant itself and carries its message bus both ways to the OpenVoiceOS integration. In Home Assistant it shows up as a device, with what the bus can see and set:
- volume, mute and listening on/off: automations can turn listening off at night
- its state (idle, listening, thinking, speaking), the last question and the last answer
- Say (
notify.send_message) and Ask (ovos.ask) - the device's own sensors, when a plugin reports them (
ovos.phal.sensor)
No port is opened on the device and nothing has to reach it from outside, so it also works behind NAT. Any OVOS install can use it: ovos-installer, raspOVOS, a Mark II, an OVOS in a VM.
Install
pip install --pre ovos-phal-plugin-ha-link
In Home Assistant, install the OpenVoiceOS integration (0.3.0 or newer), add it, and choose An OpenVoiceOS device. That lets devices connect. Then make a long-lived access token: your profile → Security.
Configure
In mycroft.conf:
{
"PHAL": {
"ovos-phal-plugin-ha-link": {
"url": "http://homeassistant.local:8123",
"token": "<the long-lived access token>",
"name": "Kitchen"
}
}
}
| Setting | |
|---|---|
url |
Home Assistant's address |
token |
a long-lived access token |
name |
the device's name in Home Assistant (default: the host name) |
model |
shown on the device page (default: OpenVoiceOS) |
panel_url |
the device's ovos-control-panel, reached here on the device (default http://127.0.0.1:8500; false for none) |
panel_token |
its access token (default: webui.access_token from mycroft.conf) |
panel_public_url |
where a browser can open the panel, for "Open control panel" in Home Assistant (optional) |
Restart OVOS' PHAL service. The device then appears in Home Assistant under
Settings → Devices & services → Discovered. Add it there, once. The plugin
keeps the device's id in ~/.local/state/ovos-phal-plugin-ha-link/device_id,
so it stays the same device.
In the control panel
With ovos-control-panel on the device, the plugin brings
its own page, Home Assistant, with the everyday pages. It shows how the link is (connected, waiting to be
added in Home Assistant, cannot reach it, token refused …) and sets the address, the token, the name and the rest
above. They are saved in mycroft.conf with the panel's backups, and the link connects again with them at once,
without a restart. The token is never shown again: leave the field empty to keep it. HiveMind satellites are
listed, and one that is gone for good can be removed from Home Assistant there. Saving needs the panel's access
token. The page is in Catalan, Danish, Dutch, English, French, Galician, German, Italian, Portuguese, Spanish and
Basque.
Behind it, on the bus:
| Message | Data | Answer (<message>.response) |
|---|---|---|
ovos.ha_link.status |
the settings (url, name, model, panel_public_url, satellites_on, token_set; never the token), state (off, connecting, unreachable, refused, pending, ready, displaced, removed), error, ha_version, forward, satellites |
|
ovos.ha_link.reload |
config: the plugin's section |
the same, with the link started again |
How it works
It uses the integration's protocol (docs/protocol.md):
ovos/connect over Home Assistant's WebSocket API, then bus messages both
ways. What Home Assistant sends goes on the bus as it is. Of the device's own
messages, only the types Home Assistant asks for (the forward list) are
sent. It connects again by itself when Home Assistant restarts.
The control panel
When ovos-control-panel
runs on the device, Home Assistant also gets what it can set: language, units,
voice, speech to text, wake word, skills on and off, updates, restart and
reboot (ha-ovos-integration#15).
Home Assistant's requests come through this link, and the plugin calls the
panel here on the device, so the panel never has to be opened on the network.
Restart and reboot need the panel's access token (webui.access_token).
The panel's backup goes to Home Assistant too (its Take backup button):
as a file in one message, base64, up to about 3 MB.
A hub: HiveMind satellites in Home Assistant too
When this OVOS is a HiveMind master (hivemind-core, e.g. Emkay Home), its satellites come along: each one becomes its own device in Home Assistant, connected via this one, with its own volume, listening on/off, state and "say" (ha-ovos-integration#12). Nothing to set up on the satellites, and they don't log in to Home Assistant.
- A satellite is added when it first sends something after connecting (Emkay sends its volume and listening state right away), named as in hivemind-core.
- It is unavailable while disconnected. Send
ovos.ha_link.satellite.forgetwith{"key": "<its access key>"}(or Emkay Home's{"id": …}) when it is removed, and its device goes from Home Assistant. - What Home Assistant asks of a satellite goes through hivemind-core
(
hive.send.downstream), so this device's own PHAL never takes it as meant for itself. - The satellite must be allowed to answer: hivemind-core only lets the message
types a client is allowed onto the bus, by default little more than
utterances. Allow
mycroft.volume.get.responseandmycroft.mic.get_status.response(hivemind-core allow-msg). Emkay Home does it for its Emkays.
Turn it off with "satellites": false.
Home Assistant's Assist
With ovos-assist-pipeline-plugin
in OVOS' intent pipeline, what Home Assistant's Assist recognizes ("turn on
the light in the kitchen") goes to Home Assistant through this link. The
link answers that plugin's ovos.assist.* messages. Home Assistant knows
which device asked, so it knows the room. You can use it instead of
skill-homeassistant, with no token to set there.
Coming
License
Apache-2.0
Metadata
Release files for ovos-phal-plugin-ha-link 0.1.0a5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Change of provenance
The repository or configuration that created these release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ovos_phal_plugin_ha_link-0.1.0a5.tar.gz | 36.0 kB | With provenance | Details for ovos_phal_plugin_ha_link-0.1.0a5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ovos_phal_plugin_ha_link-0.1.0a5-py3-none-any.whl | Python 3 | none | any | Details for ovos_phal_plugin_ha_link-0.1.0a5-py3-none-any.whl |
Total release size: 74.9 kB
Release files / ovos_phal_plugin_ha_link-0.1.0a5.tar.gz
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | ovos_phal_plugin_ha_link-0.1.0a5.tar.gz |
|---|---|
| Size | 36.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bac47f7492c581dd2be13d793eadd4e190231dea1653bf8d5f33391d925a766
|
|
BLAKE2b-256 checksum How to use checksums |
707c22a90bbcf33d6a7d2c388a07fe61e3fe3718643d44834a9f053a745e77b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logRelease files / ovos_phal_plugin_ha_link-0.1.0a5-py3-none-any.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | ovos_phal_plugin_ha_link-0.1.0a5-py3-none-any.whl |
|---|---|
| Size | 39.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
312446cd62a5f4d1b3abc33a6b443d3f5c333580e100aad04a7e6d12338c0747
|
|
BLAKE2b-256 checksum How to use checksums |
8c199afd1866eebef044b52aaaacd11623f005394471dd6a58fd64d821cb573a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logSecurity for ovos-phal-plugin-ha-link 0.1.0a5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Change of provenance
The repository and configuration that created this release differ from a previous release.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Repository
- Removed 0.1.0a4 github.com/andlo/ovos-phal-plugin-ha-link
- Added 0.1.0a5 github.com/emkay-voice/ovos-phal-plugin-ha-link
Attestation for ovos_phal_plugin_ha_link-0.1.0a5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.