-
Notifications
You must be signed in to change notification settings - Fork 11
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
zigpy-cli - socket interface #7
Comments
You may be interested in @dmulcahey's https://github.com/zigpy/zha-websocket-server/ (and ZHA WS itself https://github.com/dmulcahey/home-assistant/tree/dm/zha-ws) as a basis for such a tool. Its command line client currently is just thin frontend for sending JSON but building an alternative CLI with asyncio-native python-prompt-toolkit seems very doable in the future. Once the low-level network information PRs are done, adding backup/restore to ZHA WS (and things from https://github.com/mdeweerd/zha-toolkit/!) will be very easy. |
@mdeweerd any interest in working on this with us? It may eventually replace ZHA entirely. |
I am really busy on quite a few projects. I can easily put in some brain power, but not too much coding. I have put some effort into the project to help it go forward, and because I can use some of it. |
Noticed PR home-assistant/core#88564 with work on HA's ZHA network settings API and that reminded me of question about the websocket server project, so wondering what the current planned roadmap/status is for zha-websocket-server and ZHA WS itself? |
Bump this question now that home-assistant/core#88564 (ZHA network settings API) has been merged into Home Assistant core. |
@Hedda Thanks for keeping this Issue up-to-date. This is for sure a nice addition to ZHA, however my suggestion was really related to Zigpy itself when it is launched independently from ZHA. |
Closing this - not very recent, not the main usage of the cli I think. |
Just a suggestion - add a daemon mode with a socket interface.
The socket interface would accept the same commands as the CLI but without addint the call to zigpy or the radio setting.
So the daemon could be started like this:
And then connections can be made to port 3400 to send commands, using telnet, netcat or whatever.
Example:
Then inside the telnet session:
The parsing of the commands would remain the same as on the cli, but then the tool would have a broader range of uses and the zigpy session can keep on running without requiring reinitialisation, potentially reporting incoming messages as well.
The text was updated successfully, but these errors were encountered: