-
-
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
[persistence-addons] Implement QueryablePersistenceService where appropriate #12663
Comments
Thanks for reporting this missing feature. To store values in persistence via REST interface the services have to implement the I will try to have a look later into mapdb and jdbc how it can be archived.
|
Thank you @cweitkamp for stepping in! That's really nice of you. |
Does it really make sense to implement this interface for MapDB as it only can store the last value? Please continue discussion in #11923. |
…erface If PRs are created to implement this interface, it would be better if we can prevent the propagation of old APIs like Date. Related to: * openhab/openhab-addons#11922 * openhab/openhab-addons#11923 * https://github.com/openhab/openhab-core/issues/2618#issuecomment-1003544762 Signed-off-by: Wouter Born <github@maindrain.net>
…nceService interface (#2660) If PRs are created to implement this interface, it would be better if we can prevent the propagation of old APIs like Date. Related to: * openhab/openhab-addons#11922 * openhab/openhab-addons#11923 * https://github.com/openhab/openhab-core/issues/2618#issuecomment-1003544762 Signed-off-by: Wouter Born <github@maindrain.net>
@cweitkamp It's possible to implement only the store part without removing one and throwing a not-supported exception? InfuxDB 2.0 it's not very supportive in deletes, and implementing full FilterCriteria won't be possible and require some work. |
Yes, I think so. Just throw an |
I've added #12013 to track InfluxDB implementation |
Thanks. I have updated my list in #12663. |
I have found out the the persistence service is taking the timestamp from the database system and not from the date/time the item is changed/updated. In my case i have differences between the timestamps sometimes of mor than half an hour. Maybe it is an approach to set the timestamp in general from openhab and not from the database system. |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/persistence-irritation/134307/7 |
@TBail Using different time sources sounds like a bad idea. However, it is up to the persistence service implementation to determine the correct way to store values. I had a look at JDBC and it would be easy to use the |
While working on some persistence rules i tried to use the API to save some data to a persistence service. Unfortunately this idi not work.
To find out what is wrong with my code i tried the same with the api explorer in OH3 latest nightly. I used the
PUT /persistence/items/{itemname}
with appropriate parameters, but unfortunaltely i got an error with both services installed. i used (influxdb and mapdb). The error is
To ensure the the parameters like service id and time etc are working in general i tried ti retrieve persistence data. This worked very well.
Based on this i assume that writing persistence data with thw rest api does not work.
The text was updated successfully, but these errors were encountered: