revpi-output node syntax

Post Reply
MaFi
Posts: 3
Joined: 19 Jan 2021, 21:54

revpi-output node syntax

Post by MaFi »

Hallo

kurze Frage bezüglich der revpi-output node. Ich möchte das Relais vom Connect schalten. Mit einem „Exec“ und "piTest -s 6,6,1" bzw "piTest -s 6,6,0" kann ich das Relais auch schalten.

https://revolution.kunbus.de/tutorials/ ... erstellen/

Wie lautet die Syntax der revpi-output node für den RevPiLED Pin? Overwrite output value to ?

Code: Select all

[{"id":"79e56eea.886f1","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"d46013fb.54f0d","type":"mqtt in","z":"79e56eea.886f1","name":"","topic":"shop/lamp1","qos":"2","datatype":"auto","broker":"ec6fa00f.5e56a","x":310,"y":280,"wires":[["8c5d03f6.1744e","4332ac69.6ec584"]]},{"id":"8c5d03f6.1744e","type":"debug","z":"79e56eea.886f1","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":670,"y":280,"wires":[]},{"id":"d52de9b2.59a8c8","type":"exec","z":"79e56eea.886f1","command":"piTest -s 6,6,1","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":680,"y":460,"wires":[[],[],[]]},{"id":"4332ac69.6ec584","type":"function","z":"79e56eea.886f1","name":"","func":"\nvar payload=msg.payload;\n\nif (payload == \"true\"){\n    return [msg,null];\n}\nelse{\n    return [null,msg];\n}    \n","outputs":2,"noerr":0,"x":400,"y":500,"wires":[["30a1344b.672a9c"],["b9cd40d2.f13ea"]]},{"id":"f97a6673.4a3ce8","type":"exec","z":"79e56eea.886f1","command":"piTest -s 6,6,0","addpay":true,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":680,"y":560,"wires":[[],[],[]]},{"id":"30a1344b.672a9c","type":"revpi-output","z":"79e56eea.886f1","server":"295c82e4.78853e","outputpin":"RevPiLED","overwritevalue":true,"outputvalue":"6x01","x":680,"y":660,"wires":[]},{"id":"b9cd40d2.f13ea","type":"revpi-output","z":"79e56eea.886f1","server":"295c82e4.78853e","outputpin":"RevPiLED","overwritevalue":true,"outputvalue":"6x00","x":680,"y":760,"wires":[]},{"id":"ec6fa00f.5e56a","type":"mqtt-broker","z":"","name":"192.168.0.50:1883","broker":"192.168.0.50:1883","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"295c82e4.78853e","type":"revpi-server","z":0,"host":"127.0.0.1","port":"8000"}]
Beste Grüße und Danke
MaFi
Posts: 3
Joined: 19 Jan 2021, 21:54

Re: revpi-output node syntax

Post by MaFi »

okay einfach:

overwrite output value 0 für alle LEDs aus und relais geschlossen

overwrite output value 64 für alle LEDs aus und relais offen
Post Reply