Have a dedicated/fresh test environment preparing to migrate to OH 3.
As for my 2.5 operational environment, I manage successfully to get the Slave and Poller bridges Online. However, I struggle to convert from Selection Item
in 2.5 to Command Option
in 3.0 (metadata).
From my 2.5 setup, I have a Data thing against a write register (without transformation) with a Number item which I use as a Selection Item
, as shown below, which enables me to select the desired mode, which again sends/confirms the correct number input to the Modbus unit (working as intended).
Selection item=ChangeUserMode icon=settings mappings=[0="None", 1="Auto", 2="Manual", 3="Crowded", 4="Refresh", 5="Fireplace", 6="Away", 7="Holiday"]
For my OH3 setup, I try to achieve the same for a similar Number item, but then using metadata and oh-label-item
. Metadata is set up with action Command Options
with following options:
0=None, 1=Auto, 2=Manual, 3=Crowded, 4=Refresh, 5=Fireplace, 6=Away, 7=Holiday
Selection for item appears as expected, however, when selecting different modes, I receive a warning without an actual change of the user mode:
[ernal.handler.ModbusDataThingHandler] - Cannot process command 2 (of type QuantityType) with channel modbus:data:fanControl:changeUserMode:number since transformation was unsuccessful
Any hints/help would be appreciated.