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

Alternative implementation of Insteon libraries #16

Open
jonsmirl opened this issue Jan 7, 2021 · 0 comments
Open

Alternative implementation of Insteon libraries #16

jonsmirl opened this issue Jan 7, 2021 · 0 comments

Comments

@jonsmirl
Copy link

jonsmirl commented Jan 7, 2021

Have you looked at: https://github.com/TD22057/insteon-mqtt
That's an Insteon implementation similar to yours but written in Python.

Instead of having an API everything is done using MQTT. There is a Insteon server that talks to the PLM and to the MQTT broker. The CLI commands send MQTT to the broker which request the server to do various actions. This results in the CLI being completely decoupled from the sever code. The decoupling also allows the CLI and server to be on different machines.

MQTT works really well as a transport because various other people have written MQTT servers for their hardware. By using a common protocol for the MQTT commands you can control devices from multiple vendors using a common platform.
https://www.home-assistant.io/docs/mqtt/discovery/

Of course I prefer Go since it is far smaller and faster than Python.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant