Skip to content

Add Home Assistant connection, import, and interaction#297

Open
Niutels wants to merge 75 commits intopascalorg:mainfrom
Niutels:dev-lovelace
Open

Add Home Assistant connection, import, and interaction#297
Niutels wants to merge 75 commits intopascalorg:mainfrom
Niutels:dev-lovelace

Conversation

@Niutels
Copy link
Copy Markdown

@Niutels Niutels commented May 7, 2026

Summary

  • Adds a Home Assistant connection flow for Pascal, including LAN instance discovery, OAuth linking, logout/unlink, and connection status handling.
  • Imports Home Assistant entities, scenes, scripts, automations, groups, and supported device actions into the Pascal smart-home panel.
  • Lets imported Home Assistant resources bind to Pascal collections/items and appear as room-level controls in the editor.
  • Adds interactive room control pills for triggering, toggling, and adjusting linked Home Assistant devices from the Pascal scene.
  • Preserves authored smart-home bindings and grouped room-control layouts across scene reloads.

Package layout

  • packages/home-assistant owns the Home Assistant integration logic used by the Pascal editor and Lovelace runtime: discovery/connect helpers, imported resource modeling, smart-home binding presentation, room-control overlays, editor panel pieces, and HA action dispatch helpers.
  • packages/lovelace-card owns the Home Assistant dashboard card distribution: the custom Lovelace element, embedded Pascal viewer runtime, HA state/action bridge, demo artifact generation, HACS release preparation, and the root dist/pascal-viewer-card.js bundle consumed by HACS.

Demo

Home Assistant Pascal demo

HACS Lovelace embed

Pascal embedded in Home Assistant via HACS

Niutels added 30 commits April 22, 2026 11:07
# Conflicts:
#	packages/editor/src/components/ui/panels/panel-manager.tsx
#	packages/viewer/src/store/use-viewer.d.ts
#	packages/viewer/src/store/use-viewer.ts
votong pushed a commit to votong/pascal-editor that referenced this pull request May 8, 2026
…mbnails + mobile editor UI

Port floorplan item thumbnails, full mobile editor UI, and
mobile polish from the private monorepo into the public editor.

Monorepo PR pascalorg#297 (feat/item-admin-advanced):
- Add optional floorPlanUrl to item asset schema (core)
- Render 2D floor-plan images inside item footprints on floorplan
- Improve slider drag with modifier key re-anchoring

Monorepo PR #302 (feat/mobile-ui):
- Mobile editor layout with draggable bottom sheet
- Mobile tab bar, selection bar, and panel sheet
- Mobile-aware panel manager and panel wrapper
- useIsMobile rewrite (useSyncExternalStore, SSR-safe)
- Camera actions hideOrbit prop
- GridSnapControl and SecondaryToggles exports
- Action menu hides on mobile contextual tabs
- SidebarTab extended with mobileDefaultSnap/mobileIcon

Monorepo PR #306 (feat/mobile-ui-polish):
- Touch gesture mapping for camera controls (one/two/three finger)
- Snap ratio constants for bottom sheet
- Thumbnail generator WebGL2 fallback (bottom-up row flip)
- ErrorBoundary scope logging, viewer scene wrap
- GPUDeviceWatcher enhanced logging and uncaptured error handler
- WebGPURenderer init error handling and diagnostics
- Post-processing log improvements
- MergedOutlineNode WebGL2 FBO corruption fix

Excluded: apps/community/*, apps/editor/*, packages/community-*,
.cursor/*, .env.example (monorepo-only files)

Co-authored-by: Pascal <open@pascal.app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant