I am an absolute beginner with MQTT and OPENHAB.
I flashed my LSC Smart Connect LED with Tasmota.
Now I would like to have a slider for the color temperature in OPENHAB. However, the sliders can only be used from 0-100 percent, but the color temperature ranges from 153 to 500.
Does anyone have a tip on how I can do this?
Sound good. Next step should be to configure a slider to use with color temperature. Just di it like the dimmer or RGB Slider and the post a screen shot. Typically you will have a more button on the screen just use it to see al the options.
These are the settings for the color temperature slider.
I think my thinking error is the absolute minimum and absolute maximum, this is about setting a limit between 0 and 100. But I have no idea how else to configure it.
Real-world devices are represented as Things in OH, in bindings that convert to different device technologies…
Things have channels to link them to openHAB Items.
Items are openHAB’s simple internal model of the world - switches, numbers, dimmers. Rules and user interface operate on these Items.
PaperUI is an administrator’s interface - it allows you to alter e.g settings of channels, and offers test tweaking of values, but it does not provide any control over what is displayed.
The proper user interface - you would choose from BasicUI or ClassicUI or HABpanel or other apps - allows you to tailor the display and controls that you want.
So, when you say -
really you have configured a channel, and made it a dimmer type.
Normally you would link that to a Dimmer type Item for further use in your UI or rules.
In openHAB’s world of simple Items, Dimmers are always 0%-100% objects.
I believe you are using the channel’s “absolute Minimum” and “absolute Maximum” settings in the correct way here, to convert 0-100 into 153-500.
I am not so sure these work properly in all OH versions though.
You can monitor what MQTT messages are sent by using some third party tool, like mqtt.fx
Yes you are using stable and 2.4 is the most recent stable. You would have to switch to a milestone or snapshot version which are testing versions
updating to a newer version of openhabian is currently broken! the location of the download to install java moved from where it is hardcoded into the script and the install fails. There is a workaround but it requires editing the scripts.
I know you said you were a beginner so now your head is probably really spinning. Search openhabian install or upgrade failed in forum for more info on that situation.
Perhaps to add confusion, it’s only the MQTT binding you need to update really.
Upgrading the whole system is a bit scary until openHAB gets a new stable release, and openhabian release catches up with that
But individual bindings can be upgraded. There is no guarantee that example binding 2.5.99 will work on base openHAB 2.4, but they usually do.
If it were me, I would look into whether current MQTT binding works on 2.4 and how to upgrade to it.