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
H102
(CM6.5 H102)
December 17, 2018, 1:16pm
2
Not sure about the feature support but OH 2.3 is now old.
All,
Just in time for the holiday season, it is my pleasure to announce that openHAB 2.4 has been published!
You can find all changes in the official release notes and some additional infos in the blog post about it on our new website.
Many thanks to everyone who was involved in making this release possible!
The development version has already switched to 2.5.0-SNAPSHOT now, where all new development will take place.
Kind regards,
Kai
Hi,
OK. I will try my luck with 2.4
Hi,
I just updated to Openhab 2.4.0-1, but still Rollershutter and Setpoint text remains grey.
H102
(CM6.5 H102)
December 17, 2018, 2:27pm
6
In the sitemap, if you remove Default and use Text what happens?
1 Like
@H102 : If I use “Text” the color changes , but my controls are gone .
H102
(CM6.5 H102)
December 17, 2018, 3:05pm
8
You were only asking for color. JK
For the controls, pick something like Setpoint, Slider, Selection, etc…
1 Like
vzorglub
(Vincent Regaud)
December 17, 2018, 4:16pm
9
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
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
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]"
}
H102
(CM6.5 H102)
December 31, 2018, 3:11pm
11
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.
Android tablet
all works except the numbers for Setpoint
Edge on Windows10
also the numbers for Default
==Rollershutter
do not work
Chrome on Windows10
additionally Text for Setpoint
not working
additionally Text for Default
==Rollershutter
not working
rossko57
(Rossko57)
January 9, 2019, 12:17pm
13
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.