Hello,
is it somehow possible to combine (chain) multiple profiles in OH?
My example is the following: I got a number (percentage) channel for a battery level. I would want to transform it into a LowBattery Contact. Therefore I want to use the hysteresis profile. If I would use a switch, this would work as a charm, but due to me wanting to use a Contact, I would need a transformation profile, additionally.
Somehow like:
I know, I could write a JS function to do both steps in one or use a proxy item but I stumbled upon multiple use cases where it could become handy to chain profiles.
No. You can only apply one. If you need more youâll have to write it as a rule or a JS transform. There is a fundamental limitation on how Profiles actually work that make implementation of chaining difficult to impossible.
Thing is - you canât make sense of these profiles in UI. You canât use same profile twice. Maybe more feasible way for you would be chained transformation from smarthomej made by @J-N-K?