Hi all,
I’m trying to setup a dimmer group, but the rule which sets all mebers fails to execute, although it is successfully triggered. All Members of the group can be set individually, so the items are working.
import org.openhab.core.library.types.*
import org.openhab.model.script.actions.*
rule "SZ Dimmer" when Item SZ_Dimmer received command then if (SZ_Lampe_EA0.sate==ON) { SZ_LampeDimm.members.forEach(member| sendCommand(member,INCREASE) ) } end
Whenever the rule is triggered, the following text appears in the log:
23:30:54.919 [DEBUG] [m.r.internal.engine.RuleEngine:305 ] - Executing rule 'SZ Dimmer' 23:30:54.919 [INFO ] [runtime.busevents :22 ] - SZ_Dimmer received command DECREASE 23:30:54.924 [ERROR] [o.o.c.s.ScriptExecutionThread :50 ] - Error during the execution of rule 'SZ Dimmer': The name '<XFeatureCallImplCustom>.sate' cannot be resolved to an item or type.
The alternative version
rule "SZ Dimmer"
when
Item SZ_Dimmer received command
then
if (SZ_Lampe_EA0.sate==ON) {
if (receivedCommand==INCREASE) {
sendCommand(SZ_Dimm1,INCREASE)
sendCommand(SZ_Dimm2,INCREASE)
sendCommand(SZ_Dimm3,INCREASE)
sendCommand(SZ_Dimm4,INCREASE)
}
if (receivedCommand==DECREASE) {
sendCommand(SZ_Dimm1,DECREASE)
sendCommand(SZ_Dimm2,DECREASE)
sendCommand(SZ_Dimm3,DECREASE)
sendCommand(SZ_Dimm4,DECREASE)
}
}
end
fails with the exact same error message.
Similar rules for other items are working. Strange is the typo in the Error message:
'<XFeatureCallImplCustom>.sate'
shouldn’t it be
'<XFeatureCallImplCustom>.state'
?
Could this be the reason for the strange behaviour?
Versions:
OpenHAB 1.7.0 and 1.7.1