-
-
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
[modbus] Do not process values from channel if configured transformation service is unavailable (during startup) #16847
Comments
Looks very similar to openhab/openhab-core#3763 |
@lolodomo True, especially 3763#1745267997 comment nails the issue. |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/oh4-transformationservice-of-type-js-is-unavailable/148786/21 |
@lolodomo @kaikreuzer Are there any ideas on how to solve this? Is it even possible to influence the order? Is there a dependency management for this? |
This is not a core issue. The |
Has anybody found a solution to this? It's really bothering at least for modbus add-on (which ususally requires read/write transforms) |
I found a workaround, which is not really satisfying, but solves the issue atm. I created a transformation script of the same type which I am using in the thing transformation ( |
Expected Behavior
Consistent value range for items.
Current Behavior
When starting or restarting openHAB, services like ModBus poll data from server ignore transformation services (here: JS) when they are not ready. This results in values out of usual value range destroying average calculations and representations (e.g. in Grafana - see screenshot).
Possible Solution
Ignore values from Thing channel when transformation is configured but not available or initialize transformation services earlier or before Things.
Steps to Reproduce (for Bugs)
Your Environment
The text was updated successfully, but these errors were encountered: