DALI with serial out

Hello,
I am trying to set up DALI lights with UniPi PLC and NodeRed
I have USB RS232 to DALI interface. It works flawlessly with python.
I should send ASCI format of message on serial port.
Example - switch off all message : 0x01 0x00 0x10 0xFF 0x00 0xef
and asci representation as list (in python I am sending this list on serial port]
[1, 48, 49, 48, 48, 49, 48, 70, 70, 48, 48, 69, 70, 23]

How I should do it with node red.
Combination of inject and serial out did not work for me
With thanks
Karel

You should be able to send a buffer like that to serialport

Thanks for reply, how I should do it, please? :slight_smile:
I am quite new in node red (few hours)
In inject I should set payload type to buffer?

Yes.

eg

[{"id":"9acbc05221705fcb","type":"inject","z":"4aa2ed2fd1b11362","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[1, 48, 49, 48, 48, 49, 48, 70, 70, 48, 48, 69, 70, 23]","payloadType":"bin","x":195,"y":540,"wires":[["a9b5b08ef19a4c0d"]]},{"id":"a9b5b08ef19a4c0d","type":"debug","z":"4aa2ed2fd1b11362","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":435,"y":540,"wires":[]}]

Thanks a lot. It works.

Hi out of interest what what device are you using for USB to DALI ?

Hi, this one:
http://www.foxtron.cz/home/bus/dali/usb-to-dali-set-detail?lang=en

Thanks that look's like a very useful device I mainly go KNX DALI but on occasions have been asked for something like this. Cheers

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