Skip to content
This repository was archived by the owner on Jan 25, 2026. It is now read-only.
This repository was archived by the owner on Jan 25, 2026. It is now read-only.

--mqtt-hass option do not send any messages to the mqtt broker #49

Description

@byte4geek

Hi,

i'm trying to send data to home assistant but when i run the script nothing are send to the mqtt broker, what i wrong?
This is the command i run:

root@dockers-deb12:~/daly/python-daly-bms# daly-bms-cli -d /dev/ttyUSB0 --soc --mqtt-hass --mqtt-broker 192.168.1.2 --mqtt-user mqttuser --mqtt-password xxxxxxx
{
  "total_voltage": 54.0,
  "current": 47.3,
  "soc_percent": 35.7
}

Activity

  1. changed the title [-]mqtt-hass not send any to the mqtt broker[/-] [+]mqtt-hass do not send any messages to the mqtt broker[/+] on Apr 29, 2024
  2. changed the title [-]mqtt-hass do not send any messages to the mqtt broker[/-] [+]--mqtt-hass option do not send any messages to the mqtt broker[/+] on Apr 29, 2024
  3. byte4geek commented on Apr 29, 2024

    @byte4geek
    Author

    i run the mosquittopub on home assistant to see if the messages are received:

    mosquitto_sub -h 192.168.1.2 -d -v -u mqttuser -P xxxxxxx -t '#'

  4. mjrsnyder commented on Feb 21, 2025

    @mjrsnyder

    I think you're missing the --mqtt argument.

    Try running it like this:
    daly-bms-cli -d /dev/ttyUSB0 --soc --mqtt --mqtt-hass --mqtt-broker 192.168.1.2 --mqtt-user mqttuser --mqtt-password xxxxxxx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions