netcarlos
(carlos)
October 14, 2022, 12:18pm
1
I seem to be unable to get more granular values than the default “EveryMinute
”…
I’m trying with the following persist file:
Strategies {
every10Sec : "*/10 * * * * ?"
everyMinute : "0 * * * * ?"
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
default = everyChange
}
Items {
* : strategy = everyChange, everyMinute
detailedTag*, Temperature* : strategy = everyChange, every10Sec
}
I need values in the group Temperature
to be persisted in influx every 10 seconds…
Persist file seems to be correctly loaded at each service startup…
2022-10-14 10:32:34.137 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'influxdb.persist'
There are no errors in my logs… (checked with LOG:SET DEBUG org.openhab.persistence.influxdb
).
Thanks!
Hi,
I am propably not qualified to answer as i use infludb but wihout config file… so it just persists everything it can persist.
Anyway just to understand better:
Temperature is the name of the group with all your temperature items - right?
what is it doing right now? Is it persisting every change only? or something like in your row with the *? or nothing at all?
Greetings Manuel
1 Like
netcarlos
(carlos)
October 14, 2022, 1:26pm
3
borderbridge:
Temperature is the name of the group with all your temperature items - right?
Yes.
Currently only everyChange and everyMinute…
The problem seems to be in Items (group *) declaration.
If I change it to
Items {
* : strategy = everyChange, every10Sec
}
It starts logging everything each 10 seconds properly.
I think you are confusing Tags and groups
I think it is Part of this
* : strategy = everyChange, everyMinute
not of this
detailedTag*, Temperature* : strategy = everyChange, every10Sec
Because Temperature*
means all Items in the Temperature Group . I am not 100% shure but i think you cant use a tag here.
Where the red arrow is you should have Temperature in your item.
This item here is Part of the gDG_Corridor Group… as an example
Du you create your items through *.items files or in the ui?
1 Like
netcarlos
(carlos)
October 14, 2022, 1:49pm
5
My items were detected through the scan feature of zwave binding in UI.
I thought I saw some users using tags to declare items there. It seems flexible that way instead of declaring each by name. So it seems like I can’t mark items I want to persist more frequently in UI… I don’t see Groups anywhere in UI.
As i told you i am not shure.
but you could create a group named Temperature. Simply add this to any *.items file
Group Temperature
An then go to the item in the UI, add it to that group and see if it works.
I read nothing about Tags in the documentation of the persistence file
let me know if this works.
1 Like
So it seems like I can’t mark items I want to persist more frequently in UI… I don’t see Groups anywhere in UI.
I never made Groups in the ui, but i think its what you create under model in the settings
1 Like
opus
(Jürgen Baginski)
October 14, 2022, 4:24pm
8
You can create an item of type Group!
2 Likes
netcarlos
(carlos)
October 14, 2022, 5:10pm
9
Thanks @borderbridge for explanation!
Thanks @opus for the trick, that did the job!