If this then statement in node red

Hi all , just new here , i've searched here but didn't find the answer (yet) so maybe somone can help.
I managed to setup node red with the Nora (google home) plugin and it's working fine with my lamps.
I'm now trying to create a command that if i say 'close blinds' the output will activate output and when i say 'open blinds' it will activate the second output. The reason is that i've got an KM-tronic at the input of the blinds wich just gives one relais one pulse to open and another relais gives another contact a pulse to close (can't change this , thats te way it works)


This is a visual presentation of my problem (not the actual node)
Thx for all the help!

Welcome to the forum.

What is your actual question ?

Can you select the nodes and export the flow and post it here (use the </> icon )

Hi , thx for your response as said in the post there is no flow now , just a representation , the nodes are empty, the qestion is how and wich nodes i use for the part: if i say 'open blinds' than send true command to output one.
That's to simplify the whole question

You need to show us the output in a debug node of the message you are getting that you need to test, and tell us exactly what you want to get out of the test. Vague words are not enough.
In principle your suggested flow looks appropriate, so we don't know what additional information you need unless you fully define the problem.

Sorry all new to me :wink:

When i give the command to open of close the blinds , this is the response, can you do something with it ?
Thanx for your patience!

21-8-2020 12:55:21node: 8ab111dc.fb8fa
KM 6 : msg.payload : Object
{ openPercent: 100 }
21-8-2020 12:56:01node: 8ab111dc.fb8fa
KM 6 : msg.payload : Object
{ openPercent: 0 }

As i can not post files as a newbie, here the json file

http://www.wernerxx.be/testflow.json

can you do something with it ?

This is the core of node-red; its' very existence.

I think it may be more worth it to go through this whole playlist to get an understanding about how node-red works and what you can do with messages.

For your first switch node, you need to understand how payloads/messages are constructed, so that you know how to route messages (all explained in the playlist).

thanx , will look at the playlist

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.