Skip to content

feat(import): RAMSES RF device import + import HA floorplan cards - #6

Merged
tinkersoder merged 2 commits into
mainfrom
feat/ramses-import
Nov 4, 2026
Merged

tinkersoder merged 2 commits into
mainfrom
feat/ramses-import

Conversation

@tinkersoder

Copy link
Copy Markdown
Owner

Closes #4.

Two new import paths, both from the toolbar:

RAMSES modal — place evohome / RAMSES-II devices as markers

  • live: ramses_extras/floorplan_helper/get_topology over the HA WebSocket, falling back to HA device/entity/area/floor registries filtered to ramses_cc
  • offline: paste/load a topology result, a floorplan_seed_studio response or Studio project, or raw text with device ids (known_list, schema, packet log)
  • placement into the room mapped to the device's HA area, else a staging row on the matching floor; idempotent, one undo step
  • class icons, group colours, optional labels, extra entities and state rules (offline, battery low, window open, heat demand)

Import card modal — pull floorplan cards already in Home Assistant

  • scans every Lovelace dashboard over the WebSocket (or accepts pasted card/view/dashboard YAML) for custom:floorplan-card and picture-elements, including nested stacks/sections/conditional cards
  • fetches SVG/image/stylesheet/config from /local or /api/image/serve, decodes inline data URIs, or matches user-added files by name
  • ha-floorplan: measures rule-bound elements in-browser -> markers at rendered centre with entities/actions; area.<id>/room_*/closed shapes -> rooms; remaining drawing -> background
  • round-trips Studio exports and Ramses Extras SVGs; picture-elements image -> background, positioned elements -> markers, conditional -> visibility

Verified locally: 42 tests pass, tsc --noEmit clean, vite build clean.

Tinker Söder and others added 2 commits October 25, 2026 20:38
New toolbar "RAMSES" modal that places evohome / RAMSES-II devices as
markers:

- live: Ramses Extras ramses_extras/floorplan_helper/get_topology over
  the HA WebSocket, falling back to the HA device/entity/area/floor
  registries filtered to ramses_cc (token and dashboard-card mode)
- offline: paste/load a topology result, a floorplan_seed_studio
  response or studio project (merged, rooms included, scaled to the
  canvas), or any text with device ids (known_list, schema, packet log)
- placement into the room mapped to the device's HA area (room areaId
  or name), else a staging row on the floor matching the area's HA
  floor; idempotent, one undo step
- class icons + group colours, optional labels, extra entities and
  state rules (offline, battery low, window open, heat demand)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WYxXqbVSPa3Zy3hXS7FyH3
New toolbar "Import card" modal:

- scan every Lovelace dashboard over the WebSocket (or paste card /
  view / dashboard YAML) for custom:floorplan-card and picture-elements
  cards, including ones nested in stacks, sections and conditional cards
- fetch the SVG / image / stylesheet / split-out config from /local or
  /api/image/serve (token only for /api), decode inline data URIs, or use
  files the user adds (matched by name)
- ha-floorplan: measure rule-bound elements in the browser (getBBox +
  CTMs, viewBox origin aware) -> markers at their rendered centre with
  entities and actions; area.<id> / room_* / sizeable closed shapes ->
  rooms (area id kept, exact vertices for straight paths); remaining
  drawing -> background with converted elements stripped, external
  <image>s inlined, collapsed to the raw image when nothing else is left
- round-trips Studio exports (icon via reverse mdi lookup, colour, label,
  state rules) and Ramses Extras SVGs (icon keys, colour, device name)
- picture-elements: image -> background, positioned entity elements ->
  markers, conditional -> visibility
- new project or new floor; room inspector keeps imported HA areas

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WYxXqbVSPa3Zy3hXS7FyH3
@tinkersoder
tinkersoder merged commit 1e44e51 into main Nov 4, 2026
2 checks passed
@tinkersoder
tinkersoder deleted the feat/ramses-import branch November 4, 2026 11:09
@wimpie70

wimpie70 commented Nov 4, 2026

Copy link
Copy Markdown

I noticed the issue got auto-closed, but you didn't answer to my question yet. Do you want a follow-up PR as described in issue #4 ?

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.

feat/import .svg files ?

2 participants