Hello,
I’m on OpenHAB 2.2.0 and I have the following problem. I want to control my Roller blinds. For that I have created the following two items:
Rollershutter WZ_Rollo_01 "WoZi_kleines_Fenster_links" <rollershutter> (gWoZiEG, gEGRollos, gHausRollos) {lcn="[DOWN:myhome:RELAYS.0.13.------11], [UP:myhome:RELAYS.0.13.------10], [STOP:myhome:RELAYS.0.13.------0-]"}
Switch WZ_Rollo_01_Alexa "Wohnzimmer_Rollo_kleines_Fenster" ["Switchable"]
and a corresponding rule:
rule "WZ_Rollo_01_Alexa"
when
Item WZ_Rollo_01_Alexa received command
then
switch(receivedCommand)
{
case ON : WZ_Rollo_01.sendCommand(UP)
case OFF : WZ_Rollo_01.sendCommand(DOWN)
case STOP : WZ_Rollo_01.sendCommand(STOP)
}
end
That works pretty fine except the “STOP” command. When I say “ALEXA Wohnzimmer_Rollo_kleines_Fenster AN” (remark: "AN"in German = “ON” in English) the blind goes up and when I say “ALEXA Wohnzimmer_Rollo_kleines_Fenster AUS” (remark: “AUS” in German = “OFF” in English) the blind goes down. So everything is fine.
What I also would like to have is the possibility to stop the running blind at any positon by STOP command. Therefore I have also included the STOP command in my rule. But when I say “ALEXA Wohnzimmer_Rollo_kleines_Fenster STOP” nothing happens, The blind does not stop but is moving on.
When I use the OpenHAB console and test the commands, eyerything runs fine and as it should:
smarthome:send WZ_Rollo_01 UP --> blind is moving up
smarthome:send WZ_Rollo_01 STOP --> blind stops at current postion.
The other way around is exactly the same;
smarthome:send WZ_Rollo_01 DOWN --> blind is moving down
smarthome:send WZ_Rollo_01 STOP --> blind stops at current postion.
What am I doing wrong that it does not work by voice command too? I would be very happy if someone could give me guidance how to make the STOP command work by Alexa.
Jens