Skip to main content
HA Voice Label Sync

HA Voice Label Sync

Python checks Latest release PyPI Downloads Downloads/month

Already using Google Assistant with Home Assistant without Home Assistant Cloud? Easily manage exposed entities using labels.

For the manual Home Assistant Google Assistant integration (without Home Assistant Cloud), use native Home Assistant labels to choose exposed entities. Select → Review → Apply: HVLS prepares a Preview automatically after label changes, shows entity-level differences, and only updates production after your explicit review and confirmation.

Latest version: v1.0.0 (stable release candidate; see GitHub Releases for publication status). Previous tested beta: v1.0.0-beta.5.
Python core dependency: ha-voice-label-sync==0.3.5 (separate from the Home Assistant integration version).

✨ V1 stable highlights

  • At-a-glance production status: green ✓ for entities already present unchanged in production YAML, amber dot for pending additions or modifications and neutral ? when the comparison cannot be trusted. These indicators do not confirm Google Home synchronization.
  • Guided Preview / Production workflow: visible pending-changes warning and explicit, checksum-protected Apply.
  • Safe recovery: browse historical backups, review differences, and restore after creating a mandatory safety copy.
  • Live entity selection: manage the HVLS label, inspect eligibility and open HA entity details without leaving the integration.

🧪 V1 beta release history

v1.0.0-beta.5 — Guided workflow and quick removal

  • Pending changes alert: when a valid, actionable Preview differs from production, Statistics displays a prominent warning with the number of entity changes awaiting review and a direct Open Preview action.
  • Quick HVLS removal: in Statistics, expand a domain or area and uncheck HVLS beside a selected entity. The same confirmation and concurrency-safe registry update used by Entity Management applies. Both views refresh after successful removal.
  • Automatic Preview refresh: after a label change, HVLS reloads the current Home Assistant registry, regenerates the Preview and updates statistics. It never automatically applies production changes.
  • The visual warning respects reduced-motion accessibility preferences.

v1.0.0-beta.4 — Backup browsing and protected restoration

  • Backups tab with timestamps, file sizes and entity counts.
  • Select a backup to review directional differences with production, including added, removed, modified and unchanged entities, with field-level detail.
  • Explicit administrator-only restore, SHA-256 validation of backup and production, mandatory pre-restore safety backup, YAML validation and atomic replacement.
  • Restoring changes only the generated Google Assistant YAML, never Home Assistant entity labels or registries.
  • Expand Statistics by domain and by area; the Without area bucket is last.
  • Open native Home Assistant entity details from Statistics, Entity Management or Preview change lists.

V1 panel at a glance

Four main tabs: Statistics, HVLS Entity Management, Preview, Backups. Excluded entities appears as an additional tab only when needed.

Select → Review → Apply → Restore if needed. You can select or deselect entities using the native HA label, inspect differences and explicitly apply the reviewed Preview. Applying changes to production remains separate from editing labels. The backup history provides a recovery path if necessary.

The guided Google Assistant cloud project, DNS/HTTPS and Google Home setup wizard remains planned for V2; it is not implemented in these beta releases.

✨ Why HVLS?

Maintaining large Google Assistant entity_config sections by hand is tedious and error-prone. HVLS lets you select entities using a Home Assistant label and review proposed changes before writing them.

  • 🏷️ Select entities through Home Assistant labels
  • 🏠 Resolve names, areas and devices from live Home Assistant registries in the native integration
  • 👀 Generate a dedicated Preview and inspect statistics by domain and room, including labeled entities in non-enabled domains
  • 🔍 See excluded entities and the reasons they were filtered out
  • ⚙️ Open the integration configuration from the Preview panel
  • 🎨 Identify Preview generation and production application with distinct blue and green actions
  • 📊 Compare the Preview with the current production YAML (added, removed, modified, unchanged)
  • 🚨 Highlight pending changes with a shortcut to the Preview tab
  • ☑️ Remove labeled entities directly from Statistics (by domain or area), with confirmation
  • 🗃️ Browse, compare and safely restore previous production YAML backups
  • ✅ Apply a reviewed Preview with SHA-256 change detection
  • 💾 Preserve the previous configuration with optional automatic backups and retention
  • ⚡ Trigger Preview or direct generation through native Home Assistant actions
  • 🔌 Keep the architecture open for future voice assistant backends
  • 📦 Install from the HACS/Marketplace catalog using the release ZIP asset
  • 🧹 Use a content-based SHA-256 fingerprint in the panel JavaScript URL to reduce stale browser caching (available since v0.3.10)

📸 Screenshots

The screenshots illustrate the V1 interface developed and tested through beta.5, including Statistics, Entity Management, Preview and Backups. Some screenshots predate the final production-status indicators.

Home Assistant configuration

HA Voice Label Sync integration configuration in Home Assistant HA Voice Label Sync options in Home Assistant HA Voice Label Sync settings in Home Assistant

HVLS panel — V1

image HA Voice Label Sync beta.5 panel screenshot 2 of 4 HA Voice Label Sync beta.5 panel screenshot 3 of 4 HA Voice Label Sync beta.5 panel screenshot 4 of 4

Generated YAML

Generated Google Assistant YAML

🚀 Installation

HA Voice Label Sync is listed in the HACS catalog and can be discovered through the Home Assistant Marketplace where available. A custom repository is not required for a standard installation.

  1. Open Marketplace / HACS in Home Assistant and search for HA Voice Label Sync.
  2. Select the latest published stable V1 release when available (see GitHub Releases); HACS pre-release selection is only needed if you intentionally want a beta.
  3. Restart Home Assistant.
  4. Go to Settings → Devices & services → Add integration.
  5. Search for HA Voice Label Sync, add it and configure its options.
  6. Open HA Voice Label Sync in the sidebar. If the panel still shows an older interface after a manual update, confirm Home Assistant was restarted: its JavaScript asset fingerprint is computed when the integration initializes.

Requirements

  • Home Assistant 2025.7.0 or later (as declared in hacs.json; compatibility with every release has not been individually verified)
  • An existing and working Google Assistant integration for actual Google Home exposure

Manual installation

Download the desired GitHub release. For ZIP-based releases, extract ha_voice_label_sync.zip and ensure the integration files end up in /config/custom_components/ha_voice_label_sync/. Restart Home Assistant, then add the integration under Devices & services. Its Python core dependency is specified in manifest.json.

⚙️ Google Assistant configuration

HVLS generates a separate entity configuration YAML file. The default production output is:

/config/google_assistant_entities.yaml

Include it in your existing configuration.yaml Google Assistant setup:

google_assistant:
  project_id: YOUR_PROJECT_ID
  service_account: !include google_key.json
  report_state: true
  expose_by_default: false
  entity_config: !include google_assistant_entities.yaml

This is an example: retain your actual project settings, credentials and other Google Assistant options. HVLS does not create google_key.json or configure Google Cloud.

🏷️ Select eligible entities with the HVLS label in HA or Entity Management
                   ↓
🔄 Refresh or generate the Preview from live HA registries
                   ↓
🚨 Statistics highlights pending differences, if any
                   ↓
🔍 Open Preview and review additions, removals and changes
                   ↓
✅ Explicitly confirm Apply Preview
                   ↓
💾 Back up production (when enabled) and write atomically
                   ↓
🔄 Reload Google Assistant or restart HA, then sync Google Home if needed

Backup history and safe restore

The Backups tab lists snapshots stored in a .hvls_backups directory beside the configured production YAML. Selecting a backup displays the changes that would happen if it were restored. The selected backup is checked against the current production configuration.

Restore is restricted to administrators and requires explicit confirmation. HVLS validates YAML and both SHA-256 fingerprints, always makes a safety copy of the current production, and replaces the YAML atomically. It does not modify HA labels or registries. After restoration, reload Google Assistant or restart Home Assistant and sync devices if necessary. A backup identical to production cannot be restored.

The panel offers the following actions plus a Settings shortcut:

Action What it does
Generate Preview Regenerates /config/.hvls/preview.yaml using the current HA registries, then refreshes the panel. Does not write the production file.
Refresh Reloads the live HA entity catalog, regenerates Preview YAML and refreshes statistics and differences. Does not apply to production.
Copy YAML Copies the generated Preview content.
Apply Preview Requests confirmation, checks the reviewed Preview and production SHA-256 fingerprints, then writes to the configured production path, with a backup when enabled.
Backups Lists backups, previews restoration differences and safely restores a selected production YAML with explicit confirmation.
Settings Opens the Home Assistant integration details/configuration page.

The panel displays entity counts, expandable breakdowns by domain and area, excluded-domain diagnostics and a Preview/Production comparison. Entity names open HA's native More Info dialog; in Statistics, the HVLS checkbox allows quick removal with confirmation. A warning highlights unapplied changes and links to Preview. Apply Preview remains an explicit, separate production action.

Native Home Assistant actions

The integration also exposes Generate configuration and Preview configuration actions. The former can write directly to the configured output and is useful for existing automations; the latter generates a Preview without a production write. For manual changes, the panel's reviewed Apply workflow is recommended.

🔍 Check Google Assistant

Open Settings → Devices & services → HA Voice Label Sync → Configure → Check Google Assistant for a read-only inspection of the Google Assistant settings detected by HVLS.

The checker reports the presence of google_assistant:, project_id, report_state, expose_by_default, the service-account reference, the entity_config reference, the referenced file's existence, and potential path mismatches or configuration warnings.

It does not read your service-account JSON contents, modify configuration.yaml, regenerate entity files, or verify connectivity to Google Cloud.

The integration also provides a separate HVLS settings options flow.

🧩 Entity eligibility and exclusions

Adding the HVLS label makes an entity a candidate, not a guarantee that it will appear in the generated Google Assistant YAML. HVLS applies the selection rules below. These lists describe HVLS eligibility, not every entity type that Google Assistant might support independently.

Domains enabled by the Home Assistant integration

The native integration enables these 14 domains by default:

binary_sensor climate cover
fan input_boolean input_select
light lock scene
script select sensor
switch vacuum

CLI difference: The standalone CLI defaults to the same list except sensor and binary_sensor (12 domains). This section otherwise describes the native Home Assistant integration.

Supported sensor device classes

Only sensor entities with one of these device_class values are selected:

Device class Description
temperature Temperature
humidity Humidity
aqi Air quality index
carbon_dioxide CO₂
carbon_monoxide Carbon monoxide
pm10 PM10
pm25 PM2.5
volatile_organic_compounds Volatile organic compounds

A sensor with a missing or different device class (for example power, energy, or a pH measurement without a supported class) is not selected, even if it has the HVLS label.

Supported binary_sensor device classes

Only these binary_sensor device classes are selected:

Device class Description
carbon_monoxide Carbon monoxide detection
door Door
garage_door Garage door
lock Lock
moisture Moisture / water detection
opening Opening
smoke Smoke detection
window Window

Example: A Zigbee2MQTT rain binary_sensor configured in Home Assistant as Show as → Moisture may become eligible if its effective device_class is moisture. This does not change the Zigbee device itself.

Other reasons an entity may be excluded

An entity is also skipped when it:

  • belongs to a domain not enabled in HVLS (domain_not_enabled);
  • has an unsupported sensor or binary_sensor device class (unsupported_device_class);
  • is disabled (disabled) or hidden (hidden);
  • belongs to the diagnostic or config entity category (entity_category);
  • does not carry the selected HVLS label.

The Preview panel shows included-entity counts by domain and room. Under Non-enabled domains, it groups labeled entities excluded because their domain is not enabled; the Excluded entities diagnostic lists labeled exclusions and their reasons. Entities without the selected label are not included in these exclusion statistics.

Note: The native integration depends on the separately versioned Python core ha-voice-label-sync==0.3.5. Review package and integration rules again when updating eligibility in a future release.

🏠 Home Assistant integration features

  • Native configuration and options flows
  • Separate HVLS settings and Check Google Assistant options
  • Live entity, device, area and label registries
  • Preview generation and direct generation actions
  • WebSocket Preview, diagnostics, reviewed Apply, backup browsing and safe Restore operations
  • SHA-256 guards, serialized HVLS workflows, atomic writes, optional ordinary backups and mandatory pre-restore safety copies
  • English and French translations
  • Python/JavaScript regression tests and GitHub Actions validation

🐍 Python engine and CLI

The project also provides a standalone Python package and CLI for advanced usage. The Python core version and the Home Assistant integration version are separate.

pip install ha-voice-label-sync
hvls --help

hvls \
  --storage /config/.storage \
  --output /config/google_assistant_entities.yaml \
  --label google_assistant

The standalone CLI reads registry files in Home Assistant .storage. The native Home Assistant integration uses live/in-memory Home Assistant registries instead; this migration is already implemented.

🎤 Supported voice assistants

Backend Status
Google Assistant ✅ Supported for configuration generation
Amazon Alexa 🚧 Planned
Apple HomeKit 📋 Planned

🏗️ Architecture

Home Assistant labels / live registries
                 │
                 ▼
      HA Voice Label Sync
                 │
        Preview / diagnostics
                 │
        Review and Apply
                 │
                 ▼
    Generated entity_config YAML
                 │
                 ▼
Official Google Assistant integration
                 │
                 ▼
              Google Home

Future backends may share the label-driven workflow. Only Google Assistant YAML generation is currently implemented.

🧪 Tests and releases

Before V1 release preparation, the main branch passed Python, JavaScript, HACS validation, Hassfest and package checks. End-to-end label, Preview/Apply and restore workflows were also tested in Home Assistant; the release candidate adds production status regression tests.

See GitHub Releases for the latest tagged and published version and CHANGELOG.md for details. The v1.0.0 stable release is distinct from the earlier beta.5 pre-release.

🧩 Recent interface changes

v0.3.9 — Panel usability

  • Sidebar and page title: HA Voice Label Sync (without “Preview”).
  • Direct Settings button to reach the integration configuration.
  • Distinct blue Generate Preview and green Apply Preview buttons.
  • Non-enabled domains section below the domain breakdown, counting only labeled candidates omitted because their domains are not enabled.

v0.3.10 — Frontend cache-busting change

The frontend panel now computes a shortened SHA-256 hash of hvls-preview-panel.js at Home Assistant setup time and appends it to the script URL (for example ?v=<hash>). Changing the JS changes the URL on the next integration setup, reducing the chance of stale browser assets. This behavior is available since the published v0.3.10 release.

This reduces HTTP caching problems but does not force an already open browser tab to hot-reload its JavaScript. After upgrades, a Home Assistant restart and page reload may still be needed.

v1.0.0-beta.4 and beta.5 — Recovery and guided workflows

Beta.4 added backup browsing and protected restore, more detailed Preview views and expandable statistics by area. Beta.5 added the pending-Preview alert and quick HVLS checkbox removal from Statistics.

🛣️ Roadmap after V1

  • V1 maintenance: monitor early feedback, installation compatibility and regression reports after the stable release.
  • V2: guided Google Assistant setup with a step-by-step checklist and verified prerequisites (external DNS/HTTPS, Google Cloud project, service account, Home Assistant and Google Home connection).
  • Under investigation: safer automation of Google Assistant reload and Google Home device synchronization after Apply; not implemented in V1.

📚 Documentation and roadmap

See ROADMAP.md for future milestones and the docs/ directory for additional documentation.

🤝 Contributing

Bug reports, feature requests and pull requests are welcome. Please use GitHub Issues.

📄 License

See the repository's license file for the applicable terms.

MIT

Metadata

Release files for ha-voice-label-sync 0.3.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ha-voice-label-sync 0.3.6
File Size Uploaded Provenance Actions
ha_voice_label_sync-0.3.6.tar.gz 131.1 kB With provenance Details for ha_voice_label_sync-0.3.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ha-voice-label-sync 0.3.6
File Interpreter ABI Platform Actions
ha_voice_label_sync-0.3.6-py3-none-any.whl Python 3 none any Details for ha_voice_label_sync-0.3.6-py3-none-any.whl

Total release size: 162.8 kB

Release files / ha_voice_label_sync-0.3.6.tar.gz

Download URL ha_voice_label_sync-0.3.6.tar.gz
Size 131.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9e18c48067523d70bf05c1a705ecef1c7aab61c29516c45a5cb5ec4d78efd649
BLAKE2b-256 checksum
How to use checksums
ad1870a40fe014f9d177166c0716fd43ee94b1bce7b60fdc0c8ee1f9b392369a
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 12, 2026.

Transparency log

Release files / ha_voice_label_sync-0.3.6-py3-none-any.whl

Download URL ha_voice_label_sync-0.3.6-py3-none-any.whl
Size 31.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8949a6f6f2a573e7778e652f0da0f9f38616094b89bcf074a948397096f647c1
BLAKE2b-256 checksum
How to use checksums
f633665a1860b3e4241e3f3fe87c945d9af47df9b9b9a7d80d7460b72399ddc6
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 12, 2026.

Transparency log

Security for ha-voice-label-sync 0.3.6

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ha_voice_label_sync-0.3.6.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 12, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page