Hi,
I want to add to my settings in OH4 a range slider , something like:
I want to use it to set some min-max values e.g. min max for temperature, and if the value is outside that range, do something, e.g. send a notification.
Right now you can’t. You would just have to use two sliders for this.
The only way for the components to interact with OH items is if you use the oh- version of the components; it requires quite a bit of special function for that to work. Currently the oh-slider is not built to handle the dual mode of the f7-range, it would require some significant modification.
You can certainly file a feature request for this, there are probably quite a few use cases where this is justified.
Hi, thank you for your response!
I tried it and it works partially for me, meaning than the items are not updated after i move the slider’s points with the mouse.
Correct. At the moment it is only configured to send changes to the single value to items/variable. Changes tot he dual min/max settings are not tracked and or processed
An f7 component will never send interaction back to OH items or variables because it lacks the underlying code that connect them. You can always put an f7 component into widget and configure it to work exactly as expected as long as you don’t want to control any OH specific function.
So my answer was with respect to this. That code is the only code anywhere that connects the value(s) of an f7-range to OH items and it ignores the dual value configuration and only responds to the single value configuration.