A custom Home Assistant integration for VIEWE smart panels, with shared profiles and a sidebar editor. Version 0.2.3 supports ESPHome Native API and optional legacy MQTT transport. Widgets include Lighting, Weather, Switch, Actions, Clock, Temperature / humidity, Thermostat and the BC-250 switch preset.
Development version: local tests pass, but this version still requires verification in a running Home Assistant instance and on the physical display. Firmware compatible with the selected transport is required.
- Initial setup through Config Flow; one profile hub per Home Assistant instance.
- Sidebar editor with Profiles and Panels sections.
- New profiles start with Weather, followed by Lighting.
- Multiple widget instances: up to 16 visible widgets / 8 KB for ESPHome; the legacy editor storage supports up to 64 pages.
- Page names, entity selection, visibility, and ordering by drag and drop or buttons.
- Profile deletion with confirmation and protection against deleting assigned profiles.
- Automatic lighting capabilities in ESPHome; optional manual types for legacy MQTT.
- Configurable “Take an umbrella” banner settings.
- Separate Save and Apply actions, with independent draft and applied versions.
- Validation before applying, and a delivery result for each assigned panel.
- Delivery of the latest applied version when an unavailable panel reconnects.
- Compatible applied profiles in HA; legacy MQTT also sends an on-panel catalog.
- Native API state/control/forecast handling through the standard ESPHome integration; legacy MQTT retains its state and command adapter.
- Panel acknowledgements, heartbeat monitoring, and bounded command deduplication.
The sidebar editor follows the Home Assistant user language: Ukrainian uses
frontend/locales/uk.js; English and other languages use frontend/locales/en.js.
Both files share one editor implementation and must be updated together.
New page names follow the current language; existing names are preserved.
The integration setup flow provides English strings and a Ukrainian translation.
The new ESPHome firmware is supported alongside the legacy MQTT firmware. See ESPHome setup and the widget forms before assigning a profile. The editor now includes Clock, Temperature / humidity and Thermostat widgets, label visibility, internal-page selection and icon options.
Each widget now has a Demo checkbox for local sample data and interactive controls without real HA entities. See the Native API guide for firmware requirements.
The editor version is shown in its header. Version 0.2.2 uses versioned asset paths and custom element names, so an older browser module cannot replace the updated editor after HA restarts. Panels refreshes every five seconds without redrawing unsaved widget forms. Install the ESPHome device in HA first; Wi-Fi connectivity alone does not register a Native API panel. Stored MQTT panels remain independent records.
Panel cards show a green Online or red Offline badge independently of profile delivery status. Remove panel forgets the VIEWE record without deleting its HA device or profiles. Explicit Refresh status allows connected panels to be discovered again; background polling does not immediately undo removal.
- Home Assistant with the standard ESPHome integration for Native API panels.
- For legacy panels only: a configured MQTT integration connected to a broker.
- An administrator account for access to the profile editor.
- HACS for installation through a custom GitHub repository, or file access for manual installation.
- Compatible panel firmware for panel discovery, configuration delivery, and control.
A minimum supported Home Assistant version has not been established by runtime testing yet.
After this repository has been published as a public GitHub repository:
- Open HACS in Home Assistant.
- Open the menu and select Custom repositories.
- Paste
https://github.com/whins/viewe-ha-integrationand select Integration as the category. - Add the repository, find VIEWE Smart Panel, and download it.
- Restart Home Assistant.
- Go to Settings → Devices & services → Add integration and select VIEWE Smart Panel.
- Leave MQTT disabled for ESPHome. For legacy firmware, enable MQTT and keep
the topic prefix
vieweunless your panels use a different prefix. - Open VIEWE Smart Panel in the sidebar.
HACS downloads the integration files; adding the integration through Home Assistant is a separate step. A GitHub release is optional for custom repository installation: HACS can download the default branch. See the official HACS integration requirements and custom repository instructions.
- Copy
custom_components/viewe_smart_panelinto<config>/custom_components/viewe_smart_panelon the Home Assistant machine. On Home Assistant OS, the resulting manifest path is normally/config/custom_components/viewe_smart_panel/manifest.json. - Restart Home Assistant.
- Follow steps 6–8 in the HACS installation instructions above.
- Create a profile. Its page list contains Weather, followed by Lighting.
- Configure each visible page and select its Home Assistant entity.
- Save stores the draft without updating panels.
- Apply validates the saved profile and records an applied snapshot, then sends it to all panels assigned to that profile.
- Once a panel with compatible firmware connects, assign an applied profile in Panels. Use Refresh status to see its acknowledgement.
You can save an unfinished profile or a profile with no visible pages. Applying requires at least one visible page and valid entity bindings for all visible pages. An unavailable panel receives the latest applied snapshot after reconnecting; unapplied draft changes are never delivered.
To delete a profile, use Delete profile in the profile list and confirm.
Assigned profiles cannot be deleted: first assign another profile or select
No profile in Panels. Deletion removes both the draft and applied snapshot
and refreshes online panels' catalogs. Offline MQTT panels receive the authoritative
catalog and active configuration on reconnect; profile: null clears an MQTT
assignment. Native API unassignment queues a device reset to YAML.
Broker credentials belong exclusively to the Home Assistant MQTT integration.
Do not add secrets, local configuration.yaml, or .storage files to this repository.
python scripts/check_packaging.py
python -m unittest discover -s tests -v
python -m compileall -q custom_components
node --check custom_components/viewe_smart_panel/frontend/panel.js
node --test tests/test_frontend.mjs
The model and MQTT behavior tests use explicit fakes at Home Assistant boundaries. They verify local logic, not actual loading or compatibility with an installed Home Assistant version. The suite covers profile lifecycle, MQTT behavior, template compatibility, Native API discovery/receipts/reset/resume, firmware limits, language selection, locale parity, and editor rendering. Frontend tests use a lightweight DOM boundary fake, not a real browser.
The GitHub validation workflow checks local tests, syntax, Home Assistant integration metadata with hassfest, and HACS repository requirements after publication. Remote validation has not been run yet. See HACS publishing for the remaining publication steps.
Runtime verification still requires a test Home Assistant instance, desktop and mobile inspection of the editor and compatible firmware. An MQTT broker is required only when verifying legacy transport.
- Native API discovery uses HA ESPHome runtime fields isolated in
native.py. Real HA runtime compatibility must be checked; no minimum HA version is claimed. - ESPHome profile compatibility uses the exact bundled firmware schema. Legacy MQTT compatibility uses advertised template versions and excludes new options.
- ESPHome supports automatic lighting types and whole-hour umbrella settings. Existing MQTT profiles with manual types or minute offsets need adjustment before Native API assignment; conversion does not silently change them.
- Native profile selection is currently in HA; the component has no profile catalog action. Display-side reset returns to YAML and blocks remote overrides until explicitly resumed in HA.
- Screensaver and hardware settings remain in ESPHome YAML.
- BC-250 requires a guard script installed separately in HA; its existence is checked, but custom script behavior cannot be inferred by this integration.
- Diagnostic entities, export/import and display-shape adaptation are not implemented. Editor status updates use Refresh status.
- Legacy MQTT's bounded command cache is not a persistent replay journal. Configure broker topic ACLs for legacy devices; panel IDs are not credentials.
The firmware project is maintained separately as viewe-smart-panel. In a sibling
checkout, the agreed design requirements are in its docs/panel-profiles-design.md,
docs/lighting-design.md, and docs/weather-design.md. That sibling checkout is
not required to install this integration.
The implementation follows Home Assistant's
Config Flow
and custom panel
interfaces. All runtime assets, including the sidebar JavaScript, are bundled inside
custom_components/viewe_smart_panel.
Update panel firmware before applying a CCT profile: previous firmware rejects that resolved type. After updating HA, save and apply existing AUTO profiles again so temperature-only lights resolve to CCT instead of MONO. CCT has a single temperature button opening cct; RGB and RGBW both open rgbw.
The Switch template selects a switch.* entity and sends turn_on, turn_off, or toggle without lighting parameters. Firmware must advertise switch: 1; older panels cannot apply profiles containing a visible switch page. State updates come from HA. Update the integration and firmware together.
Switch support is packaged in version 0.1.4. Add a page, choose Switch, select a switch entity, then Save and Apply the profile. New profiles still start with Weather and Lighting; Switch is added explicitly. Runtime verification of Switch in HA and on the panel is pending.
The Actions template displays one or two script/automation names. Two targets occupy the upper and lower halves separated by a horizontal line. Tap a name to run it; unavailable targets are disabled independently. Add Scripts / automations in the profile editor, select 1 or 2 actions, choose script.* or automation.* entities, and optionally supply display names (blank uses the HA friendly name when applying). Update both firmware and integration before applying. Firmware advertises actions template version 1. Device and real HA verification remain pending.
Scripts use script.turn_on. Automations use automation.trigger with HA default condition skipping, including disabled automations. This runs actions manually; it does not enable the automation. Script variables and simulated trigger data are not configurable in this template.
Add a BC-250 page in the profile editor. Select the ESPHome BC250 Power
button and BC250 Running binary sensor (TPMS1); entity IDs depend on your
installation. Save and apply the profile after updating firmware that advertises
capabilities.templates.bc250: 1. ESPHome setup uses the guarded switch preset
described in the Native API guide.
The page starts only while confirmed off. The Steam icon pulses for up to 10 seconds, returns to gray on timeout and allows retry; on confirmation it becomes blue/white. Offline is crossed out and disabled. HA rechecks Running before pressing the controller button; the page cannot request shutdown. The UI timeout does not change ESPHome's own startup deadlines or cut PSU power. Runtime checks on the panel and in Home Assistant remain pending.
Each panel card in Panels includes Active profile controls for the assigned published profile. It reads the original HA entities, never unsaved draft changes: lights and switches can be toggled, scripts and automations can be run, and Details opens the standard HA entity dialog (including thermostat controls). Sensor and weather values update from HA. Shared profiles expose the same entities on each panel card; no duplicate or reassigned entities are created. Controls remain useful when the display is offline. A delivery hint identifies profiles the display has not yet confirmed.
Hidden and demo widgets are excluded from live controls. Unavailable targets
cannot be operated. BC-250 only offers guarded start while its running sensor
confirms off; it never exposes the raw Power button. Install the bundled
viewe_guarded_start.yaml script before using BC-250 start.
Released under the MIT License, approved by the maintainer.
Version 0.2.5 includes the active-profile controls from 0.2.4 and fixes release metadata for HACS/hassfest validation.
Every widget has a required Widget name, used for its entry in the profile and the display's Active widget diagnostic. Display label (optional) is independent; leave it blank for no display caption, or hide a supplied label with Show widget label. Changing the selected entity may suggest an automatic widget name until the name is edited; it never fills the display label. Existing drafts and applied snapshots migrate their old name to label only when label is absent. Explicitly empty labels remain empty. Widget IDs, entity bindings, profile assignments and revisions are preserved by this migration.
ESPHome profiles now use schema version 2. Update the display firmware first; new firmware still reads version 1 profiles and cached assignments. Legacy MQTT panels support only their original naming, where label equals name; profiles requiring independent/empty captions are incompatible with them. Local checks: 80 Python tests, 36 frontend tests and packaging passed. Live HA form verification remains pending. Installation in HA is performed by the user.
Clock widgets have a Clock theme selector alongside Time format:
| Theme | Native value | Display |
|---|---|---|
| Large digital | digital | Large time, weekday and full date. |
| Two rows | stacked | Hours above minutes, with a blue accent. |
| Analog | analog | Dial, three hands and date. |
| Seconds ring | seconds_ring | Digital time, seconds progress ring and date. |
The Ukrainian interface uses the names agreed in the design review. Existing profiles default to Large digital; choosing a theme leaves entity bindings, widget name, display label and 12/24-hour format unchanged. Update display firmware before selecting non-default themes. Default digital is omitted from Native JSON for compatibility with existing clock firmware. Clock time remains local to ESPHome and does not require a clock entity in Home Assistant.
Action feedback uses Home Assistant's native toast manager instead of inserting banners above the editor content. Successful actions disappear after four seconds. Errors remain dismissible and offer Details, which opens the full message in a modal with selectable plain text. Background refresh failures are reported once per distinct error and clear on recovery. Failed initial loading has an explicit Retry button and does not retry on every HA state update.
An assigned panel's delivery/application failure lasting at least two minutes, or offline state lasting at least five minutes, creates one persistent HA notification. Checks run every 30 seconds. Unassigned panels and deliberate local profile overrides are excluded. Notifications clear after recovery, unassignment, panel removal or integration unload. Repeated checks do not recreate a manually dismissed warning in the same problem episode. Notification IDs are scoped to the integration prefix and panel; unrelated HA notifications are never touched. These backend warnings also work while the editor is closed.
This update affects the integration only; display firmware is unchanged.