Setpoints and rollershutter items are not handling labelcolor and valuecolor attributes in sitemap

  • Platform information:
    • Hardware: Raspberry 2B
    • OS: openHABian 2.4.0-1
    • Java Runtime Environment: openjdk version “1.8.0_152”
    • openHAB version: 2.4.0-1
  • Issue of the topic: color handling of setpoint and rollershutter items in sitemap is not working
  • Please post configurations (if applicable):
    • Items configuration related to the issue
Switch FrontDoorLightAutoOff         "Haustür AutoAus"                      <clock>     (gRestoreOnStartup)
Number FrontDoorLightAutoOff_Time_H  "Haustür AutoAus Stunde [%s]"          <clock>     (gRestoreOnStartup)
Number FrontDoorLightAutoOff_Time_M  "Haustür AutoAus Minute [%s]"          <clock>     (gRestoreOnStartup)
String FrontDoorLightOnTrigger       "Trigger um Außenlicht einzuschalten"  <sunset>    (gRestoreOnStartup)
DateTime FrontDoorLightOnTime        "Zeit = [%1$tH:%1$tM]"                             (gRestoreOnStartup)

Rollershutter RollladenSofaOst_Command      "Rollladen Sofa Ost Command"                <rollershutter> (gGF_LRS_Blinds_Actors)  {channel="homematic:HmIP-FROLL:OEQ0608684:001158A98F1FBE:4#LEVEL" }
  • Sitemap configuration related to the issue
    Frame label=LichtAutomatik icon=light {
        Switch   item=FrontDoorLightAutoOff                         labelcolor=["fuchsia"] mappings=[ON="Auto an", OFF="Auto aus"]
        Text label="Licht vor der Haustür wird ausgeschaltet um"    labelcolor=["fuchsia"] visibility=[FrontDoorLightAutoOff==ON]
        Text label="Licht vor der Haustür wird nicht ausgeschaltet" labelcolor=["fuchsia"] visibility=[FrontDoorLightAutoOff==OFF]
        Setpoint item=FrontDoorLightAutoOff_Time_H  labelcolor=["fuchsia"] label="Stunde [%s]"  minValue=0 maxValue=23 step=1 visibility=[FrontDoorLightAutoOff==ON]
        Setpoint item=FrontDoorLightAutoOff_Time_M  labelcolor=["fuchsia"] label="Minute [%s]"  minValue=0 maxValue=59 step=1 visibility=[FrontDoorLightAutoOff==ON]
        Switch   item=FrontDoorLightOnTrigger       labelcolor=["fuchsia"] mappings=["SUN_SET"="Sonnenunter.", "CIVIL_DUSK"="Ziv. SU", "NAUTIC_DUSK"="Naut. SU", "ASTRO_DUSK"="Astron. SU", "NIGHT"="Nacht"] visibility=[FrontDoorLightAutoOff==ON]
        Text item=FrontDoorLightOnTime              labelcolor=["fuchsia"] valuecolor=["fuchsia"] visibility=[FrontDoorLightAutoOff==ON]
    Frame label=Jalousien icon=blinds {
        Default item=RollladenSofaOst_Command  label="SofaOst" labelcolor=["lime"] valuecolor=["lime"]
        Slider  item=RollladenSofaOst_Command  label="SofaOst" labelcolor=["lime"] valuecolor=["lime"]

The elements

  • Setpoint item=FrontDoorLightAutoOn_Time_H
  • Setpoint item=FrontDoorLightAutoOn_Time_M
  • Default item=RollladenSofaOst_Command
    do not have any color.

Is this feature not yet supported?

1 Like

Not sure about the feature support but OH 2.3 is now old.

Try in ClassicUI as well


OK. I will try my luck with 2.4


I just updated to Openhab 2.4.0-1, but still Rollershutter and Setpoint text remains grey.

In the sitemap, if you remove Default and use Text what happens?

1 Like

@H102: If I use “Text” the color changes :slight_smile: , but my controls are gone :frowning:.

You were only asking for color.:grin:JK

For the controls, pick something like Setpoint, Slider, Selection, etc…

1 Like

Your java version is a bit old… Time to update to the latest Java8 - 1.8.0_181

Hi Vincent,

sorry for the late reply, but I was away for some time. Christmas came totally surprisingly :slight_smile:

Anyway. I updated now to

java version "1.8.0_191"
Java(TM) SE Runtime Environment (build 1.8.0_191-b12)
Java HotSpot(TM) Client VM (build 25.191-b12, mixed mode)

But still the same issue exists :frowning:

    Frame label=LichtAutomatik icon=light {
        Switch   item=FrontDoorLightAutoOn                          labelcolor=["lime"] mappings=[ON="Auto an", OFF="Auto aus"]
        Text label="Licht vor der Haustür wird angeschaltet um"     labelcolor=["lime"] visibility=[FrontDoorLightAutoOn==ON]
        Text label="Licht vor der Haustür wird nicht angeschaltet"  labelcolor=["lime"] visibility=[FrontDoorLightAutoOn==OFF]
        Setpoint item=FrontDoorLightAutoOn_Time_H   labelcolor=["lime"] label="Stunde [%s]"  minValue=0 maxValue=23 step=1 visibility=[FrontDoorLightAutoOn==ON]
        Setpoint item=FrontDoorLightAutoOn_Time_M   labelcolor=["lime"] label="Minute [%s]"  minValue=0 maxValue=59 step=1 visibility=[FrontDoorLightAutoOn==ON]
        Switch   item=FrontDoorLightOffTrigger      labelcolor=["lime"] mappings=["NIGHT"="Nacht", "ASTRO_DAWN"="Astron. SA", "NAUTIC_DAWN"="Naut. SA", "CIVIL_DAWN"="Ziv. SA", "SUN_RISE"="Sonnenaufgang"] visibility=[FrontDoorLightAutoOn==ON]
        Text item=FrontDoorLightOffTime             labelcolor=["lime"] valuecolor=["lime"] visibility=[FrontDoorLightAutoOn==ON]
    Frame label=Jalousien icon=blinds {
        Default item=RollladenSofaOst_Command  label="SofaOst [%d]" labelcolor=["lime"] valuecolor=["lime"]
        Slider  item=RollladenSofaOst_Command  label="SofaOst [%d]" labelcolor=["lime"] valuecolor=["lime"]
        Default item=RollladenSofaSued_Command label="SofaSüd [%d]"
        Slider  item=RollladenSofaSued_Command label="SofaSüd [%d]"

Since the update have you cleared the cache and rebooted the RPI?

sudo systemctl stop openhab

sudo openhab-cli clear-cache

sudo reboot

Thanks @H102.

I did do the reboot with

sudo systemctl stop openhab2
sudo openhab-cli clean-cache
sudo reboot

But it didn’t change.

By the way I found out that it “works” differently in all kinds of viewers. So it looks like it’s more a view problem than an OpenHAB problem.

I think the “widget” for setpoint etc. is ported separately for each UI i.e. different code.

I recently raised an issue for (long standing) deficiency in setpoint widget for dynamic icons. It’s not unreasonable to suppose there are other parts that got left behind as Sitemaps developed. Cook up a simple demonstration and raise an enhancement request.