Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hashing sensor configurations #308

Open
oscgonfer opened this issue Mar 4, 2024 · 1 comment
Open

hashing sensor configurations #308

oscgonfer opened this issue Mar 4, 2024 · 1 comment
Milestone

Comments

@oscgonfer
Copy link
Contributor

With the refactor we are losing the capacity to know what a particular device contains in a quick way (i.e. SCK2.1 + CO2).

The blueprint concept allowed us to make device configurations and put a name on them, but it's rigidity did not allow for adding and removing sensors dynamically.

Considering this, it would be good to come up with a way to generate a hash from the sensors that are active in a certain device that could allow us to filter devices, or to generate names for that. A little bit like the concept of a blueprint, but a dynamic one, which can change per device without the user having to do anything with it.

The hash could be checked for certain sensors (i.e. sensors that have ancestries for instance) in order to determine a friendly name. For instance, a device SCK 2.2 could be turned into SCK 2.2 + CO2 because the sensor_hash contains a sensor that maps to a sensor_ancestry (or in itself) whose friendly name is CO2.

@oscgonfer oscgonfer added this to the Post-refactor milestone Mar 4, 2024
@pral2a
Copy link
Member

pral2a commented Mar 7, 2024

It can be interesting to look into things like locality-sensitive hashing to cluster blueprints with similar but not exact same features.

@oscgonfer oscgonfer modified the milestones: CitiObs, Long term Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants