originallyus / node-red-contrib-alexa-local

An easy-to-use NodeRED node for adding Alexa capability to NodeRED. NO Alexa Skills required.
107 stars 25 forks source link

[Request]Any chance of getting this node an option to prevent infinite loop. #54

Closed wongnam closed 5 years ago

wongnam commented 6 years ago

Hi, Thank you for creating this node. it's awesome.

Is there any chance of getting this node an option to prevent infinite loop. For example, create an check box for us to chose whether allow msg arrives on input, to pass through to output or not. because sometimes i want to let input node to feedback the status back to inside Alexa app if the external switch toggled the light on/off. but i don't want the msg pass through to the output.

image

image

Thanks you.

torinnguyen commented 6 years ago

untick this

image

wongnam commented 6 years ago

if untick this check box that the input status is not updated to Alexa App.

torinnguyen commented 6 years ago

this function is not available. you can add a custom function node at the output and check the 'topic' parameter to stop the message.

wongnam commented 6 years ago

okay, i'll do it this way. Thank you for your advice.

thePhilipp commented 6 years ago

hi wongnam, here is my solution for this Problem https://github.com/originallyus/node-red-contrib-alexa-local/issues/45 look at the end

torinnguyen commented 6 years ago

I have no problem using SONOFF + UI Switch with Alexa Node. Both Alexa app & UI Switch are updated when I interact with UI Switch or issue voice commands.

Video showing no infinite loop http://take.ms/0D8bF

node-red 2018-04-06 05-59-38
wongnam commented 6 years ago

This is my solution for this issue as torinnguyen advised me last time, it's working very well. image