- Platform information:
- Hardware: Raspberry Pi
- OS: Raspbian GNU/Linux 8 (jessie)
- Java Runtime Environment: Java™ SE Runtime Environment (build 1.8.0_144-b01)
- openHAB version: 2.4
- Issue of the topic:
Behavior before updating:
- I open the entrance door, Openhab runs the first rule (you have to enter the code in X seconds)
- I enter the security code
- A variable goes into the home mode and then the second rule interrupted the first one (stop playing 1st TTS message) and sent me the second TTS message (welcome back).
Behavior after update to 2.4:
- I open the entrance door, Openhab runs the first rule (you have to enter the code in X seconds)
- I enter the security code
- A variable goes into the home mode
- 2nd rule is running without interrupt the first one
- Please post configurations (if applicable):
- Rules code related to the issue
/////////////// ALEXA
rule “Turn on alarm sound for 15 seconds if door opens”
when
Item UintrareTripped changed to OPEN
then
if (Home_Away.state == “away”)
Echo_Living_Room_TTS.sendCommand('Welcome home, you got 15 seconds to disarm house! 10,and, 9,and,8,and, 7,and, 6,and, 5,and, 4,and, 3,and, 2,and,1)
end
rule “Welcome home!”
when
Item Home_Away changed
then
if(Home_Away.state == “home”)
Echo_Living_Room_TTS.sendCommand(‘Welcome back!’)
end
How should I modify the rules in order to stop counting down after I put it in “home mode” and just say “Welcome back”?
Thanks in advance!