ENTTEC ODE MK3を使ってミネベアミツミのSALIOTを操作する

ミネベアミツミ様よりスマート照明SALIOT(サリオ)とDMX中継機をお借りしました。

Saliot

DMX中継機を使うと、DMX信号を送ることでSALIOTが制御できるということで試してみます。

ENTTEC ODE MK3の設定についてはこちらの記事をご覧ください。
ENTTEC ODE MK3を使ってNode-REDからsACNを送りDMX制御してみた

DMX中継機について

UntitledImage

中継機にあるダイヤルでDMXのスタートアドレスを設定できますが、0にするとSALIOTのアプリからスタートアドレスを設定できるとのこと。

UntitledImage

初期は2chでそれぞれ、明るさ、色温度の変更ができ、SALIOTのアプリから最大16ch分の機能が設定できる。

Node-REDからSALIOTを操作する(調光)

UntitledImage

UntitledImage

まずはDMX ch1に200と0をおくってみます。

結果、SALIOTが点灯、消灯しました。

Node-REDからSALIOTを操作する(調色)

UntitledImage

次に、DMX 2ch目を操作するフローを追加します。

[{"id":"41f8617ca7424823","type":"inject","z":"be15c556925e0f3a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"200","payloadType":"num","x":370,"y":180,"wires":[["aaf7a87be129e96b"]]},{"id":"b5fd75148f6bf6a6","type":"sACN","z":"be15c556925e0f3a","server":"a5bfa18a617588eb","universe":"","channel":"","transition":"instant","transitionRate":50,"transitionTime":1000,"name":"","x":700,"y":320,"wires":[]},{"id":"bef4fddc663e3982","type":"inject","z":"be15c556925e0f3a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":370,"y":260,"wires":[["aaf7a87be129e96b"]]},{"id":"aaf7a87be129e96b","type":"function","z":"be15c556925e0f3a","name":"1/1","func":"var value = msg.payload;\n\nmsg.topic = \"1/1\";\n\nmsg.payload = value;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":530,"y":220,"wires":[["b5fd75148f6bf6a6"]]},{"id":"2eab90c2a315d4b7","type":"inject","z":"be15c556925e0f3a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"200","payloadType":"num","x":350,"y":400,"wires":[["1e1d711324aea3c5"]]},{"id":"83e93945601b31cf","type":"inject","z":"be15c556925e0f3a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":350,"y":480,"wires":[["1e1d711324aea3c5"]]},{"id":"1e1d711324aea3c5","type":"function","z":"be15c556925e0f3a","name":"1/2","func":"var value = msg.payload;\n\nmsg.topic = \"1/2\";\n\nmsg.payload = value;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":440,"wires":[["b5fd75148f6bf6a6"]]},{"id":"a5bfa18a617588eb","type":"sacn-config","hostOrUniverse":"192.168.1.80","port":"5568"}]

ch2を操作して大きい値を送ると高色温度、低い値を送ると低色温度に変化することが確認できました。

Node-REDからSALIOTを操作する(3ch目を操作する)

UntitledImage

このように3ch目に200や0をおくると、器具ベースが回転します。

UntitledImage

DMX中継機の仕様書の左右のようです。

UntitledImage

このようなフローを作成し、

UntitledImage

Node-REDのダッシュボードのスライダーで数値を変化させます。

[{"id":"41f8617ca7424823","type":"inject","z":"be15c556925e0f3a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"200","payloadType":"num","x":350,"y":180,"wires":[["aaf7a87be129e96b"]]},{"id":"b5fd75148f6bf6a6","type":"sACN","z":"be15c556925e0f3a","server":"a5bfa18a617588eb","universe":"","channel":"","transition":"instant","transitionRate":50,"transitionTime":1000,"name":"","x":700,"y":320,"wires":[]},{"id":"bef4fddc663e3982","type":"inject","z":"be15c556925e0f3a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":350,"y":260,"wires":[["aaf7a87be129e96b"]]},{"id":"aaf7a87be129e96b","type":"function","z":"be15c556925e0f3a","name":"1/1","func":"var value = msg.payload;\n\nmsg.topic = \"1/1\";\n\nmsg.payload = value;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":220,"wires":[["b5fd75148f6bf6a6"]]},{"id":"2eab90c2a315d4b7","type":"inject","z":"be15c556925e0f3a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"200","payloadType":"num","x":350,"y":400,"wires":[["1e1d711324aea3c5"]]},{"id":"83e93945601b31cf","type":"inject","z":"be15c556925e0f3a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":350,"y":480,"wires":[["1e1d711324aea3c5"]]},{"id":"1e1d711324aea3c5","type":"function","z":"be15c556925e0f3a","name":"1/2","func":"var value = msg.payload;\n\nmsg.topic = \"1/2\";\n\nmsg.payload = value;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":510,"y":440,"wires":[["b5fd75148f6bf6a6"]]},{"id":"904e80d123f8d62d","type":"inject","z":"be15c556925e0f3a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"200","payloadType":"num","x":330,"y":560,"wires":[["a6615e2cf6570c0c"]]},{"id":"814159dfa2601dd1","type":"inject","z":"be15c556925e0f3a","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"0","payloadType":"num","x":330,"y":640,"wires":[["a6615e2cf6570c0c"]]},{"id":"a6615e2cf6570c0c","type":"function","z":"be15c556925e0f3a","name":"1/3","func":"var value = msg.payload;\n\nmsg.topic = \"1/3\";\n\nmsg.payload = value;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":600,"wires":[["b5fd75148f6bf6a6"]]},{"id":"3d583ccf1201d544","type":"ui_slider","z":"be15c556925e0f3a","name":"3ch","label":"3ch","tooltip":"","group":"301b87b9.2eea08","order":4,"width":0,"height":0,"passthru":true,"outs":"all","topic":"topic","topicType":"msg","min":0,"max":"255","step":1,"x":310,"y":720,"wires":[["a6615e2cf6570c0c"]]},{"id":"a5bfa18a617588eb","type":"sacn-config","hostOrUniverse":"192.168.1.80","port":"5568"},{"id":"301b87b9.2eea08","type":"ui_group","name":"照明設定","tab":"daa780e3.a65d","order":1,"disp":false,"width":"7","collapse":false},{"id":"daa780e3.a65d","type":"ui_tab","name":"制御","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

動きを確認したところ、左右で間違いなさそうです

Node-REDからSALIOTを操作する(1〜5ch目を操作する)

UntitledImage

UntitledImage

1ch〜5chをスライダーで操作できるフローを作成。

[{"id":"b5fd75148f6bf6a6","type":"sACN","z":"be15c556925e0f3a","server":"a5bfa18a617588eb","universe":"","channel":"","transition":"instant","transitionRate":50,"transitionTime":1000,"name":"","x":700,"y":480,"wires":[]},{"id":"aaf7a87be129e96b","type":"function","z":"be15c556925e0f3a","name":"1/1","func":"var value = msg.payload;\n\nmsg.topic = \"1/1\";\n\nmsg.payload = value;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":360,"wires":[["b5fd75148f6bf6a6"]]},{"id":"1e1d711324aea3c5","type":"function","z":"be15c556925e0f3a","name":"1/2","func":"var value = msg.payload;\n\nmsg.topic = \"1/2\";\n\nmsg.payload = value;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":420,"wires":[["b5fd75148f6bf6a6"]]},{"id":"a6615e2cf6570c0c","type":"function","z":"be15c556925e0f3a","name":"1/3","func":"var value = msg.payload;\n\nmsg.topic = \"1/3\";\n\nmsg.payload = value;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":480,"wires":[["b5fd75148f6bf6a6"]]},{"id":"3d583ccf1201d544","type":"ui_slider","z":"be15c556925e0f3a","name":"3ch","label":"3ch","tooltip":"","group":"301b87b9.2eea08","order":4,"width":0,"height":0,"passthru":true,"outs":"all","topic":"topic","topicType":"msg","min":0,"max":"255","step":1,"x":350,"y":480,"wires":[["a6615e2cf6570c0c"]]},{"id":"6ab459da228d84e6","type":"function","z":"be15c556925e0f3a","name":"1/4","func":"var value = msg.payload;\n\nmsg.topic = \"1/4\";\n\nmsg.payload = value;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":540,"wires":[["b5fd75148f6bf6a6"]]},{"id":"5628fc9ed2c2c5d6","type":"ui_slider","z":"be15c556925e0f3a","name":"4ch","label":"4ch","tooltip":"","group":"301b87b9.2eea08","order":2,"width":0,"height":0,"passthru":true,"outs":"all","topic":"topic","topicType":"msg","min":0,"max":"255","step":1,"x":350,"y":540,"wires":[["6ab459da228d84e6"]]},{"id":"2a255a8e4c76b716","type":"function","z":"be15c556925e0f3a","name":"1/5","func":"var value = msg.payload;\n\nmsg.topic = \"1/5\";\n\nmsg.payload = value;\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":490,"y":600,"wires":[["b5fd75148f6bf6a6"]]},{"id":"2f32b95253011a94","type":"ui_slider","z":"be15c556925e0f3a","name":"5ch","label":"5ch","tooltip":"","group":"301b87b9.2eea08","order":3,"width":0,"height":0,"passthru":true,"outs":"all","topic":"topic","topicType":"msg","min":0,"max":"255","step":1,"x":350,"y":600,"wires":[["2a255a8e4c76b716"]]},{"id":"45248f2dec65b42a","type":"ui_slider","z":"be15c556925e0f3a","name":"2ch","label":"2ch","tooltip":"","group":"301b87b9.2eea08","order":5,"width":0,"height":0,"passthru":true,"outs":"all","topic":"topic","topicType":"msg","min":0,"max":"255","step":1,"x":350,"y":420,"wires":[["1e1d711324aea3c5"]]},{"id":"5eb109ae1cd53d33","type":"ui_slider","z":"be15c556925e0f3a","name":"1ch","label":"1ch","tooltip":"","group":"301b87b9.2eea08","order":6,"width":0,"height":0,"passthru":true,"outs":"all","topic":"topic","topicType":"msg","min":0,"max":"255","step":1,"x":350,"y":360,"wires":[["aaf7a87be129e96b"]]},{"id":"a5bfa18a617588eb","type":"sacn-config","hostOrUniverse":"192.168.1.80","port":"5568"},{"id":"301b87b9.2eea08","type":"ui_group","name":"照明設定","tab":"daa780e3.a65d","order":1,"disp":false,"width":"7","collapse":false},{"id":"daa780e3.a65d","type":"ui_tab","name":"制御","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

動画

動画を取りました。

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です