Nitwel / Immersive-Home

Mixed reality experience for interacting with your smart home in a new dimension.
Apache License 2.0
454 stars 18 forks source link

Floor plan elements in Home Assistant #168

Open goatchurchprime opened 3 months ago

goatchurchprime commented 3 months ago

As part of storing the design and layout of the Immersive Home geometry back into Home Assistant (so that it can be shared with a second headset, and backed up), you should generate Floor Plan pages for each room, as described like this. https://community.home-assistant.io/t/yet-another-sh3d-floor-plan-plugin/684148

They're overdoing the graphics in these examples. Basically you get a single background SVG or image for each room, and then the elements are laid out by percentage values like in a css definition:

- type: state-icon
    entity: light.bathroom
    title: null
    tap_action:
      action: toggle
    style:
      top: 44.76%
      left: 25.65%
      border-radius: 50%
      text-align: center
      background-color: rgba(255, 255, 255, 0.3)

So even if you don't use the headset again you've got your elements in a more spatial UI in the screen app, and the work isn't wasted. It's an excellent way to get an external view of what ImmersiveHome has stored into the database.