KIP buttons to trigger mqtt message

I link signalk to homeassistant through Matt, using the gateway plugin; works great for paths signalk is aware of. Kip has a buttons option, how do I use that button to send an mqtt message? Or any other path for that matter, I'm not sure how to make new paths that the button will recognize. Anyone have experience in similar?
13 Replies
Scott Bender
Scott Bender3d ago
You can use node-red for this Otherwise, you would have to write a plugin.
Scott Bender
Scott Bender3d ago
GitHub
node-red-embedded/examples/put-handler.json at master · SignalK/no...
Node red nodes for use with the signalk-node-red plugin - SignalK/node-red-embedded
Scott Bender
Scott Bender3d ago
That simply sets a global variable in node-red, but you can make it do anything node-red can do.
joshgraff
joshgraffOP2d ago
I guess I learn node-red then. I was hoping to find a bit of a simpler way. Thanks. Is there an example of how to start using node-red in SignalK? Do I need to clone this repo somewhere? Install a file somewhere? I see .signalk/red/node_modules, but it's empty.... Okay I have done this. (thank you, btw) In the config it asks for flows, or for modules. I am not familiar with this jargon.
Scott Bender
Scott Bender2d ago
You should probably find a generic node-red tutorial
joshgraff
joshgraffOP2d ago
Okay I'll go find one. I guess there's nothing specific for Signalk it'll make sense then.
Scott Bender
Scott Bender2d ago
Have you found the node-red ui in sk? There is specific sk stuff.
joshgraff
joshgraffOP2d ago
Oh I literally did not know there was a node-red UI in sk Thank you...
Scott Bender
Scott Bender2d ago
But you need to start with basic knowledge Go to Web Apps
joshgraff
joshgraffOP2d ago
Oh I've found it now Thanks. I can probably take that and find a tutorial somewhere to get past that.
Scott Bender
Scott Bender2d ago
You can copy the examples in the directory above to clipboard and then go to node-red menu and import them.
Scott Bender
Scott Bender2d ago
There are more sk examples from others in Discussions here https://github.com/SignalK/signalk-node-red
GitHub
GitHub - SignalK/signalk-node-red: Node server plugin that embeds n...
Node server plugin that embeds node red. Contribute to SignalK/signalk-node-red development by creating an account on GitHub.
joshgraff
joshgraffOP2d ago
oh shit that's so easy thank you Literally getting the UI engaged was a huge help.

Did you find this page helpful?