I´m using a Window / Door Contact - invisible installation (HmIP-SWDO-I) and wanted to try a few things.
This Rule worked well with my Xiaomi Sensor but i can`t get it to run with the HM-IP Contact:
rule "Test Licht"
when
Item FensterkontaktKuche1STATE changed
then
switch FensterkontaktKuche1STATE.state {
case OPEN: {
HueLightstripWohnzimmer_Alert.sendCommand("LSELECT")
HueIrisEssbereich_Alert.sendCommand("LSELECT")
}
case CLOSED: {
HueLightstripWohnzimmer_Alert.sendCommand("LSELECT")
HueIrisEssbereich_Alert.sendCommand("LSELECT")
}
}
end
on the other Hand - this Rule works as intended…can someone pls explain ?
rule "Test "
when
Item FensterkontaktKuche1STATE changed from CLOSED to OPEN
then
HueLightstripWohnzimmer_Alert.sendCommand("LSELECT")
HueIrisEssbereich_Alert.sendCommand("LSELECT")
end
Would be really nice if someone could explain where the Problem is.
Also the Item from the HM Contact isnt definied as Contact - it is a string Item...don
t know if this is correct… ?
String FensterkontaktKuche1STATE "Testkontakt [MAP(kontakte.map):%s]" <window> (Fenster, gWindowsClosed) {channel="homematic:HmIP-SWDO-I:3014F711A0001F58A992FF25:00109A498A0F81:1#STATE"}