Repository navigation
feat(import): RAMSES RF device import + import HA floorplan cards - #6
Merged
Merged
Conversation
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
|
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 ? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4.
Two new import paths, both from the toolbar:
RAMSES modal — place evohome / RAMSES-II devices as markers
ramses_extras/floorplan_helper/get_topologyover the HA WebSocket, falling back to HA device/entity/area/floor registries filtered toramses_ccfloorplan_seed_studioresponse or Studio project, or raw text with device ids (known_list, schema, packet log)Import card modal — pull floorplan cards already in Home Assistant
custom:floorplan-cardandpicture-elements, including nested stacks/sections/conditional cards/localor/api/image/serve, decodes inline data URIs, or matches user-added files by nameha-floorplan: measures rule-bound elements in-browser -> markers at rendered centre with entities/actions;area.<id>/room_*/closed shapes -> rooms; remaining drawing -> backgroundpicture-elementsimage -> background, positioned elements -> markers, conditional -> visibilityVerified locally: 42 tests pass,
tsc --noEmitclean,vite buildclean.