PerMalmberg / node-red-contrib-boolean-logic

Node-RED nodes to perform Boolean logic
MIT License
11 stars 7 forks source link

3 input OR #2

Closed gadjet closed 7 years ago

gadjet commented 7 years ago

Hi, I've got three Bigtimer node running and each outputs a 0 or a 1 every minute and I fedd the thre outputs into a 3 input OR node but it doesn't work it stays at unknown, if I feed the same three output into a debug node it works and states true, any ideas what I'm doing wrong?

image

PerMalmberg commented 7 years ago

All three connected outputs must have different topics, have you made sure that is the case?

gadjet commented 7 years ago

I will double check but I assumed if the debug node worked then then the logic node would work with the same inputs

PerMalmberg commented 7 years ago

The debug node only looks at the payload, these components needs to separate the inputs to function as intended.

gadjet commented 7 years ago

OK, the topic is always "status" from each bigtimer so this won't work for me.

Thanks

PerMalmberg commented 7 years ago

Change the topic on the incoming messages, there are components for that.

What you are experiencing is the problem with Node-Red - only a single input. My components are a workaround for that, but they need to be able to separate incoming messages otherwise they will all look to come from the same source (topic).

gadjet commented 7 years ago

Yes, thanks, I was thinking along the same lines myself.

gadjet commented 7 years ago

Took your advice and changed each topic and all works well now. Thanks