Very simple rule does not get executed

Hi there!

I have a very simple rule which does not get executed. It is like the following:

rule “Garagenlicht innen & außen ein bei Toröffnung”
when
Item Lupus_Garagentor changed from {WEB_MSG_DC_CLOSE} to {WEB_MSG_DC_OPEN}
then
Licht_Garage_innen.sendCommand(ON)
Licht_Garage_aussen.sendCommand(ON)
end

So when my garage door opens and updates its state to “open” (JSON HTTP call delivers these states in parenthesis), it should switch lights on. Just that simple. But it does not work.
So i guess it might have to do with these parenthesis?

The Item Lupus_Garagentor definitely changes its state, because the log says:

2020-03-05 15:54:59.880 [vent.ItemStateChangedEvent] - Lupus_Garagentor changed from {WEB_MSG_DC_CLOSE} to {WEB_MSG_DC_OPEN}

Any ideas?

Hi,

try

Item Lupus_Garagentor changed from “{WEB_MSG_DC_CLOSE}” to “{WEB_MSG_DC_OPEN}”

2 Likes

Thank you, works like a charm!

1 Like