Light on by opening the door

I have a little logic problem. I want to turn on the light, when someone is opening the door.

On the busmonitor i receive the msg from the binary input, if the door is open.
In Node-red i get also a true on the debug. But nothing happens at the KNX Output.
Binary Input is 4/0/0 and the Light is 2/0/0 - in the ETS i see a msg. from 4/0/0 but nothing for groupadress 2/0/0

Unfortunately i don't see my problem at the moment. Does anyone have an idea

Thanks

Can you paste your flow so we can see it and also maybe put a couple of injection nodes for testing inputs - and lastly a screenshot of the debug window when it is NOT doing what you want

Craig

1 Like

I would get an inject node and connect it to the Kino node (the right most one in your flow) and send stuff into it until I get it working.

I don't understand that. BINARY input means - to me - 1 and 0. and only one at a time.
4/0/0 isn't binary.

What is the ETS where you see the message?

1 Like

Thanks for your help guys :slight_smile:

Here is the Flow:

[{"id":"369c808a.1fe6f","type":"tab","label":"Kellergeschoss","disabled":false,"info":""},{"id":"5596e60b.bc55b8","type":"knxEasy-in","z":"369c808a.1fe6f","server":"760c366a.fbe128","topic":"2/0/1","dpt":"1.011","initialread":true,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"name":"Kino_RM","x":200,"y":80,"wires":[["f5c9be58.3b65b"]]},{"id":"8c47a322.7a12b","type":"knxEasy-out","z":"369c808a.1fe6f","server":"760c366a.fbe128","topic":"2/0/0","dpt":"1.001","name":"Kino","outputtype":"write","x":770,"y":80,"wires":[]},{"id":"f5c9be58.3b65b","type":"ui_switch","z":"369c808a.1fe6f","name":"","label":"Kino","tooltip":"","group":"26c81c4f.0f1b24","order":1,"width":0,"height":0,"passthru":false,"decouple":"true","topic":"","topicType":"str","style":"","onvalue":"true","onvalueType":"bool","onicon":"","oncolor":"","offvalue":"false","offvalueType":"bool","officon":"","offcolor":"","animate":true,"x":430,"y":80,"wires":[["8c47a322.7a12b"]]},{"id":"65df26e8.1ddc88","type":"alexa-home","z":"369c808a.1fe6f","conf":"9930540e.c98528","device":"148310","acknoledge":true,"name":"Licht Kino","topic":"","x":200,"y":140,"wires":[["16a18e76.4c5712"]]},{"id":"16a18e76.4c5712","type":"change","z":"369c808a.1fe6f","name":"","rules":[{"t":"change","p":"payload","pt":"msg","from":"on","fromt":"str","to":"true","tot":"bool"},{"t":"change","p":"payload","pt":"msg","from":"off","fromt":"str","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":470,"y":140,"wires":[["8c47a322.7a12b"]]},{"id":"c25bcf87.bc661","type":"knxEasy-in","z":"369c808a.1fe6f","server":"760c366a.fbe128","topic":"4/0/0","dpt":"1.011","initialread":true,"notifyreadrequest":false,"notifyresponse":false,"notifywrite":true,"name":"KinotĂĽr_RM","x":210,"y":200,"wires":[["38a1e8cb.bb21d8"]]},{"id":"38a1e8cb.bb21d8","type":"switch","z":"369c808a.1fe6f","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":430,"y":200,"wires":[["db019ab6.703538"],[]]},{"id":"db019ab6.703538","type":"trigger","z":"369c808a.1fe6f","name":"","op1":"true","op2":"false","op1type":"bool","op2type":"bool","duration":"30","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":570,"y":200,"wires":[["ab8bf09a.7030c","8c47a322.7a12b"]]},{"id":"ab8bf09a.7030c","type":"debug","z":"369c808a.1fe6f","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":820,"y":260,"wires":[]},{"id":"760c366a.fbe128","type":"knxEasy-config","host":"192.168.1.x","port":"xxxx"},{"id":"26c81c4f.0f1b24","type":"ui_group","name":"Kellergeschoss","tab":"2f200dad.13de02","order":3,"disp":true,"width":"6","collapse":false},{"id":"9930540e.c98528","type":"alexa-home-conf","username":"xxx"},{"id":"2f200dad.13de02","type":"ui_tab","name":"Licht","icon":"lightbulb_outline","order":2,"disabled":false,"hidden":false}]

Debug:

KNX:

If i connect an inject node and send true, it finally works - the light turns on.
But if the command comes from the door (KNX input left) nothing happens.

With binary input i mean something like this:

OK put a debug node on the output of the KNX node and send us a screenshot so we can se what it is pushing out in the debug panel

Craig

That happens, when I send a true by ETS on address 4/0/0

after 30s i get the false message in the ETS monitor

Any ideas?

In your trigger node you tell it to send false after 30 seconds so it is doing exactly what you have told it to do (but maybe not what you want it to do.)

The Flow didn´t work without the switch and the trigger. So imho it´s a problme with the KNX Input Node.
But i dont know how to fix it. The information i get from the KNX Input is correct (Boolean "true")
Is there a way to log the complete msg.object and not only the payload?

Thanks

Yes it’s one of the debug node options
Screen Shot 2021-07-10 at 2.24.31 PM

1 Like

Thank you for your help and for the very helpful picture.
i got the following msg. back:

image
image

Could this be helpful?

where i have to type in the command?

Sorry but I have no idea. Up until I looked at your post, I had never heard about KNX so you know more about it than I do.

Hopefully someone else with knowledge of it will respond.

1 Like

OK - so are you saying if you put an inject node to the KNX output node and send a true - it will turn the light on i.e. nothing else needed other than what is configured on the KNX node ?

I would take the output from the KNX node into a switch node

Check msg.payload for True or false

Send the output to 2 change nodes

Set the msg.payload to True (which should blank out all the other KNX stuff in case that is messing you around) and then send the output to the KNX node and see if it turns the light on - also obviously put a debug on it so we can see what is happening

Craig

If so i would take the change node from the KNX input and simply set the msg.payload to

1 Like

I correct

i have tried various conditions without success - also what you suggested.
The Debug show "bool true" but nothing happend.

i would like to switch from knxeasy to ultimate soon. Maybe this will solve my problem.

Put up your flow and screeshots of the debug windows again

Craig


image


3 is my message from the ETS to GA 4/0/0
4 is a message from Node Red to GA 4/0/0

For testing i have connected the aktor (light) with GA 4/0/0 in the ETS and sent a true (dpt 1.001 / active 1.011) and it worked.

I have solved the problem

It have to be a problem with KNX easy - i have installed the latest version of KNX Ultimate and now it works as it should :slight_smile:

Thank you for your support - I am very grateful to you!

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