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

Home Assistant MQTT support with Eclipse Paho client #97

Merged
merged 1 commit into from
Feb 8, 2025

Conversation

jmcewen58
Copy link
Contributor

This change has the following:

  • Create a new MQTT Producer client using the Eclipse Paho client which can communicate with HomeAssistant.
  • Create a wrapper producer client that examines the port supplied in the location, and if > 20,000 uses the original Apache Artemis client, and otherwise uses the Paho client.
  • Update the producer server to supply only the wrapper.
  • Update bms-to-inverter main fixing bug where external client variable was not used when sending.
  • Supply sample yaml config for HomeAssistant, and sample json provided in the MQTT message.

@ai-republic ai-republic merged commit 8e8f346 into ai-republic:main Feb 8, 2025
@ai-republic
Copy link
Owner

ai-republic commented Feb 8, 2025

@jmcewen58 thanks for your contribution Jeff. I've merged your PR into the main branch 😄
I also added a TODO to add the option to the Configurator to choose the MQTT client/producer implementation. Then it can be split up into separeate modules and can be added via the service loader to keep the footprint small

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

Successfully merging this pull request may close these issues.

2 participants