When the HS Device changes from Motion to No Motion, the Switch node will detect that with the first rule and will send that output that to the first connection point on the exit side, and it will stop and not execute the second rule. Since the first connection point is not connected to the Alexa Routine node, No Motion will not be spoken.
Filtering for Z-Wave Dimmer that supports the "Last" Command
Note that a Z-Wave Dimmer can be controlled to be turned on to the "Last" on setting. When this is the case, 2 messages are sent to Node-RED. the first reports the device's Status as "Last" and the second reports it as the resulting value, or dimmed percentage. To keep from announcing the first message, set the switch node as shown below. This ignore any message with the word last, regardless of any Upper/Lower Case letters in the message.
|Content by Label|