Running OH4.2 on an RPI4 using openhabian. Just upgraded from OH4.1
iOS app version is 2.4.56 (1580410531)
Wherever I have a number item displayed as a switch with a mapping applied, the sitemap on the iOS app is showing the state/value of the item even though it isn’t configured to do so. This wasn’t happening prior to upgrading from OH4.1.
Item definition:
//hvac switches
Switch hvac_proxy_power "Airconditioner Power" { autoupdate="false" } //{ homekit="Switchable", autoupdate="false" }
Number hvac_proxy_mode "Mode" { autoupdate="false" }
Number hvac_proxy_fanSpeed "Fan Speed" { autoupdate="false" }
Sitemap:
Text item=Air_Conditioner_Control icon="hvac" {
Frame label="Air Conditioner Control" {
Switch item=hvac_proxy_power label="Power" mappings=[OFF="OFF",ON="ON"]
Switch item=hvac_proxy_mode label="Mode" icon="climate" mappings=[0="Auto",1="Heat",2="Cool",3="Fan"]
Setpoint item=hvac_webserver_tempTarget label="Adjust Temperature" icon="temperature" step=0.5 minValue=16 maxValue=30
Text item=hvac_indoor_roomTemp label="Room Temperature" icon="temperature"
}
Frame label="Fan Control" {
Switch item=hvac_proxy_fanSpeed label="Fan Speed" icon="fan" mappings=[0="Low",1="Medium",2="High"]
}
Frame label="Zone Control" {
Switch item=hvac_proxy_zone1 label="Zone 1 (Upstairs)" icon="firstfloor" mappings=[OFF="OFF",ON="ON"]
Switch item=hvac_proxy_zone2 label="Zone 2 (Downstairs)" icon="groundfloor" mappings=[OFF="OFF",ON="ON"]
}
It is rendering correctly in the BasicUi version though:
Changing the item type to a string also results it displaying the state in the sitemap.
The affected items do not have a state presentation in the label, in either the sitemap or the item definition, so I am confused why they are appearing.
Adding empty square brackets []
to the label as per the docs does remove the state presentation, however I understood this to be an override of item definition, which already doesn’t include a state presentation.
As mentioned, prior to the update the iOS app wasn’t displaying the value.
Do I have an error with my configuration or is this something arising from the 4.2 release?