Well, you are going to have to bite the bullet and upgrade again and work your way through the errors.
It’s likely to be the same error everywhere. So once we solved one, you’ll be able to do the rest.
BUT
Change you homematic items to add the unit, just as above
Then in the rules, whenever you are working with an item state do this:
(item.state as QuantityType<Number>).doubleValue
To convert the UoM value to a plain number
Also get rid of your Thread::sleep
for 30s. BAD IDEA
Use a timer instead:
case "4" : {
logInfo(filename, "Wohnung Heizmodus: Aus (Sommer)")
WZ1_Heizung_Mode.sendCommand (3)
WZ2_Heizung_Mode.sendCommand (3)
KU1_Heizung_Mode.sendCommand (3)
KU2_Heizung_Mode.sendCommand (3)
SZ_Heizung_Mode.sendCommand (3)
BD_Heizung_Mode.sendCommand (3)
EZ_Heizung_Mode.sendCommand (3)
BR_Heizung_Mode.sendCommand (3)
createTimer(now.plusSeconds(30), [ |
WZ1_Heizung_SetTemp.sendCommand(tempOff)
WZ2_Heizung_SetTemp.sendCommand(tempOff)
KU1_Heizung_SetTemp.sendCommand(tempOff)
KU2_Heizung_SetTemp.sendCommand(tempOff)
SZ_Heizung_SetTemp.sendCommand(tempOff)
BD_Heizung_SetTemp.sendCommand(tempOff)
EZ_Heizung_SetTemp.sendCommand(tempOff)
BR_Heizung_SetTemp.sendCommand(tempOff)
])
}