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

Using zwave-js-ui Inside A Standalone Node Application #3707

Closed
patrolport opened this issue May 10, 2024 · 6 comments
Closed

Using zwave-js-ui Inside A Standalone Node Application #3707

patrolport opened this issue May 10, 2024 · 6 comments
Assignees
Labels
question Further information is requested Stale

Comments

@patrolport
Copy link

Hello!

We were hoping somebody could point us in the right direction after hours of searching. We have the ZW JS UI setup through a browser and are able to connect to our ZW devices and interact with them.

What we need to do is get callbacks on certain events (i.e. window opened, loss of connection, etc.) directly in our node application. We were able to get this to at least run using the non UI version of zwave-js, but how do we use the UI version inside our node application which already has the ZW devices setup and configured?

Thank you very much

@patrolport patrolport added the question Further information is requested label May 10, 2024
@robertsLando
Copy link
Member

robertsLando commented May 10, 2024

@patrolport
Copy link
Author

Okay, thank you. Is this the best way to do it?

Originally, we wanted to use zwave-js directly in one single application (combine zwave-js with our existing application). We then thought it would be good to utilize the UI version as well which is why we were thinking of doing everything directly in our application and then just also have a web UI to work with for the first time setup.

Appreciate the help and quick response!

@robertsLando
Copy link
Member

Okay, thank you. Is this the best way to do it?

I think it is, you are not the only one doing this, Jeedom does the same: https://doc.jeedom.com/en_US/plugins/automation%20protocol/zwavejs/ (and maybe other that I'm not aware/don't remember)

The alternative is to enable websocekt server in option and use it's api: https://github.com/zwave-js/zwave-js-server

@patrolport
Copy link
Author

Thank you, appreciate the info. We are thinking the MQTT solution should work. If not, we will look into websockets.

One problem is needing a broker to interact between zwave-js-ui and our application. After doing some research, it appears using Aedes as a broker and the mqtt module as a client in the same application would be the best route to interact with zwave-js-ui from our application.

Thank you for your help!

@robertsLando
Copy link
Member

@patrolport Yeah that could be an easy solution to have an "all in one" application :)

Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove the stale label or comment or this will be closed in 5 days. To ignore this issue entirely you can add the no-stale label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested Stale
Projects
None yet
Development

No branches or pull requests

2 participants