A button does not have an on/off state, it sends a value when pushed.
There are many topics on this forum, here is one such How to set up a toggle button?
here are many from Search results for 'toggle button' - Node-RED Forum
A button does not have an on/off state, it sends a value when pushed.
There are many topics on this forum, here is one such How to set up a toggle button?
here are many from Search results for 'toggle button' - Node-RED Forum