-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[influxdb] Use semantic model for structuring InfluxDB storage #9556
Comments
You can achieve this using the metadata for InfluxDB. Nonetheless, I do agree with you; why should we add the same information once again in the metadata. Currently I use the following metadata structure and most information is just duplicated:
It allows me, as you mentioned, to quickly group measurements by location/area/zone and to use other information such as the measurementProperty in the axis descriptions. -- |
|
This is working since the Influx Persistence addon as of OH3 (there used to be an unofficial version for OH2.5 but it was decided to officially merge the feature only into the addons for OH3). It’s working flawlessly with InfluxDB 1.x as well as 2.0. I recently switched to 2.0 but I’m still struggling with FluxQL in Grafana and currently it’s slow in Grafana (but this is in no report to OH or the persistence addon). |
@dlaplexurenet thanks for this information. As I'm writing an openhab configuration creator at the moment, before switching completly to OH3, it should be no problem to add this to the generation of items files. I will give it a try. The only thing not working if I see correctly is to define a seperate measurement, correct? |
Using metadata at items definition works fine for me. So will close this issue. |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/using-tags-for-providing-floor-to-influxdb/130943/1 |
To make easier to build powerful graphic respresentations of measurements for huge amount of sensors the kind of storing measurement points into influxdb should be changed.
Making it easy to query for example all temperature measurements of groundfloor. Or all battery curves of first floor.
In my opinion this can be achieved very easily by using the "new" OH3 semantic model.
First there should be no measurement per item but by
property
type. Second there should be a tag with item name and one with item label. Third there should be tags representing the location tree of this item.This would give in influxdb
series
like this:And an single select to get all temperatures of a room or floor for example all of groundfloor:
The text was updated successfully, but these errors were encountered: