Created a page (using the UI) with a slider connected to a bulb white color temperature which can go from 2202 to 6500. Which also is set as min and max value on the slider After saving the there’s an error in the log an the Page is noch showing inside the basic ui. The error is:
Cannot build sitemap page_2625964428
java.lang.ClassCastException: class java.math.BigDecimal cannot be cast to class java.lang.Integer (java.math.BigDecimal and java.lang.Integer are in module java.base of loader 'bootstrap')
Slider can only work with a decimal type I think which means it only really works with those Items that carry a PercentType state (Dimmer, Rollershutter, etc.). The error is indicating that it can’t convert between BigDecimal (which holds a floating point number and which is what DecimalType that is held by a Number Item uses) and Integer. Based on that I’d say that a Slider cannot be used with a Number Item.
Tried that …actually nothing changed. Switched now to setpoint which works but not so comfortable as a slider would do. But the error with slider is still weird
exactly …but now tried something new. Edited the metadata on the item. Added a state description with min 2400 and max 6500 (step 10). Now added a slider to the sitemap with min and max value as used before.
No more errors and the slider is doing well …strange.