Proposal: Floor Plan Entity #950
Replies: 3 comments 5 replies
-
Nice exploration of this topic. I was remembering that since we started discussing this, there was also a new image entity that was introduced. I wonder if the image entity could be a basis for this? (either as an initial starting place or as an end solution with additional attributes associated with images down the line). Could the integration render the image with the objects on it itself? That may not work, but my line of thinking here was to consider separating out these concerns can help us get to as simple as possible proposal:
|
Beta Was this translation helpful? Give feedback.
-
I have to say reading this it doesn't sound like an entity. |
Beta Was this translation helpful? Give feedback.
-
It's worth considering how it might interact with ha-floorplan. They have a note about how time-consuming it is, and vacuum data could help that. They use SVG elements for rendering, so maybe it makes sense to translate the map data into SVG shapes/paths and attach that to areas or devices? This could all then be exposed in JSON over the websocket interface, like zones are. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
per comments on home-assistant/core#93633 and #913 (reply in thread)
Floor Plans
Floor plans would be specified by an integration with a list of rooms
A room would contain the following information:
This would probably not be updated, or not be updated frequently as it will likely be a time consuming task.
Floor Plan Object
There would be a secondary object called a floor plan object. This object can be updated if desired. In the example of a Vacuum cleaner floor plan, this is where you would put the vacuum cleaner.
This would contain the following information:
These Floor plan objects could be added through a service (or potentially a ui option). This way, you could use the floor plan provided by your vacuum, and add objects in your house throughout the floor plan. i.e. if I wanted to add a button for lights, I could do that and I would give the location I want it to go on the floor plan. Then when I click on it, it would turn my lights on or off.
They should also be able to be disabled/enabled.
Unknowns:
Edit: My solution to that problem is that it should probably be a many to one relationship. Many rooms can be part of one area, but not the other way around, if it is the other way around, more areas should be created or rooms should be deleted.
Beta Was this translation helpful? Give feedback.
All reactions