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

[REST] Issue an event when configurations have changed #3701

Open
spacemanspiff2007 opened this issue Jul 13, 2023 · 2 comments
Open

[REST] Issue an event when configurations have changed #3701

spacemanspiff2007 opened this issue Jul 13, 2023 · 2 comments
Labels
enhancement An enhancement or new feature of the Core

Comments

@spacemanspiff2007
Copy link
Contributor

With oh4 it's possible to read the available transformations.
However openHAB does not sent an event when a transformation changes making caching the transformations very hard.
It would be nice if an event would be sent if any transformation changes (e.g. TransformationChangedEvent).

Imho this event doesn't have to have the fine granularity of the item events - a generic ConfigurationUpdatedEvent would also be enough which would contain "transformations".
That way it could be reused for e.g. thing actions or e.g. #3611.

@spacemanspiff2007 spacemanspiff2007 added the enhancement An enhancement or new feature of the Core label Jul 13, 2023
@florian-h05
Copy link
Contributor

Implementing caching for transformations should actually be really simple, just implement a RegistryChangeListener for the TransformationRegistry (like it’s done for the other registries in #3335). But for external systems, it would be helpful to have such events.

@spacemanspiff2007
Copy link
Contributor Author

An event for #3729 would also be nice

@spacemanspiff2007 spacemanspiff2007 changed the title [REST] Issue an event when transformations have changed [REST] Issue an event when configurations have changed Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or new feature of the Core
Projects
None yet
Development

No branches or pull requests

2 participants