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
You can use node-red for this
Otherwise, you would have to write a plugin.
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
That simply sets a global variable in node-red, but you can make it do anything node-red can do.
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.
You should probably find a generic node-red tutorial
Okay
I'll go find one.
I guess there's nothing specific for Signalk it'll make sense then.
Have you found the node-red ui in sk?
There is specific sk stuff.
Oh I literally did not know there was a node-red UI in sk
Thank you...
But you need to start with basic knowledge
Go to Web Apps
Oh I've found it now
Thanks.
I can probably take that and find a tutorial somewhere to get past that.
You can copy the examples in the directory above to clipboard and then go to node-red menu and import them.
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.
oh shit
that's so easy
thank you
Literally getting the UI engaged was a huge help.