Giter Site home page Giter Site logo

Comments (7)

ai-republic avatar ai-republic commented on July 28, 2024

Have you tried tcp://:61616 ? That the locator for the Artemis MQTT broker

from bms-to-inverter.

marekorok avatar marekorok commented on July 28, 2024

well, I'm using standard mosquitto mqtt broker installed on my home assistant environment and I don't want to use anything else.
Then it is using standard ports (established by IBM, mqtt inventor): 1883 for non-encrypted and 8883 for TLS encrypted traffic.

Every client I have is authenticating to the mqtt for security reasons, which I think is a standard nowadays, example Tasmota:
image

That is why I'm asking for such possibility...

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 28, 2024

Adding the authentication for the Artemis MQ Broker would be no problem. But you would need to bridge between Artemis MQ to Mosquitto. So you need a client connecting to Artemis MQ to receive the BMS data and a producer to post to your Mosquitto broker on a topic/queue there.
Or you could have home assistant connect as a client directly to the Artemis MQ broker which would make things simpler.

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 28, 2024

I guess for the integration to HomeAssistant it would be nice to configure (possible multiple) producers to post the BMS data directly to a MQTT broker. You would then need to create a HA configuration first to map the BMS data Json to a HA sensor. At least that's how I understand. I haven't used HA myself so I'm just guessing from the HA overview about connecting MQTT devices.

from bms-to-inverter.

marekorok avatar marekorok commented on July 28, 2024

don't bother with HA for the moment, leave it for later, but shortly: the integration is done through specific autodiscovery mqtt topics: https://www.home-assistant.io/integrations/mqtt/

Assuming there is standard MQTT client implementation then there should be no difference which server is used, am I right?
Then I still prefer to stick with lightweight mosquitto mqtt broker and not to add another heavy software package.

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 28, 2024

Hi, I've added the support to supply a username and passwort now in the mqtt.producer configuration:

# The URL of the MQTT broker to send to
mqtt.producer.locator=tcp://127.0.0.1:61616
# The topic name on the MQTT broker to send to
mqtt.producer.topic=energystorage
# The username of the external MQTT broker to send to
mqtt.producer.username=guest
# The password on the external MQTT broker to send to
mqtt.producer.password=guest_pwd

This mqtt.producer configuration will now be used to connect to an external broker (like Mosquitto).

from bms-to-inverter.

ai-republic avatar ai-republic commented on July 28, 2024

I will close this ticket as I haven't heard any problems

from bms-to-inverter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.