-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
Time series support for Group items #3869
Comments
But isn't the group correctly updated when the member states are restored? |
Indeed it is. I'm wondering if it would also be possible to have the group receive time series and create a new time series, similar to what Group:Number:SUM SumGroup
Number Item1 (SumGroup) { channel="acme:acme:channel1 }
Number Item2 (SumGroup) { channel="acme:acme:channel2 } Events:
As a result, the following time series would be produced and published for item
I guess this would have been easier achievable with a closer state integration, i.e. #3597 (comment) - if the magic happens only when reaching the event bus? |
I still fail to see what the use-case would be? Calculating future states is extremely difficult, because it needs to be re-done every time a single value for any item in the group has changed. |
It's in the description, and some reasoning for not providing a "total price" channel from the binding is here: At least, at the time it seemed elegant to use the Group Now, it would be cool to be able to create a chart of the future total price. With #3896 it would be possible to create a rule for calculating this instead of using a Group, but it still feels like it would be more elegant simply having the Group do the work without any rules needed.
Yeah, I came to the same realization when I created the example above in my previous post. 😓 |
This issue has been mentioned on openHAB Community. There might be relevant details there: |
@jlaur : is it something to close now ? |
I still think it would be a nice feature to have group aggregations support time series. I might give it a shot at some point. |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/entsoe-binding-4-0-0-5-0-0/149699/60 |
See #3597 (comment)
Currently bindings can publish time series for channels. Transformation Profiles are supported as well.
I don't know if it would be possible to extend time series support to Group items as well, since they can also be persisted?
Example configuration:
Here
EnergiDataService_TotalPrice
represents the total price. Unfortunately time series are not supported, so the future total price cannot be persisted.Historical values can currently be shown in a sitemap chart like this:
The text was updated successfully, but these errors were encountered: