architecture
architecture copied to clipboard
User presence and multiple zones
Context
Hi all, I found restriction regarding user presence. In these use cases: As user I want:
- Have two (or more) places (homes / floors, etc) where I want check presence of persons. For example set individual alarms or activate devices. Now I cannot distinguish where the user is if the class User state is only home / not_home.
- Have zones in home, to automatize devices depending on people presence. For example is user Jedi7 in home? Turn off alarm. Is Jedi7 in home and bed? Turn on alarm.
Proposal
Remove zone presence from User and move presence of users into Zones. So we can create default zone Home. And we can ask Zone "Home" is somebody inside? Also we will be able to create sub zones like have zone "Home" and inside zone "Kitchen", "LivingRoom", etc.
Consequences
Find out how to connect it properly to trackers. User badge will not show position of User, but zones will show present users.
Start
If we agree on some architecture, I'm able to participate on programming. Probably will be ideal to start with the Zone presence as it should not break things.
So what you think? Ideas? :)
Wouldn't it he enough to have sub zones and persons are present in such a sub zone? I don't understand why we need a move of the presence.
@escoand Hi, I'm a little confused. We have sub zones? Or can you please show your idea how it can be done now? For example if user is in Home and in (sub) zone Kitchen. How it can be visible in the Person component? Thanks :)
No we haven't but in my opinion this would be enough for your request.
This architecture issue is old, stale, and possibly obsolete. Things changed a lot over the years. Additionally, we have been moving to discussions for these architectural discussions.
For that reason, I'm going to close this issue.
../Frenck