# Blynk set property is not working

**URL:** <https://discourse.nodered.org/t/blynk-set-property-is-not-working/17578>\
**Category:** General\
**Created:** [6 November 2019 09:16 UTC](https://discourse.nodered.org/t/blynk-set-property-is-not-working/17578 "2019-11-06T09:16:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranavthakkar](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@pranavthakkar](https://discourse.nodered.org/u/pranavthakkar)\
**Post date:** [6 November 2019 09:16 UTC](https://discourse.nodered.org/t/blynk-set-property-is-not-working/17578/1 "2019-11-06T09:16:59Z")

</div>

I have a button which sends 0 and 1 for off and on,

and i want another button to change its property on label or off label .

 ![Annotation%202019-11-06%20144128](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/7/7b310783c350143a17f3c5f413353e30e4217799.png)

but it is not working, also there is problem in button set property which shows on label twice.

How can i solve this one?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [6 November 2019 10:49 UTC](https://discourse.nodered.org/t/blynk-set-property-is-not-working/17578/2 "2019-11-06T10:49:20Z")

</div>

Do you mean that you want a node that will change a message containing payload number 1 or 0 to "on" or "off"? If so you want a Change node configured to set the payload to JSONata  
`payload ? "on" : "off"  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/f368ef3898c96c0fb9aa73f7b31d671f4a6ddb5e.png)

```auto
[{"id":"722f61cc.154d08","type":"change","z":"514a90a5.c7bae8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload ? \"on\" : \"off\"","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":307,"y":361,"wires":[["7cbc5675.dc2ec"]]},{"id":"427779da.cb74e","type":"inject","z":"514a90a5.c7bae8","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":124,"y":339,"wires":[["722f61cc.154d08"]]},{"id":"b49cb978.c4f46","type":"inject","z":"514a90a5.c7bae8","name":"","topic":"","payload":"0","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":122,"y":389,"wires":[["722f61cc.154d08"]]},{"id":"7cbc5675.dc2ec","type":"debug","z":"514a90a5.c7bae8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":507,"y":361,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![pranavthakkar](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@pranavthakkar](https://discourse.nodered.org/u/pranavthakkar)\
**Post date:** [6 November 2019 13:15 UTC](https://discourse.nodered.org/t/blynk-set-property-is-not-working/17578/3 "2019-11-06T13:15:36Z")

</div>

no it is on blynk side where if i switch button from 0 to 1 the property of other button get also changed.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [6 November 2019 13:47 UTC](https://discourse.nodered.org/t/blynk-set-property-is-not-working/17578/4 "2019-11-06T13:47:45Z")

</div>

Sorry, don't understand. Is this a Blynk question or a node-red question?
