Question about Nora, Google Home and Switch node

Hi , i've got a flow which is almost working exept the beginning.
I'm using the Nora plugin to capture commands like 'open blinds' and 'close blinds'.
From there i'm using this to control my KM-Tronic lan switches.
The question is i'm receiving an object: payload (see attachements) and don't know how to put this in the switch node.
Any help or pointers are welcomeNora4 Nora3 Nora1 Nora2

property
msg.payload.openPercent

Then you want to check that the property is a number of value equal to 0 or 100.
Select number and type in the value.
Then select 2 outputs.

See the response i posted in your previous topic (looks like the same question??)

Thx for your help, works like a charm

is indeed one part of question , watched your video sugestion for hours , not helped tough.
Everything is now solved, of course don't know if there's a simpler solution , but it works.
Posted flow here (with the difference that Nora is replaced with injects for testing , don't know if you specialist can see any errors
flowblinds.json (3.8 KB)

I posted a screenshot that showed the solution @E1cid indicated.

If you watched the videos you should not have come up with the flow you posted.

Try this flow:

[{"id":"684de79.0fac718","type":"switch","z":"9b9b8a14.a27ce8","name":"","property":"payload.openPercent","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"100","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":506,"y":672,"wires":[["5c134b4f.a5b7cc","c453aca4.5804a8"],["d8cd2dc4.3f631","d368933b.4e56e8"]]},{"id":"4a61b7fd.f8843","type":"inject","z":"9b9b8a14.a27ce8","name":"Close blinds","props":[{"p":"payload.openPercent","v":"100","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":310,"y":696,"wires":[["684de79.0fac718"]]},{"id":"a8ba9e5f.859cc","type":"inject","z":"9b9b8a14.a27ce8","name":"Open blinds","props":[{"p":"payload.openPercent","v":"0","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":310,"y":648,"wires":[["684de79.0fac718"]]},{"id":"c453aca4.5804a8","type":"http request","z":"9b9b8a14.a27ce8","name":"Open FF0701","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://192.168.0.144/FF0701","tls":"","persist":false,"proxy":"","authType":"basic","x":800,"y":648,"wires":[[]]},{"id":"5c134b4f.a5b7cc","type":"http request","z":"9b9b8a14.a27ce8","name":"Open FF0601","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://192.168.0.144/FF0601","tls":"","persist":false,"proxy":"","authType":"basic","x":800,"y":600,"wires":[[]]},{"id":"d368933b.4e56e8","type":"http request","z":"9b9b8a14.a27ce8","name":"Close FF0600","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://192.168.0.144/FF0600","tls":"","persist":false,"proxy":"","authType":"basic","x":800,"y":768,"wires":[[]]},{"id":"d8cd2dc4.3f631","type":"http request","z":"9b9b8a14.a27ce8","name":"Close FF0700","method":"GET","ret":"txt","paytoqs":"ignore","url":"http://192.168.0.144/FF0700","tls":"","persist":false,"proxy":"","authType":"basic","x":800,"y":720,"wires":[[]]}]

The idea is: whatever comes through port 1 or 2 it will trigger the http request node to fire.

Jesus , sorry , completely missed that, tought it was a screenshot of mine :woozy_face:

Thx, this is completely my fault, i've forgot to mention that the blinds are activated by a relais which pulses , this means, the relais stays on for one second and goes back off (like the push of a button)
That's why i put the trigger of 1 second in my flow
The KM-Tronic Lan relais with the name http://192.168.0.144/FF0601 will activate the relais and the http://192.168.0.144/FF0600 will disactivate the relais.
Just to clarify my flow...

Ok so FF0601 is a blind and FF0701 is also a blind ? Or is FF070x the trigger to open them ?

Then the flow can be even more simple:

[{"id":"684de79.0fac718","type":"switch","z":"9b9b8a14.a27ce8","name":"","property":"payload.openPercent","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"100","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":506,"y":672,"wires":[["1aa9df11.8eab11"],["591de3de.5733a4"]]},{"id":"4a61b7fd.f8843","type":"inject","z":"9b9b8a14.a27ce8","name":"Close blinds","props":[{"p":"payload.openPercent","v":"100","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":310,"y":696,"wires":[["684de79.0fac718"]]},{"id":"a8ba9e5f.859cc","type":"inject","z":"9b9b8a14.a27ce8","name":"Open blinds","props":[{"p":"payload.openPercent","v":"0","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":310,"y":648,"wires":[["684de79.0fac718"]]},{"id":"5c134b4f.a5b7cc","type":"http request","z":"9b9b8a14.a27ce8","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"basic","x":862,"y":672,"wires":[[]]},{"id":"1aa9df11.8eab11","type":"trigger","z":"9b9b8a14.a27ce8","name":"","op1":"{\"url\":\"http://192.168.0.144/FF0601\"}","op2":"{\"url\":\"http://192.168.0.144/FF0600\"}","op1type":"json","op2type":"json","duration":"1","extend":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":660,"y":648,"wires":[["5c134b4f.a5b7cc"]]},{"id":"591de3de.5733a4","type":"trigger","z":"9b9b8a14.a27ce8","name":"","op1":"{\"url\":\"http://192.168.0.144/FF0701\"}","op2":"{\"url\":\"http://192.168.0.144/FF0700\"}","op1type":"json","op2type":"json","duration":"1","extend":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":660,"y":696,"wires":[["5c134b4f.a5b7cc"]]}]

No, It's the same blind but FF0601 is opening it and FF0701 is closing it by pulsing (therefore the 1 second delay with FF0600 or FF0700

Part of you and part of me , is working fine so THX!!

You can get rid of those http request nodes and switch nodes if you check the flow i posted, try to dissect it.

Sorry , but without the http request i can't access my KM-Tronic relais

Yes i mean the redundant ones, import the flow and see.

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