# DALI with serial out

**URL:** <https://discourse.nodered.org/t/dali-with-serial-out/54252>\
**Category:** General\
**Created:** [25 November 2021 08:15 UTC](https://discourse.nodered.org/t/dali-with-serial-out/54252 "2021-11-25T08:15:33Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadlik](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@kadlik](https://discourse.nodered.org/u/kadlik)\
**Post date:** [25 November 2021 08:15 UTC](https://discourse.nodered.org/t/dali-with-serial-out/54252/1 "2021-11-25T08:15:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [25 November 2021 08:43 UTC](https://discourse.nodered.org/t/dali-with-serial-out/54252/2 "2021-11-25T08:43:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kadlik](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@kadlik](https://discourse.nodered.org/u/kadlik)\
**Post date:** [25 November 2021 08:59 UTC](https://discourse.nodered.org/t/dali-with-serial-out/54252/3 "2021-11-25T08:59:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [25 November 2021 10:30 UTC](https://discourse.nodered.org/t/dali-with-serial-out/54252/4 "2021-11-25T10:30:21Z")

</div>

Yes.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/9/3903cbd72d7009284435ba7c6de90af34634c85d.png)

eg

```auto
[{"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":[]}]

```

---

<div class="post-metadata">

**Author:** ![kadlik](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@kadlik](https://discourse.nodered.org/u/kadlik)\
**Post date:** [25 November 2021 10:33 UTC](https://discourse.nodered.org/t/dali-with-serial-out/54252/5 "2021-11-25T10:33:02Z")

</div>

Thanks a lot. It works.

---

<div class="post-metadata">

**Author:** ![iiLaw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iilaw/32/14782_2.png) [@iiLaw](https://discourse.nodered.org/u/iiLaw)\
**Post date:** [25 November 2021 11:36 UTC](https://discourse.nodered.org/t/dali-with-serial-out/54252/6 "2021-11-25T11:36:59Z")

</div>

> [@kadlik](#):
>
> USB RS232 to DALI

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

---

<div class="post-metadata">

**Author:** ![kadlik](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@kadlik](https://discourse.nodered.org/u/kadlik)\
**Post date:** [25 November 2021 11:51 UTC](https://discourse.nodered.org/t/dali-with-serial-out/54252/7 "2021-11-25T11:51:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![iiLaw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/iilaw/32/14782_2.png) [@iiLaw](https://discourse.nodered.org/u/iiLaw)\
**Post date:** [25 November 2021 13:06 UTC](https://discourse.nodered.org/t/dali-with-serial-out/54252/8 "2021-11-25T13:06:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 January 2022 13:06 UTC](https://discourse.nodered.org/t/dali-with-serial-out/54252/9 "2022-01-24T13:06:34Z")

</div>

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