beim Umstieg von OH2.5 auf 3.1. macht eine Rules ärger.
Alle Rollos funktionieren mit ein ON/OFF Befehl und sind in einer Gruppe.
Die Rules die unter OH 2.5 funktionierte macht unter OH3 ärger
Code: Alles auswählen
if(!(receivedCommand instanceof Number)) // received command is not a number
switch receivedCommand { // decide dependend on received command
case UP : triggeringItem.sendCommand(OFF) // command is UP, so send 0
case DOWN : triggeringItem.sendCommand(ON) // command is DOWN, so send 100
default : logWarn("shutter","Command {} not supported!",receivedCommand) // any other command will cause a warn log
} // end of switch block
else // command is a number
logInfo("shutter","received Number {}, doing nothing!",receivedCommand) // log an info that the command was a number
2021-01-27 07:49:44.716 [WARN ] [rg.openhab.core.model.script.shutter] - Command OFF not supported!
2021-01-27 07:49:44.718 [ERROR] [ernal.handler.ScriptConditionHandler] - Script did not return a boolean value, but 'null'
Kann bitte mal einer helfen. Danke.
Also die Rollo fahren auf und zu.