gablau / node-red-contrib-blynk-ws

Old/Legacy Blynk library implementation for Node-RED using WebSockets
MIT License
31 stars 10 forks source link

using the WRITE node with the zergba #7

Closed scargill closed 6 years ago

scargill commented 6 years ago

Help.. I'm reading from the WRITE EVENT node for zeRGBA and getting the colour value no problem into a global varuable, but cant figure out how to get that global var value back into the WRITE node.

So if NODE RE powers up it defaults the colour and at that point the zeRGBa has no idea what the current colour actually is, similarly if the colour is changed elsewhere... I need to get that colour back into the zeRGBa. I tried putting "255,0,0" into payload.. I even tried splitting it into 3 parts... cant get anything valid back into the WRITE node for that pin.

Help..

scargill commented 6 years ago

Specifically using a single pin zeRGBa, I want to push a colour value BACK to the zeRGBA but the docs refer merely to sending a value in msg.payload into the write node... but for the zeRGBA I cant figure out the format. data comes out of the zeRGBa as arrayOfValues[0] through 2... no problem but how to inject a value back....

gablau commented 6 years ago

Hi Peter, You can use a "sync" or "sync all" node on node-red start to retrive the zergba value. I never try to write on zergba :-) so i will need to try before at then I will let you know

gablau commented 6 years ago

For write on single pin try to pass an array with three value msg.payload =[255, 0, 0];

scargill commented 6 years ago

Doing exactly that didn’t bomb, but then what gets passed is not 255,0,0…. I tried sending a buffer [255,0,0] and the zeRGBa went to 0,0,73, then after manuly presetting the zeRGBA to all blue, next time I sent that 255,0,0 it went to 0, 45, 0

Pete

From: Gabriele Lauricella notifications@github.com Sent: 05 May 2018 19:35 To: gablau/node-red-contrib-blynk-ws node-red-contrib-blynk-ws@noreply.github.com Cc: Peter Scargill pete@scargill.org; Author author@noreply.github.com Subject: Re: [gablau/node-red-contrib-blynk-ws] using the WRITE node with the zergba (#7)

For write on single pin try to pass an array with three value msg.payload =[255, 0, 0];

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gablau/node-red-contrib-blynk-ws/issues/7#issuecomment-386822226 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABzUg8HbbvAblFFc8Eyppvm5FxFoAdgxks5tveLCgaJpZM4TztBQ . https://github.com/notifications/beacon/ABzUg3iZ0P0zUrND0MCnIpQTgki2iv0Oks5tveLCgaJpZM4TztBQ.gif

scargill commented 6 years ago

I tried [255,0,0] using both buffer and json types, neither bomb but neither result in the right colour going into the pin

From: Gabriele Lauricella notifications@github.com Sent: 05 May 2018 19:35 To: gablau/node-red-contrib-blynk-ws node-red-contrib-blynk-ws@noreply.github.com Cc: Peter Scargill pete@scargill.org; Author author@noreply.github.com Subject: Re: [gablau/node-red-contrib-blynk-ws] using the WRITE node with the zergba (#7)

For write on single pin try to pass an array with three value msg.payload =[255, 0, 0];

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gablau/node-red-contrib-blynk-ws/issues/7#issuecomment-386822226 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABzUg8HbbvAblFFc8Eyppvm5FxFoAdgxks5tveLCgaJpZM4TztBQ . https://github.com/notifications/beacon/ABzUg3iZ0P0zUrND0MCnIpQTgki2iv0Oks5tveLCgaJpZM4TztBQ.gif

scargill commented 6 years ago

Now I’ve tried sending payload from an inject node as both buffer and json to both write for that pin and sync for that pin [255,0,0] without effect

From: Gabriele Lauricella notifications@github.com Sent: 05 May 2018 19:35 To: gablau/node-red-contrib-blynk-ws node-red-contrib-blynk-ws@noreply.github.com Cc: Peter Scargill pete@scargill.org; Author author@noreply.github.com Subject: Re: [gablau/node-red-contrib-blynk-ws] using the WRITE node with the zergba (#7)

For write on single pin try to pass an array with three value msg.payload =[255, 0, 0];

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gablau/node-red-contrib-blynk-ws/issues/7#issuecomment-386822226 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABzUg8HbbvAblFFc8Eyppvm5FxFoAdgxks5tveLCgaJpZM4TztBQ . https://github.com/notifications/beacon/ABzUg3iZ0P0zUrND0MCnIpQTgki2iv0Oks5tveLCgaJpZM4TztBQ.gif

gablau commented 6 years ago

Hi Peter, I did some tests and I managed to write on the zergba! Below I copied you my node-red snippet, V0 is a zergba

[{"id":"5f67c7d3.d81378","type":"blynk-ws-in-write","z":"ce0cd7ca.88c938","name":"","pin":"0","pin_all":0,"client":"e95d446f.49bc58","x":230,"y":2147,"wires":[["128361c7.def9d6"]]},{"id":"128361c7.def9d6","type":"debug","z":"ce0cd7ca.88c938","name":"","active":true,"console":false,"complete":"true","x":410,"y":2147,"wires":[]},{"id":"9570ccf4.fca4d","type":"blynk-ws-out-write","z":"ce0cd7ca.88c938","name":"","pin":"0","pinmode":0,"client":"e95d446f.49bc58","x":569,"y":2035,"wires":[]},{"id":"8ab99fc2.9f147","type":"inject","z":"ce0cd7ca.88c938","name":"","topic":"","payload":"red","payloadType":"str","repeat":"","crontab":"","once":false,"x":212,"y":2035,"wires":[["dd02bf0f.d191a8"]]},{"id":"dd02bf0f.d191a8","type":"function","z":"ce0cd7ca.88c938","name":"send red","func":"msg.payload = 255+\"\\0\"+0+\"\\0\"+0;\nreturn msg;","outputs":1,"noerr":0,"x":359,"y":2035,"wires":[["9570ccf4.fca4d"]]},{"id":"318d189a.575288","type":"blynk-ws-out-sync","z":"ce0cd7ca.88c938","name":"","pin":"0","pinmode":0,"client":"e95d446f.49bc58","x":378,"y":2087,"wires":[]},{"id":"eec359ca.d7ebe8","type":"inject","z":"ce0cd7ca.88c938","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"","crontab":"","once":false,"x":208,"y":2087,"wires":[["318d189a.575288"]]},{"id":"e95d446f.49bc58","type":"blynk-ws-client","z":"","name":"uno","path":"ws://blynk-cloud.com/websockets","key":"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","dbg_all":true,"dbg_read":false,"dbg_write":false,"dbg_notify":false,"dbg_mail":false,"dbg_prop":false,"dbg_sync":false,"dbg_bridge":false,"dbg_low":true,"dbg_pins":"","multi_cmd":true,"proxy_type":"no","proxy_url":""}]

At the moment we need to send a particular string 255 + "\0" +0 + "\0" +0 to send the red color and I used a function node to do it. We probably need a specific node to handle the zergba in merge mode.

gablau commented 6 years ago

I realized that if I send via a write node the value "aaaaaaaa" to the pin of the zergba in merge mode and then do a sync of that pin I return the value I sent "aaaaaaaa", while on the app I see set 0 0 0 value.

Strange, I think I'll tell the question to Blynk programmers

gablau commented 6 years ago

Hi Peter, new version 0.6.0 of this library, added new zeRGBa node for handle zeRGBa widget in merge mode! Let me know if it works properly.

Example flows for zeRGBa node:

[
    {
        "id": "d1642162.7d0bc",
        "type": "blynk-ws-zergba",
        "z": "ce0cd7ca.88c938",
        "name": "",
        "pin": "0",
        "client": "e41126e7.38cd28",
        "x": 547,
        "y": 2357,
        "wires": [
            [
                "de8a0e23.737dd"
            ]
        ]
    },
    {
        "id": "609c8135.8c0d28",
        "type": "inject",
        "z": "ce0cd7ca.88c938",
        "name": "",
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 127,
        "y": 2337,
        "wires": [
            [
                "a4a8acdf.b4fdb8"
            ]
        ]
    },
    {
        "id": "de8a0e23.737dd",
        "type": "debug",
        "z": "ce0cd7ca.88c938",
        "name": "",
        "active": true,
        "console": false,
        "complete": "true",
        "x": 727,
        "y": 2357,
        "wires": []
    },
    {
        "id": "a4a8acdf.b4fdb8",
        "type": "function",
        "z": "ce0cd7ca.88c938",
        "name": "255+\"\\0\"+0+\"\\0\"+0",
        "func": "msg.payload = 0+\"\\0\"+255+\"\\0\"+0\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 307,
        "y": 2337,
        "wires": [
            [
                "d1642162.7d0bc"
            ]
        ]
    },
    {
        "id": "b46a153d.f8149",
        "type": "inject",
        "z": "ce0cd7ca.88c938",
        "name": "",
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 127,
        "y": 2377,
        "wires": [
            [
                "41c8ce8e.523928"
            ]
        ]
    },
    {
        "id": "41c8ce8e.523928",
        "type": "function",
        "z": "ce0cd7ca.88c938",
        "name": "r255 g34 b22",
        "func": "msg.r = 255;\nmsg.g = 34;\nmsg.b = 22;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 297,
        "y": 2377,
        "wires": [
            [
                "d1642162.7d0bc"
            ]
        ]
    },
    {
        "id": "ed46b345.d3d11",
        "type": "inject",
        "z": "ce0cd7ca.88c938",
        "name": "",
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 127,
        "y": 2297,
        "wires": [
            [
                "6291ecb1.9e9c24"
            ]
        ]
    },
    {
        "id": "6291ecb1.9e9c24",
        "type": "function",
        "z": "ce0cd7ca.88c938",
        "name": "#34DE01",
        "func": "msg.hex = \"#34DE01\";\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 277,
        "y": 2297,
        "wires": [
            [
                "d1642162.7d0bc"
            ]
        ]
    },
    {
        "id": "9bb5e9b1.a9d3e",
        "type": "inject",
        "z": "ce0cd7ca.88c938",
        "name": "",
        "topic": "",
        "payload": "0;0;255",
        "payloadType": "str",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 327,
        "y": 2417,
        "wires": [
            [
                "d1642162.7d0bc"
            ]
        ]
    },
    {
        "id": "9e8bd5e6.727db8",
        "type": "blynk-ws-out-sync",
        "z": "ce0cd7ca.88c938",
        "name": "",
        "pin": "0",
        "pinmode": 0,
        "client": "e41126e7.38cd28",
        "x": 677,
        "y": 2277,
        "wires": []
    },
    {
        "id": "e9016dad.b731a",
        "type": "inject",
        "z": "ce0cd7ca.88c938",
        "name": "",
        "topic": "",
        "payload": "true",
        "payloadType": "bool",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 507,
        "y": 2277,
        "wires": [
            [
                "9e8bd5e6.727db8"
            ]
        ]
    },
    {
        "id": "e41126e7.38cd28",
        "type": "blynk-ws-client",
        "z": "",
        "name": "uno",
        "path": "wss://blynk-cloud.com/websockets",
        "key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "dbg_all": true,
        "dbg_read": false,
        "dbg_write": false,
        "dbg_notify": false,
        "dbg_mail": false,
        "dbg_prop": false,
        "dbg_sync": false,
        "dbg_bridge": false,
        "dbg_low": true,
        "dbg_pins": "",
        "multi_cmd": true,
        "proxy_type": "no",
        "proxy_url": ""
    }
]
scargill commented 6 years ago

Great. Travelling right now, back to UK tomorrow then I will check the node.

Pete

On 8 May 2018 01:14:34 Gabriele Lauricella notifications@github.com wrote:

Hi Peter, new version 0.6.0 of this library, added new zeRGBa node for handle zeRGBa widget in merge mode! Let me know if it works properly.Example flows for zeRGBa node: [ { "id": "d1642162.7d0bc", "type": "blynk-ws-zergba", "z": "ce0cd7ca.88c938", "name": "", "pin": "0", "client": "e41126e7.38cd28", "x": 547, "y": 2357, "wires": [ [ "de8a0e23.737dd" ] ] }, { "id": "609c8135.8c0d28", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "x": 127, "y": 2337, "wires": [ [ "a4a8acdf.b4fdb8" ] ] }, { "id": "de8a0e23.737dd", "type": "debug", "z": "ce0cd7ca.88c938", "name": "", "active": true, "console": false, "complete": "true", "x": 727, "y": 2357, "wires": [] }, { "id": "a4a8acdf.b4fdb8", "type": "function", "z": "ce0cd7ca.88c938", "name": "255+\"\0\"+0+\"\0\"+0", "func": "msg.payload = 0+\"\0\"+255+\"\0\"+0\nreturn msg;", "outputs": 1, "noerr": 0, "x": 307, "y": 2337, "wires": [ [ "d1642162.7d0bc" ] ] }, { "id": "b46a153d.f8149", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "x": 127, "y": 2377, "wires": [ [ "41c8ce8e.523928" ] ] }, { "id": "41c8ce8e.523928", "type": "function", "z": "ce0cd7ca.88c938", "name": "r255 g34 b22", "func": "msg.r = 255;\nmsg.g = 34;\nmsg.b = 22;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 297, "y": 2377, "wires": [ [ "d1642162.7d0bc" ] ] }, { "id": "ed46b345.d3d11", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "x": 127, "y": 2297, "wires": [ [ "6291ecb1.9e9c24" ] ] }, { "id": "6291ecb1.9e9c24", "type": "function", "z": "ce0cd7ca.88c938", "name": "#34DE01", "func": "msg.hex = \"#34DE01\";\nreturn msg;", "outputs": 1, "noerr": 0, "x": 277, "y": 2297, "wires": [ [ "d1642162.7d0bc" ] ] }, { "id": "9bb5e9b1.a9d3e", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "0;0;255", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "x": 327, "y": 2417, "wires": [ [ "d1642162.7d0bc" ] ] }, { "id": "9e8bd5e6.727db8", "type": "blynk-ws-out-sync", "z": "ce0cd7ca.88c938", "name": "", "pin": "0", "pinmode": 0, "client": "e41126e7.38cd28", "x": 677, "y": 2277, "wires": [] }, { "id": "e9016dad.b731a", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "x": 507, "y": 2277, "wires": [ [ "9e8bd5e6.727db8" ] ] }, { "id": "e41126e7.38cd28", "type": "blynk-ws-client", "z": "", "name": "uno", "path": "wss://blynk-cloud.com/websockets", "key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "dbg_all": true, "dbg_read": false, "dbg_write": false, "dbg_notify": false, "dbg_mail": false, "dbg_prop": false, "dbg_sync": false, "dbg_bridge": false, "dbg_low": true, "dbg_pins": "", "multi_cmd": true, "proxy_type": "no", "proxy_url": "" } ]

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

scargill commented 6 years ago

At first glance yes.. your 255,0,0, example is wrong somehow.. as the output is green not red but generally yes. I’m not sure I understand that sync node, but now I can set a value on the phone OR via another source. Excellent.

Pete

From: Gabriele Lauricella [mailto:notifications@github.com] Sent: 08 May 2018 00:15 To: gablau/node-red-contrib-blynk-ws node-red-contrib-blynk-ws@noreply.github.com Cc: Peter Scargill pete@scargill.org; Author author@noreply.github.com Subject: Re: [gablau/node-red-contrib-blynk-ws] using the WRITE node with the zergba (#7)

Hi Peter, new version 0.6.0 of this library, added new zeRGBa node for handle zeRGBa widget in merge mode! Let me know if it works properly.

Example flows for zeRGBa node:

[ { "id": "d1642162.7d0bc", "type": "blynk-ws-zergba", "z": "ce0cd7ca.88c938", "name": "", "pin": "0", "client": "e41126e7.38cd28", "x": 547, "y": 2357, "wires": [ [ "de8a0e23.737dd" ] ] }, { "id": "609c8135.8c0d28", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "x": 127, "y": 2337, "wires": [ [ "a4a8acdf.b4fdb8" ] ] }, { "id": "de8a0e23.737dd", "type": "debug", "z": "ce0cd7ca.88c938", "name": "", "active": true, "console": false, "complete": "true", "x": 727, "y": 2357, "wires": [] }, { "id": "a4a8acdf.b4fdb8", "type": "function", "z": "ce0cd7ca.88c938", "name": "255+\"\0\ file:///\\0\ "+0+\"\0\ file:///\\0\ "+0", "func": "msg.payload = 0+\"\0\ file:///\\0\ "+255+\"\0\ file:///\\0\ "+0\nreturn msg;", "outputs": 1, "noerr": 0, "x": 307, "y": 2337, "wires": [ [ "d1642162.7d0bc" ] ] }, { "id": "b46a153d.f8149", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "x": 127, "y": 2377, "wires": [ [ "41c8ce8e.523928" ] ] }, { "id": "41c8ce8e.523928", "type": "function", "z": "ce0cd7ca.88c938", "name": "r255 g34 b22", "func": "msg.r = 255;\nmsg.g = 34;\nmsg.b = 22;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 297, "y": 2377, "wires": [ [ "d1642162.7d0bc" ] ] }, { "id": "ed46b345.d3d11", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "x": 127, "y": 2297, "wires": [ [ "6291ecb1.9e9c24" ] ] }, { "id": "6291ecb1.9e9c24", "type": "function", "z": "ce0cd7ca.88c938", "name": "#34DE01", "func": "msg.hex = \"#34DE01\";\nreturn msg;", "outputs": 1, "noerr": 0, "x": 277, "y": 2297, "wires": [ [ "d1642162.7d0bc" ] ] }, { "id": "9bb5e9b1.a9d3e", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "0;0;255", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "x": 327, "y": 2417, "wires": [ [ "d1642162.7d0bc" ] ] }, { "id": "9e8bd5e6.727db8", "type": "blynk-ws-out-sync", "z": "ce0cd7ca.88c938", "name": "", "pin": "0", "pinmode": 0, "client": "e41126e7.38cd28", "x": 677, "y": 2277, "wires": [] }, { "id": "e9016dad.b731a", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "x": 507, "y": 2277, "wires": [ [ "9e8bd5e6.727db8" ] ] }, { "id": "e41126e7.38cd28", "type": "blynk-ws-client", "z": "", "name": "uno", "path": "wss://blynk-cloud.com/websockets", "key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "dbg_all": true, "dbg_read": false, "dbg_write": false, "dbg_notify": false, "dbg_mail": false, "dbg_prop": false, "dbg_sync": false, "dbg_bridge": false, "dbg_low": true, "dbg_pins": "", "multi_cmd": true, "proxy_type": "no", "proxy_url": "" } ]

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gablau/node-red-contrib-blynk-ws/issues/7#issuecomment-387234877 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABzUg6GrYzidnYWuP0ufTWZ-WJmL9bv8ks5twNVfgaJpZM4TztBQ . https://github.com/notifications/beacon/ABzUg9bVEzOTdhE2f3upwSgIbW5jFk9Wks5twNVfgaJpZM4TztBQ.gif

scargill commented 6 years ago

Fantastic, I'll use the simplest option 255;0;0

Marvellous work

scargill commented 6 years ago

Got a problem – using your example – the simplest version – 225;0;0 string etc.

Works wonderfully with one zeRGBa, virtual pin 25. I just added a second by copy paste, changed pin to 26. Works but turn app off and on, reverts to another colour.

This is what I set, both similar..

Result after closing and opening the app, left one stays as it was, right one takes colour from inject,

From: Gabriele Lauricella [mailto:notifications@github.com] Sent: 08 May 2018 00:15 To: gablau/node-red-contrib-blynk-ws node-red-contrib-blynk-ws@noreply.github.com Cc: Peter Scargill pete@scargill.org; Author author@noreply.github.com Subject: Re: [gablau/node-red-contrib-blynk-ws] using the WRITE node with the zergba (#7)

Hi Peter, new version 0.6.0 of this library, added new zeRGBa node for handle zeRGBa widget in merge mode! Let me know if it works properly.

Example flows for zeRGBa node:

[ { "id": "d1642162.7d0bc", "type": "blynk-ws-zergba", "z": "ce0cd7ca.88c938", "name": "", "pin": "0", "client": "e41126e7.38cd28", "x": 547, "y": 2357, "wires": [ [ "de8a0e23.737dd" ] ] }, { "id": "609c8135.8c0d28", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "x": 127, "y": 2337, "wires": [ [ "a4a8acdf.b4fdb8" ] ] }, { "id": "de8a0e23.737dd", "type": "debug", "z": "ce0cd7ca.88c938", "name": "", "active": true, "console": false, "complete": "true", "x": 727, "y": 2357, "wires": [] }, { "id": "a4a8acdf.b4fdb8", "type": "function", "z": "ce0cd7ca.88c938", "name": "255+\"\0\ file:///\\0\ "+0+\"\0\ file:///\\0\ "+0", "func": "msg.payload = 0+\"\0\ file:///\\0\ "+255+\"\0\ file:///\\0\ "+0\nreturn msg;", "outputs": 1, "noerr": 0, "x": 307, "y": 2337, "wires": [ [ "d1642162.7d0bc" ] ] }, { "id": "b46a153d.f8149", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "x": 127, "y": 2377, "wires": [ [ "41c8ce8e.523928" ] ] }, { "id": "41c8ce8e.523928", "type": "function", "z": "ce0cd7ca.88c938", "name": "r255 g34 b22", "func": "msg.r = 255;\nmsg.g = 34;\nmsg.b = 22;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 297, "y": 2377, "wires": [ [ "d1642162.7d0bc" ] ] }, { "id": "ed46b345.d3d11", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "x": 127, "y": 2297, "wires": [ [ "6291ecb1.9e9c24" ] ] }, { "id": "6291ecb1.9e9c24", "type": "function", "z": "ce0cd7ca.88c938", "name": "#34DE01", "func": "msg.hex = \"#34DE01\";\nreturn msg;", "outputs": 1, "noerr": 0, "x": 277, "y": 2297, "wires": [ [ "d1642162.7d0bc" ] ] }, { "id": "9bb5e9b1.a9d3e", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "0;0;255", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "x": 327, "y": 2417, "wires": [ [ "d1642162.7d0bc" ] ] }, { "id": "9e8bd5e6.727db8", "type": "blynk-ws-out-sync", "z": "ce0cd7ca.88c938", "name": "", "pin": "0", "pinmode": 0, "client": "e41126e7.38cd28", "x": 677, "y": 2277, "wires": [] }, { "id": "e9016dad.b731a", "type": "inject", "z": "ce0cd7ca.88c938", "name": "", "topic": "", "payload": "true", "payloadType": "bool", "repeat": "", "crontab": "", "once": false, "x": 507, "y": 2277, "wires": [ [ "9e8bd5e6.727db8" ] ] }, { "id": "e41126e7.38cd28", "type": "blynk-ws-client", "z": "", "name": "uno", "path": "wss://blynk-cloud.com/websockets", "key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "dbg_all": true, "dbg_read": false, "dbg_write": false, "dbg_notify": false, "dbg_mail": false, "dbg_prop": false, "dbg_sync": false, "dbg_bridge": false, "dbg_low": true, "dbg_pins": "", "multi_cmd": true, "proxy_type": "no", "proxy_url": "" } ]

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gablau/node-red-contrib-blynk-ws/issues/7#issuecomment-387234877 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABzUg6GrYzidnYWuP0ufTWZ-WJmL9bv8ks5twNVfgaJpZM4TztBQ . https://github.com/notifications/beacon/ABzUg9bVEzOTdhE2f3upwSgIbW5jFk9Wks5twNVfgaJpZM4TztBQ.gif

gablau commented 6 years ago

Yes Peter, I try and get the same strange error. Need to open a post on blynk forum. I don't think this is a problem of my library...

gablau commented 6 years ago

Post on blynk forum: https://community.blynk.cc/t/strange-problem-with-zergba-widgets/25210

scargill commented 6 years ago

Oh dear, I was very excited as it all worked perfectly with one zeRGBa. The second one sets ok but if the app loses focus or you turn the phone off, when you go back in to the app, the second zeRGBa on the App comes up with the wrong colour. At the end of Node-Red I have a Raspberry Pi and a control board driving the LED (Node-Red sees only MQTT which then talks to the board and that is all time-tested). At this point the LED still has the right colour but the APP is showing the wrong colour. Perhaps it would carry more weight if you contact Dmitriy at Blynk?

I will write in the Blynk forum

Pete

From: Gabriele Lauricella [mailto:notifications@github.com] Sent: 14 May 2018 10:17 To: gablau/node-red-contrib-blynk-ws node-red-contrib-blynk-ws@noreply.github.com Cc: Peter Scargill pete@scargill.org; Author author@noreply.github.com Subject: Re: [gablau/node-red-contrib-blynk-ws] using the WRITE node with the zergba (#7)

Yes Peter, I try and get the same strange error. Need to open a post on blynk forum. I don't think this is a problem of my library...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gablau/node-red-contrib-blynk-ws/issues/7#issuecomment-388751229 , or mute the thread https://github.com/notifications/unsubscribe-auth/ABzUg6qmBelkvQqE244TR4z_5tBQNbgQks5tyUuPgaJpZM4TztBQ . https://github.com/notifications/beacon/ABzUg5zWffUbCXxCGPlrIbgnF2Tmwncwks5tyUuPgaJpZM4TztBQ.gif