Problem Using HMIP-WCR2 to switch HMIP-FSM

  • Platform information:
    • Hardware: Synology DS918+
    • OS: DSM 6.2.1-23824
    • Java Runtime Environment: Java 8.0.161-0015
    • openHAB version:2.3.0.005
  • Issue of the topic:
    Hello Ladies and Gentlemen,
    got a few issues getting my HMIP-WCR2 running to switch via openHAB rule a HMIP-FSM.
    This worked for weeks, after a reboot I had the issues. I tried to reinstall the system, but the same happens.

Got a binding on my Homematic CCU2.
I have two Things, the HMIP-WCR2 and the HMIP-FSM. I have tried different ways.
Using change to ON on the PRESS_SHORT parameter and using the triggered SHORT on the PRESS parameter.
However I can see the parameter switching in the logfile and on the sitemap.
I am also able to switch the HMIP-FSM through HM and OpenHAB.

  • Please post configurations (if applicable):
Switch 00WohnzimmerLichtschalter01_1_PressShort "Test 1" <power> { channel="homematic:HMIP-WRC2:MEQ1609961:000193C99519F8:1#PRESS_SHORT" }
Switch 00WohnzimmerLichtschalter01_2_PressShort "Test 2" <power> { channel="homematic:HMIP-WRC2:MEQ1609961:000193C99519F8:2#PRESS_SHORT" }
Switch 00WohnzimmerLichtschalter01_1_Press "Test 3" <power> { channel="homematic:HMIP-WRC2:MEQ1609961:000193C99519F8:1#PRESS" }
Switch 00WohnzimmerLichtschalter01_2_Press "Test 4" <power> { channel="homematic:HMIP-WRC2:MEQ1609961:000193C99519F8:2#PRESS" }
Switch EGGartenLaterne_2_State "Licht Garten" <light> { channel="homematic:HmIP-FSM:MEQ1609961:000898A994E151:2#STATE" }

The Rules I tried…

val String filename = "fuksbau.rules"
rule "EG Garten Laterne Ein/Aus"
when
    Item 00WohnzimmerLichtschalter01_1_PressShort changed to ON or Item 00WohnzimmerLichtschalter01_2_PressShort changed to ON
then    
    if (EGGartenLaterne_2_State.state == OFF) {
        EGGartenLaterne_2_State.sendCommand(ON)
    } else {
        EGGartenLaterne_2_State.sendCommand(OFF)
    }
end

and:

val String filename = "fuksbau.rules"
rule "EG Garten Laterne Ein/Aus"
when
    Item 00WohnzimmerLichtschalter01_1_Press triggered SHORT or Item 00WohnzimmerLichtschalter01_2_Press triggered SHORT
then    
    if (EGGartenLaterne_2_State.state == OFF) {
        EGGartenLaterne_2_State.sendCommand(ON)
    } else {
        EGGartenLaterne_2_State.sendCommand(OFF)
    }
end

Any ideas?

Item definitions should not start with a number, per the doc’s.

" The Item name is used to uniquely identify an Item. The name must be unique across all .items files in your openHAB configuration. The only characters permitted in an Item name are letters, numbers and the underscore character. Names must not begin with numbers. Spaces and special characters are not permitted."

Heyho,

thanks for the reply. I wasn’t aware of that. Changed the Names, but the same issue.

I then found some Java errors in the openhab log. After some search I found out, that the rules have loaded to fast. The Bindings were not ready.
So a restart of the system without rules and loading the rules after all bindings have been loaded, brought the switches back to life.