I was able to copy the flow after passing through gemini.google and have shown the configuration done by him for background color.
i see that the config of the button node is like below
msg.bcolor instead of {{bgcolor}}
I was able to copy the flow after passing through gemini.google and have shown the configuration done by him for background color.
i see that the config of the button node is like below
msg.bcolor instead of {{bgcolor}}
Not sure which Dashboard you are using. This example is for DB1
(e.g. msg.fred)
as long as they agree in the Button node and Inject node.
Here's the NR flow for you to try... (copy and import it into your NR flow)
[{"id":"3b6da4c9ba1e667a","type":"ui_button","z":"b62a08c8f27a646f","name":"","group":"098b99c4fe660992","order":6,"width":0,"height":0,"passthru":false,"label":"Turn pump OFF","tooltip":"","color":"","bgcolor":"{{background}}","className":"","icon":"","payload":"","payloadType":"str","topic":"","topicType":"str","x":940,"y":640,"wires":[[]]},{"id":"ec0bccd81a23a5dd","type":"inject","z":"b62a08c8f27a646f","name":"Set button background to RED","props":[{"p":"background","v":"red","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":700,"y":620,"wires":[["3b6da4c9ba1e667a"]]},{"id":"7c97ee44908c7817","type":"inject","z":"b62a08c8f27a646f","name":"Set button background to RED","props":[{"p":"background","v":"green","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":700,"y":660,"wires":[["3b6da4c9ba1e667a"]]},{"id":"098b99c4fe660992","type":"ui_group","name":"Manual Controls","tab":"71dfb528d156e895","order":6,"disp":true,"width":"3","collapse":false,"className":""},{"id":"71dfb528d156e895","type":"ui_tab","name":"Herb and Pebble Garden","icon":"dashboard","order":24,"disabled":false,"hidden":false}]
Interesting as Gemini gave me the code to put in there. I will try that and let you know.
However, my problem is still that I have to press the buttons twice to get a response. Any thoughts?
Did you try my code??
Not yet. I am at work and my Node Red installation is at home.