I’m using the LastVoiceCommand feature in OpenHAB to set up shortcuts for controlling my smart home devices. For example, I’ve created a shortcut where saying ‘light on’ turns on the main light in a room. This works well when there’s only one light in the room. I achieved this using a DSL rule that listens for changes in the LastVoiceCommand item.
However, I’ve noticed an issue after updating to OH 3.2 or using the latest Echo Control binding. When I say ‘light on’ after manually turning off the light, it doesn’t work as expected. It seems the rule isn’t triggered because the item value doesn’t change—it still holds the previous ‘light on’ value. To get it working again, I have to say something else to Alexa before using the shortcut again.
I’m wondering if there’s a way to reset the item value once the command is processed. Should I manually set the value to an empty string after the command is executed? Or is there a setting in the binding that can address this issue? I’m looking for the best approach to resolve this problem and ensure my voice commands work consistently.