Rules behavior changed after update from 2.3 to 2.4

  • 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:

  1. I open the entrance door, Openhab runs the first rule (you have to enter the code in X seconds)
  2. I enter the security code
  3. 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:

  1. I open the entrance door, Openhab runs the first rule (you have to enter the code in X seconds)
  2. I enter the security code
  3. 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!

You mention updating TO 2.4
What version did you update from that was working as desired?

hello,
I’m sorry I missed that, 2.3 before.

The question seems to be really about …
How do I cancel a TTS phrase that is already speaking?

Most likely the old binding behaved naughty and trampled over existing speech when sending a new request. Maybe now it queues nicely. Maybe there’s an option for that now.

What is Echo_Living_Room_TTS linked to ?

Yes, you have perfectly described the need.
I was thinking about a new feature, like a queue for rules.
Echo_Living_Room_TTS it’s a string, linked to amazon echo account.

Do you suspect it’s a problem with amazon echo?
It would be strange, it happened to me after I updated the OH…

Something like this? Design Pattern: Gate Keeper