(New day here. Just got up.)
Again thanks to all.
That will have to be put down to a few things not being understood.
With recent things shown to me, I am just messing around to play with what I was shown and try to get a grip on it.
Alas the gremlins are out and about because it doesnāt seem to be āworkingā.
Given asandfordās post, I am trying it to see if it works.
(Not saying what you said is wrong, but more pointing out what is happening HERE, NOW.)
This is what I am playing with just now.
A slight growth on what was shown:
[{"id":"caa513f6.edf078","type":"ui_button","z":"af7ff65f.3f93e","name":"","group":"3ccb7302.e512c4","order":0,"width":0,"height":0,"passthru":false,"label":"button","color":"","bgcolor":"","icon":"","payload":"{\"payload\":\"\",\"background\":\"red\"}","payloadType":"json","topic":"","x":190,"y":320,"wires":[["b4fdff23.a01ee"]]},{"id":"b4fdff23.a01ee","type":"ui_button","z":"af7ff65f.3f93e","name":"","group":"1b182f8e.fc089","order":0,"width":0,"height":0,"passthru":true,"label":"victim","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":570,"y":320,"wires":[["528e7285.5ae87c"]]},{"id":"af9f506c.8da9b8","type":"inject","z":"af7ff65f.3f93e","name":"","topic":"","payload":"{\"payload\":\"\",\"background\":\"red\"}","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":240,"wires":[["ebb88f26.c21e2","b4fdff23.a01ee"]]},{"id":"ebb88f26.c21e2","type":"debug","z":"af7ff65f.3f93e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":400,"y":240,"wires":[]},{"id":"528e7285.5ae87c","type":"debug","z":"af7ff65f.3f93e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":690,"y":320,"wires":[]},{"id":"3ccb7302.e512c4","type":"ui_group","name":"Group 1","tab":"5c833f2.04f73c","order":1,"disp":true,"width":6},{"id":"1b182f8e.fc089","type":"ui_group","name":"Group 2","tab":"5c833f2.04f73c","order":2,"disp":true,"width":6},{"id":"5c833f2.04f73c","type":"ui_tab","z":"","name":"Colour test","icon":"dashboard","order":5}]
Originally it was the INJECT and DEBUG nodes.
It is understood by me that if I send a ā¦ package (?) to a button with msg.background set to a valid value and in the button have the background colour option set to {{msg.background}} when the package arrives the background colour will change to said colour.
This has been shown to work with my recent post with the two buttons and switch, with the button changing colour as well as the switch indicating the āvalid timeā to press the second button.
So that a given to work.
I wanted to test it again with two buttons. The first simply sends the msg.background package to the second button and it changes colour.
That will establish a ābase lineā on which I can build. - if you get my meaning.
It didnāt work.
I added the original INJECT node. Didnāt work.
Looked at my āworkingā code and msg.payload is also āsetā to āā.
Added that to the { } part and tried.
Still doesnāt work.
So, again I am not seeing the elephant in the room.
Sorry, but this may be a fundamental flaw in how I see things and how I think.
If I donāt learn/understand/change that, I am not going to get anywhere.