Unipi 1.1 - how to set relay output in NODERED
-
HI!
What should I write in configuration to set relay output for Relay 1 ?
Unfortunately, I tryied many combination without result.this workaround in first diagram works,
where I sent in Functionmsg.headers = {}; msg.headers={ 'Content-Type': 'application/x-www-form-urlencoded' }; msg.payload = {}; msg.payload={ 'value': '1' }; return msg;
as HTTP request POST for url. http://(myadresip_evok)/rest/relay/1
but second base on UNIPI Output doesn't work
Can you help me with that?
-
@wizro_pl up?
-
Hi @wizro_pl,
you need to write a boolean value: true or false.Best regards,
Martin -
Sorry,
it doesn't work
for Uni Pi 1.1 - realy no 2 should be configured like that: ?
-
ok, I solved the problem.
it is logic but a little strange because UniPi Output only prepare the JSON message, but to send it you still need websocket ( I thought that UniPi Output node handle all of it).it works