20:13:45.162 ERROR o.o.c.s.ScriptExecutionThread[:70] - Error during the execution of rule 'RTCU Status Rez Repas': The name '<XFeatureCallImplCustom> && <XNumberLiteralImpl>' cannot be resolved to an item or type.
import org.openhab.core.library.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*
rule "RTCU Status Rez Repas"
when
Item RTCU_Rez_Repas_Status changed
then
var Number state = RTCU_Rez_Repas_Status.state
var Number status = state && 0x0F
postUpdate(RTCU_Rez_Repas_Mode, status)
end
import org.openhab.core.library.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*
rule "RTCU Status Rez Repas"
when
Item RTCU_Rez_Repas_Status changed
then
var Integer state = (RTCU_Rez_Repas_Status.state as DecimalType).intValue
var Integer status = state.bitwiseAnd(0x0F)
postUpdate(RTCU_Rez_Repas_Mode, status)
end