Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect the hub with node-RED #141

Closed
guyluz11 opened this issue Jan 20, 2022 · 3 comments · Fixed by #144
Closed

Connect the hub with node-RED #141

guyluz11 opened this issue Jan 20, 2022 · 3 comments · Fixed by #144
Assignees
Labels
feature request Request to add new feature help wanted Extra attention is needed

Comments

@guyluz11
Copy link
Member

guyluz11 commented Jan 20, 2022

The Hub got built around the concept of MQTT in order to use tools like Node-RED to its advantage.

Node-RED is a programming tool for wiring together hardware devices, APIs and online services in new and interesting ways.

It provides a browser-based editor that makes it easy to wire together flows using the wide range of nodes in the palette that can be deployed to its runtime in a single-click.

Node-RED is full of features and has a pretty good graphical user interface.

Let's create an integration layer with Node-RED to control and change nodes inside of it.

  1. The Hub will be able to use it to control and manage nods for scenes, control devices, routines, bindings.
    Add support for Scenes #18
  2. Will grant the user option to see visually his scenes, routines, bindings.
  3. Will grant the user the option to create complicated scenes, routines, bindings by using the Node-RED GUI interface.
  4. You can download nodes in Node-RED that will grant us more functionality like interacting with alexa skills or nodes to "communicate with Sonoff Smart Switch devices on LAN" which will add support for more devices automatically for us.
@guyluz11 guyluz11 added feature request Request to add new feature help wanted Extra attention is needed labels Jan 20, 2022
@guyluz11
Copy link
Member Author

Created a question for that in the Node-RED forum

@guyluz11
Copy link
Member Author

Got the following answer

The Runtime provides an HTTP Admin API - which is what the editor uses - that lets you update the flow configuration. You have to construct the appropriate JSON yourself, but you can then give it to the runtime.

https://nodered.org/docs/api/admin/methods/post/flows/

Also found this question in the forum.

@guyluz11 guyluz11 linked a pull request Feb 15, 2022 that will close this issue
@guyluz11 guyluz11 self-assigned this Feb 15, 2022
@guyluz11
Copy link
Member Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request to add new feature help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant