GithubHelp home page GithubHelp logo

softwarecrash / daly2mqtt Goto Github PK

View Code? Open in Web Editor NEW
142.0 17.0 31.0 5.12 MB

ESP8266 Connector to get Daly / XENES / HI-BMS / BullTron BMS Data into MQTT systems

License: Other

C++ 65.79% C 6.79% Python 2.26% HTML 25.16%
esp8266 daly daly-bms mqtt dalybms firmware wemos wemos-d1-mini hi-bms bulltron

daly2mqtt's Introduction

Daly2MQTT GitHub release Discord

Little Program for ESP82XX to get the Daly BMS data to web and MQTT

⚠️ WARNING: Daly has launched the new WIFI+BT dongles on the market. These differ completely in the pin assignment from the old BT dongle. Both the pin assignment and the power supply (now 12V instead of the previous 3.3V) are different. If you buy a new BMS that comes with a WIFI+BT dongle, NEVER connect the supplied cable to your circuit board. We are currently working on a solution for this.

Features:

  • captive portal for wifi and MQTT config
  • config in webinterface
  • switching MOS gates over webinterface, MQTT and via web at /set?loadstate, set SOC over MQTT
  • get essential data over webinterface, get all data like cell voltage and more over MQTT
  • classic MQTT datapoints or Json string over MQTT
  • get Json over web at /livejson?
  • firmware update over webinterface
  • debug log on Wemos USB (use only if you don't supply Wemos from BMS!!!)
  • wake the BMS over MQTT or keep it awake (not supported on ESP-01s)
  • universal switching output (only with external power supply, not supported on ESP-01s)
  • blink codes for the current state of the ESP (not supported on ESP-01s)
  • Homeassistant Discovery
  • External Temperatur Sensors
  • with Teapod

Main screen:

grafik

Daly-Cells

Settings:

grafik

Config:

grafik

MQTT Data

grafik

How to use:

  • flash the bin file to an ESP8266 (recommended Wemos D1 Mini) with Tasmotizer
  • connect the ESP like the wiring diagram
  • search for the wifi ap "Daly2MQTT-AP" and connect to it
  • surf to 192.168.4.1 and set up your wifi and optional MQTT
  • that's it :)

How-To video by Jarnsen

Watch the video

Video by Der Kanal

Watch the video

External links

Here you can find the communication methods for your BMS

Collection of docs, software and firmware around Daly BMS. Firmware-Updates are at your own risk! NO SUPPORT!

Completely assembled and tested PCB's

You are welcome to get fully stocked and tested PCB's. These are then already loaded with the lastest firmware. The earnings from the PCBs are used for the further development of existing and new projects.

Daly2MQTT-PCB

If interested see here

NEW: The new PCB's (v2) are now completely galvanically isolated from the BMS when operating with an external power supply.

Questions?

Join the Discord Channel (German / English)

Buy Me A Coffee

LICENSE

daly2mqtt's People

Contributors

all-solutions avatar derloosi avatar panicman avatar s10l avatar softwarecrash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

daly2mqtt's Issues

[FEATURE] BMS Wakeup triggered via MQTT command

Is your feature request related to a problem? Please describe

I have Daly BMS capable of 60A which is way overpowered for what I'm doing. I'm charging my battery (small capacity) sometimes with really low power values (currently 0 - 100W but planned 0 - 400W) and I noticed that the BMS does not recognize any power flowing into the battery if it's below 30W.
So if I charge the battery with > 30W everything is fine, but when my charging power is, e.g. 20W and maybe fluctuating between 0W and 20W for a long while the BMS goes to sleep.
When it's asleep I don't know if it still monitors the cell voltages and would shutoff the ChargeFET in case a cell reaches a too high cell voltage, I believe it wouldn't.

Describe the solution you'd like

I would like to wake up the BMS by an external trigger sent via MQTT regularly while my charger is enabled.
For example I would like to sent "true" to "Device_Control/Wake_BMS".
Daly2MQTT would need to subscribe to that topic and trigger the wakeupHandler(true) function.

So basically whenever I start the charger I want to trigger ever couple of minutes the wake signal to make sure the BMS stays awake.

Describe alternatives you've considered

An option would be to use the auto wake function but that would mean the BMS stays awake all the time, even when the charger is off.
Another option would be to change the "Enable BMS wakeup" setting using an MQTT command but that could lead to wearing out the flash if it's changed to often.

Additional context

No response

Send all data in one Single JSON (nice to have)

Hello, I have some timing problems regarding that every single value is sended as an single message to MQTT.
Is it possible, to keep things for existing users simple with an config switch, default false, to send all the values as an single JSON Object?

Would be very nice, thank you!

Something like this?

{
"Pack Voltage": 13.3,
"Pack Current": 0.0,
"Pack SOC": 98.10,
"Pack Remaining mAh": 176580,
"Pack Cycles": 5,
"Pack Min Temperature": 26,
"Pack High Cell": {
"Cell": 2,
"Voltage": 3.335
},
"Pack Low Cell": {
"Cell": 1,
"Voltage": 3.329
},
"Pack Cell Difference": 6,
"Pack ChargeFET": true,
"Pack DischargeFET": true,
"Pack Status": "Stationary",
"Pack Cells": 4,
"Pack Heartbeat": 177,
"Pack Balance Active": false,
"Pack Cells Voltage": {
"Cell 1": 3.329,
"Cell 2": 3.335,
"Cell 3": 3.335,
"Cell 4": 3.331
},
"Pack Cells Balance": {
"Cell 1": false,
"Cell 2": false,
"Cell 3": false,
"Cell 4": false
},
"Pack Temperature Sensor No 1": 26,
"Ampere Debug": ""
}

[FEATURE] Cell Gauge in webUI - numbering/coloring

Is your feature request related to a problem? Please describe

no

Describe the solution you'd like

It would be really nice to have a numbering of the individual cell bars in the the Cell Gauge in the webUI. Basically an x-axis label.
I believe if you only have a 4S BMS it's not really needed but in my case I have a 15S and it would be really nice to see which cell correlates to which bar.

It would also be nice to color the highest and lowest cell bar. Maybe with the same colors high=red, low=light blue as the Daly app uses?

Describe alternatives you've considered

don't change anything ;-)

Additional context

No response

Static IP Address

Is your feature request related to a problem? Please describe

Static IP settings are not possible now. To choose between automatic and static IP settings would be a great feature.
Thank you

Describe the solution you'd like

Add possibility for static ip settings in Wifi configuration.
Thank you

Describe alternatives you've considered

For example: checkbox "DHCP",..
DHCP activated, static IP address configuration is unactiveted,
if active, IP Address, subnet, gateway, dns,.. can be set up.

Additional context

No response

Problems with SOC and Capacity

I don´t know if this is really "DALY-BMS-to MQTT" related.
Since 2 weeks or so, the data for SOC and Capacity are not working probably, they just don`t count up or down.
It shows always the same number. To fix this, i had to plug the Bluetooth-Modul and "rewrite" the capacity. With Bluetooth it is working.
If i change to my ESP, it works for a while, then it stops. All other data is normal, only SOC and Capacity doesn´t change anymore.
Anyone with the same problem?
M.

IP Adresse ?

Is your feature request related to a problem? Please describe

when Daly2MQTT starts it should announce the IP address on the serial console. It is only 9600 baud instead of 115200.

Describe the solution you'd like

when Daly2MQTT starts it should announce the IP address on the serial console. It is only 9600 baud instead of 115200.

Describe alternatives you've considered

when Daly2MQTT starts it should announce the IP address on the serial console. It is only 9600 baud instead of 115200.

Additional context

when Daly2MQTT starts it should announce the IP address on the serial console. It is only 9600 baud instead of 115200.

FET-Umschaltung mit MQTT

Is there an existing issue for this?

  • I have searched the existing issues

Used Hardware?

Wemos D1 Mini

What happened?

Vielen Dank für das tolle Tool. Das macht viele Anwendungsfälle möglich.

In der Version 2.2.16 habe ich bei der FET-Umschaltung über MQTT folgendes Verhalten:

Ausgangslage: beide FET false . Das Web-UI ist nicht in einem Browser geöffnet.

Pack_ChargeFET wird allein auf true geschaltet: Das DALY-BMS-to-MQTT wiederholt die Nachricht beliebig oft, schaltet Pack_ChargeFET aber nicht um. Dies kann auch nicht durch BMS01/Device_Control/Pack_ChargeFET = false unterbrochen werden. Erst durch BMS01/Device_Control/Pack_DischargeFET =true werden die Nachrichten unterbrochen und beide FET schalten auf true.

Bei anschließender Deaktivierung von Pack_ChargeFET schaltet Pack_DishargeFET automatisch mit auf false. Bei erneuter Aktivierung von Pack_ChargeFET wird dann Pack_DishargeFET wieder automatisch true.

Ist das so gewünscht? Mir fehlt, nur Pack_ChargeFET unabhängig schalten zu können, wenn Pack_DishargeFET false ist.

Screenshots / Fotos

grafik

Steps To Reproduce

No response

Version

2.2.14 and above

Relevant livejson output

{"Device":{"Name":"Solar_BMSAkku01","IP":"192.168.178.119","ESP_VCC":3.002,"Wifi_RSSI":-65,"Relais_Active":false,"Relais_Manual":false,"sw_version":"2.2.16"},"Pack":{"Voltage":26.3,"Current":0,"Power":0,"SOC":45.7,"Remaining_mAh":47985,"Cycles":2,"BMS_Temp":10,"Cell_Temp":10,"High_CellNr":7,"High_CellV":3.29,"Low_CellNr":1,"Low_CellV":3.286,"Cell_Diff":4,"DischargeFET":false,"ChargeFET":false,"Status":"Stationary","Cells":8,"Heartbeat":206,"Balance_Active":false},"CellV":{"CellV_1":3.286,"Balance_1":false,"CellV_2":3.29,"Balance_2":false,"CellV_3":3.29,"Balance_3":false,"CellV_4":3.29,"Balance_4":false,"CellV_5":3.289,"Balance_5":false,"CellV_6":3.289,"Balance_6":false,"CellV_7":3.29,"Balance_7":false,"CellV_8":3.288,"Balance_8":false},"CellTemp":{"Cell_Temp_1":10}}

What browsers are you seeing the problem on?

Firefox

Wake Up Funktion & Tiefentladung ?

Nachdem ich nun die neue V 2.2.10 getestet habe mit der Wake Up Funktion für das BMS sehe ich hier ein Problem. Ich habe mal gemessen und anscheinend wird alle paar Sekunden ein Impuls geschickt der den Wake Up Draht am BMS versorgt. So soll es immer wach bleiben.

Nun hat die hier schön diskutierte Stromsparfunktion ja wie ich getestet habe die Funktion das BMS abzuschalten wenn die Spannung zu niedrig wird. Das passiert bei mir in der Praxis wenn mal 1-2 Wochen keine Sonne zum nachladen kam.

Wird nachgeladen wacht das BMS automatisch auf und meine MQTT Daten kommen wieder. Dabei sehe ich, dass die Spannung quasi nicht abgenommen hat auch wenn es über mehrere Tage aus war. So soll es ja sein.

Wenn die neue Firmware das BMS nun permanent aufwachen lässt verbraucht es auch permanent Strom und wird den Akku tiefentladen und damit irgendwann zerstören oder sehe ich das falsch und es ist hier seitens DALY noch eine Sicherheit drin, dass es ab einer gewissen Spannung gar nicht mehr aufwacht?

Ich denke es wäre viel hilfreicher statt eines immer wiederkehrenden Wake Up Impulses nur einen einmaligen Impuls per Switch aus dem Webinterface schicken zu können. So könnte man manuell die Webseite aufrufen, das BMS aufwecken, sich mal die Werte schicken lassen und es würde wieder schlafen gehen.

Nachdem in der Diskussion noch keiner Stellung genommen hat wollte ich hier mal nachfragen ob da nicht eine Gefahr der Tiefentladung besteht wenn das BMS pausenlos aufgeweckt wird. (PNs schreiben geht hier nicht oder?)

Originally posted by @crazy-ahmet in #59 (comment)

[GER] PortForward Support

Hi,

Ich betreibe die Software hinter einen dedizierten Router mit eigenem Netzwerk:
-> MQTT klappt soweit mit einer Verbindung in ein anderes Netzwerk vor dem Router
-> Die Webseite wird innerhalb des Netz korrekt dargestellt

Ich habe auf dem Router ein PortForward eingerichtet, damit wird nur noch die Webseite ohne Daten angezeigt.
Im Browser sieht man auch gut das er versucht ws://192.168.1.8/ws aufzurufen, das ist aber die Router IP und damit steht kein WebSocket zur Verfügung...

MQTT läuft natürlich, deswegen eher "nice to have".

Gruß Robert

Webpage loading very long or not fully

After typing in the IP Adress of the device it´s often keep loading and loading. Sometimes it shows only a few parts of the site. I don´t know why this happens. Maybe the ESP is busy? During all this the MQTT values are refreshed frequently so the device itself is working.

[GER] Permanentes Connection-Loss Wemos -> BMS

Hi Rocky,

ich schreib mal auf Deutsch. Ist wahrscheinlich einfacher und verständlicher ;-).

Ein Bekannter (und auch dessen Kumpel) haben ein absolut komisches Phänomen mit Deinem Programm. Die veröffentlichten Versionen von Dir verlieren permanent die Verbindung zum BMS. Ich habe ihm dann Deine Version mit aktivem Debug kompiliert (damals als erste mit der 0.4.9). Lief ohne jegliche Abbrüche. Er hat seitdem kein Update mehr gemacht gehabt bis zur 0.4.13. Bei der Version das gleiche "Problem".
Du hast in der Version das Debugging in der main.ino selbst drin gelassen. Hilft nicht. Ich habe dann in der daly-bms-uart.cpp das Debugging auch noch aktiviert und den Zweien daraus eine Test-Version kompiliert. Damit läuft es, keinerlei Abbrüche.
Ich kappier das nicht, habe Deinen Code durchforstet, es gibt keinen Grund dafür, dass es ohne Debugging nicht funktionieren sollte. Habe auch Deinen Original-Code selbst neu kompiliert (vielleicht liegt es ja am Kompiler???). Nein, sobald ich in der daly-bms-uart.cpp die Debug-Zeile rauskommentiere, läuft das bei den Zweien nicht mehr.

Beide benutzen mein PCB-Layout. Den benutze ich selbst auch. Ich hab da keinerlei Probleme mit, obwohl ich einen "unterirdischen" RSSI zum Wemos habe. Es macht da auch keinen Unterschied, ob sie den Wemos via BMS versorgen oder per ext. Netzteil.

Hast Du da vielleicht eine Idee?

Gruß
Manu

[Bug]: No BMS Data via MQTT

Is there an existing issue for this?

  • I have searched the existing issues

Used Hardware?

Wemos D1 Mini

What happened?

Daly2MQTT in general works. The Web Interface is showing the different values of the BMS.
Then I connected the Wemos via Wifi with my iobroker but in iobroker only one object is available (alive = true). There are no more objects.
What can I do?

Screenshots / Fotos

IobrokerObjetcs
AdapterConfig
BMS1
D1_Config

Steps To Reproduce

Version

2.x.x and above

Relevant livejson output

{"Device":{"Name":"DALY-BMS-to-MQTT","IP":"192.168.178.43","ESP_VCC":2.984,"Wifi_RSSI":-49,"Relais_Active":false,"Relais_Manual":false,"sw_version":"2.2.18","Flash_Size":4194304,"Sketch_Size":420048,"Free_Sketch_Space":3751936},"Pack":{"Voltage":52.7,"Current":6.9,"Power":363.63,"SOC":62.5,"Remaining_mAh":100000,"Cycles":9,"BMS_Temp":17,"Cell_Temp":17,"High_CellNr":8,"High_CellV":3.314,"Low_CellNr":1,"Low_CellV":3.291,"Cell_Diff":23,"DischargeFET":true,"ChargeFET":true,"Status":"Charge","Cells":16,"Heartbeat":129,"Balance_Active":false},"CellV":{"CellV_1":3.291,"Balance_1":false,"CellV_2":3.293,"Balance_2":false,"CellV_3":3.291,"Balance_3":false,"CellV_4":3.292,"Balance_4":false,"CellV_5":3.292,"Balance_5":false,"CellV_6":3.291,"Balance_6":false,"CellV_7":3.298,"Balance_7":false,"CellV_8":3.313,"Balance_8":false,"CellV_9":3.294,"Balance_9":false,"CellV_10":3.3,"Balance_10":false,"CellV_11":3.297,"Balance_11":false,"CellV_12":3.295,"Balance_12":false,"CellV_13":3.297,"Balance_13":false,"CellV_14":3.296,"Balance_14":false,"CellV_15":3.296,"Balance_15":false,"CellV_16":3.294,"Balance_16":false},"CellTemp":{"Cell_Temp_1":17}}

Which BMS is connected?

BMS 16s 80A

What browsers are you seeing the problem on?

Safari, Microsoft Edge

/livejson schließt die TCP connection nicht.

Describe the bug
Bei auslesen des JSON via PHP entstehen Verzögerungen von 1 Minute bzw. bricht das Script mit timeout ab.

To Reproduce
Steps to reproduce the behavior in PHP :

   php -r ' $jsondata = file_get_contents("http://10.0.0.25/livejson"); echo $jsondata; '

(takes 60 seconds)

Work around (responds promptly):

   php -r ' $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://10.0.0.25/livejson"); curl_setopt($ch, CURLOPT_TIMEOUT, 5 ); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $jsondata = curl_exec($ch); echo $jsondata;'

Ich denke, es ist das Problem, das in https://stackoverflow.com/questions/3629504/php-file-get-contents-very-slow-when-using-full-url beschriebn ist. Zitat:" that the remote web server DIDN'T CLOSE THE TCP CONNECTION"

Expected behavior
auch die erste Variante sollte rasch die Antwort liefern.

Screenshots
n/a

Desktop (please complete the following information):
Raspi commandline

Additional context
DALY BMS to MQTT 2.2.11

Why is transistor needed?

Hi,
I was looking at your connection diagram and was wondering why I have to use an transistor? Other projects like ESPHome do not mention a transistor whatssoever ... Could you explain why the transistor is needed in more detail in the README?

Editable values over MQTT

It doesn't matter which DataPoint I use, whether true, false or without a payload, /Device_Control or just / is also sufficient.
As soon as I publish something to the topic (default BMS01), the "ChargeFET" goes to false.

checked with:
/Device_Control/Pack_DischargeFET
/Device_Control/Pack_DischargeFET:true
/Device_Control/Pack_DischargeFET:false
/Device_Control/Pack_ChargeFET
/Device_Control/Pack_ChargeFET:true
/Device_Control/Pack_ChargeFET:false
/Device_Control/Relay:true
/Device_Control
/

There is no way to change this again with any publish.

used Version: V2.2.11
used tool: MQTT-Explorer on WIN11
reproducible

double checked with:
MyMQTT V 2.2.3 on Android same behavior - reproducible

before clicking "Publish"

image

after clicking "Publish"

image

[NOTE] Update to the latest version before reporting an issue

Hello all,

the past few weeks there have been a lot of changes on the source and firmware.

Because of all these changes done, most issues (not all) are probably because of not having updated to the latest version available which has these fixes in place.

The current latest version is: GitHub release

Please make sure you have either the latest version running before reporting an issue.

If after updating to the latest version and checking the commits done since the latest release you still encounter these same issue, please go ahead and post a new topic here at the issues page.

Thanks for all your support.

What to do to convert you FW to ESP-01S

Hello,
I have a lot of old ESP-01S and 3 battery packs with BMS DALY "Lifepo4 16S 48V 200A" (I have my own photovoltaics on the roof of the house). I would like to transfer the BMS status information wirelessly using MQTT, not via a UART-USB converter. Could you provide the FW variant for this module with ESP8266 or advise what to adjust in your FW?
Thank you for answer.

Host all web sources locally

Is your feature request related to a problem? Please describe.
My system will work in an environment that doesn't have a permanent internet connection. The internal web page of DALY-BMS-to_MQTT though uses external sources like bootstrap or jquery. So the web pages don't work for me.

Describe the solution you'd like
The external sources shouldn't be too big to put these into the flash of the ESP, so I suggest to do that and change the html code to use these locally hosted sources

[Bug]: New form test

Is there an existing issue for this?

  • I have searched the existing issues

Used Hardware?

Wemos D1 Mini

What happened?

Just a form-test

Screenshots / Fotos

Micro-USB_Breakout

Steps To Reproduce

No response

Version

2.2.12

Relevant livejson output

// 20230322204539
// http://192.168.188.40/livejson

{
  "Device": {
    "Name": "DALY-BMS-to-MQTT",
    "IP": "192.168.188.40",
    "ESP_VCC": 2.861,
    "Wifi_RSSI": -71,
    "Relais_Active": false,
    "Relais_Manual": false,
    "CPU_Frequency": 160,
    "Real_Flash_Size": 4194304,
    "Flash_Size": 4194304,
    "Sketch_Size": 490736,
    "Free_Sketch_Space": 3682304,
    "Free_Heap": 32584,
    "HEAP_Fragmentation": 16,
    "Free_BlockSize": 27320,
    "json_memory_usage": 1537,
    "json_capacity": 2048,
    "runtime": 189225,
    "ws_clients": 1
  },
  "Pack": {
    "Voltage": 28.3,
    "Current": 0,
    "Power": 0,
    "SOC": 97.5,
    "Remaining_mAh": 85800,
    "Cycles": 8,
    "BMS_Temp": 15,
    "Cell_Temp": 15,
    "High_CellNr": 5,
    "High_CellV": 3.543,
    "Low_CellNr": 1,
    "Low_CellV": 3.526,
    "Cell_Diff": 17,
    "DischargeFET": true,
    "ChargeFET": true,
    "Status": "Stationary",
    "Cells": 8,
    "Heartbeat": 12,
    "Balance_Active": false
  },
  "CellV": {
    "CellV_1": 3.526,
    "Balance_1": false,
    "CellV_2": 3.53,
    "Balance_2": false,
    "CellV_3": 3.54,
    "Balance_3": false,
    "CellV_4": 3.541,
    "Balance_4": false,
    "CellV_5": 3.543,
    "Balance_5": false,
    "CellV_6": 3.542,
    "Balance_6": false,
    "CellV_7": 3.538,
    "Balance_7": false,
    "CellV_8": 3.537,
    "Balance_8": false
  },
  "CellTemp": {
    "Cell_Temp_1": 15,
    "Cell_Temp_2": 15
  }
}

What browsers are you seeing the problem on?

no Issue with the Browser or WebUI

The CellDiff display on the webpage is easier to read in volts as all voltages are in volts

Cell Diff wrong format in app an all other Datas are V only Cell Fiss ist mV

This is Confuse

document.getElementById("cellDiff").innerHTML = (data.cellDiff/1000)+'V ';

in webpages main.h i edit the data line to convert to Volt

And the mos fet toggle doesn't work because your data reading happens too fast and overwrites the command

in next days i edit the code and post it.

sorry for my bad english

Dennis

Cell data missing

Hi,

I can read the Json information with MQTT client. Cell count is 16 ("Cells"). Sadly the detailed cell information is giving cells 1 to 13 only. Is there a possibility to configure this?

Thanks Robert

[Bug]: 2.8.2 settings page not working

Is there an existing issue for this?

  • I have searched the existing issues

Used Hardware?

Wemos D1 Mini

What happened?

Hi,

After clicking on settings, only the upload option is available.
I tried to rollback to old version, but get this error:

settings:1 Uncaught ReferenceError: postFile is not defined
at HTMLInputElement.onclick (settings:1:2225)

regards Robert

Screenshots / Fotos

settings:1 Uncaught ReferenceError: postFile is not defined
at HTMLInputElement.onclick (settings:1:2225)

Steps To Reproduce

open Settings and try to upload an old release

Version

2.x.x and above

Relevant livejson output

n/a

Which BMS is connected?

16s

What browsers are you seeing the problem on?

Chrome

charge / discharge state does not turn on

Hi,

any idea why charge / discharge state does not turn of when charging voltage is on? Flags get disabled when cell voltage is to low, but it looks like they don't get activated. It works with connected BT module. (Version 0.3.6)

Webpage is open all the time in smartphone, might it be a problem?

thanks and regards Robert

Keine Daten per MQTT

Moin,

erstmal vielen Dank für die Mühe in diesem Projekt!

Ich kann Daten aus dem BMS auslesen und diese werden auch auf dem Web Interface angezeigt.
Leider bekomme ich aber keine Daten in Node Red.

image
image
image

Was mache ich falsch? Bzw muss ich noch irgendwo das Senden der Daten per MQTT aktivieren?

Viele Grüße
Stefano

[GER] MQTT keine Aktualisierung mehr der Daten

Nach einer Erfolgreichen MQTT Verbindung werden die Daten korrekt an meinen IOBROKER MQTT Adapter übermittelt. Nach ca. 15 Minuten werden jedoch keine Daten mehr aktualisiert. Erst ein Reboot des WEMOS liefert wieder aktuelle Daten

BMS status shows offline but it works fine

Testing the new 2.2.11 version now.
After some time the BMS status went to offline.
MQTT broker shows all values come in frequently and als all values in the webinterface are there.

[Bug]:

Is there an existing issue for this?

  • I have searched the existing issues

Used Hardware?

Wemos D1 Mini

What happened?

Hallo zusammen!
Mir ist aufgefallen das die mqtt Daten im Pack High_CellNr und High_CellV mit den Daten im CellV nicht nicht identisch sind.
Pack.High_CellNr: 3
Pack.High_CellV: 3.268
Pack.Low_CellNr: 8
Pack.Low_CellV: 3.263

CellV.CellV_3: 3,266
CellV.CellV_4 : 3.268
CellV.CellV_8 : 3.266

Screenshots / Fotos

Screenshot 2023-06-23 224937

Steps To Reproduce

No response

Version

2.x.x and above

Relevant livejson output

object
topic: "BMS01/Pack_Data"
payload: object
Device: object
Pack: object
Voltage: 26.1
Current: -24.9
Power: -649.89
SOC: 51.9
Remaining_mAh: 145320
Cycles: 62
BMS_Temp: 24
Cell_Temp: 24
High_CellNr: 3
High_CellV: 3.268
Low_CellNr: 8
Low_CellV: 3.263
Cell_Diff: 5
DischargeFET: true
ChargeFET: true
Status: "Discharge"
Cells: 8
Heartbeat: 82
Balance_Active: false
CellV: object
CellV_1: 3.265
Balance_1: false
CellV_2: 3.267
Balance_2: false
CellV_3: 3.266
Balance_3: false
CellV_4: 3.268
Balance_4: false
CellV_5: 3.266
Balance_5: false
CellV_6: 3.268
Balance_6: false
CellV_7: 3.266
Balance_7: false
CellV_8: 3.266
Balance_8: false
CellTemp: object
qos: 0
retain: false
_topic: "BMS01/Pack_Data"
_msgid: "951cbd08.1ffef"

Which BMS is connected?

8S 24V 200A

What browsers are you seeing the problem on?

Microsoft Edge

[FEATURE] Verbindung mit victron

Is your feature request related to a problem? Please describe

Hallo. Ich nutze 2 esp für 2 akku packs mit daly bms. Gibts eine möglichkeit die Daten ins victron direkt zu verbinden? Ist da was geplant? Es geht nicht darum ein bms im victron zu haben sondern mir reicht nur die anzeige.

Sonst super Projekt.

Describe the solution you'd like

..

Describe alternatives you've considered

..

Additional context

No response

Possibility to connect more than 1 BMS?

Is there any possibility to connect multiple BMS? Maybe using softserial or similar (as there is only one hardware serial port)?
To be more specific: I do have two BMS and one active balancer. I would love to connect all three to one Wemos/ESP.

BMS data not available

Hi,

After connecting to my local network I tried to read data from 2 different daly BMS. Sadly I cannot see any values in HTML GUI. GUI itself is working fine. Do I need to use the ADUM or what are u using to read the debug log? Sorry I do not have experience with serial dev. Just used tasmotizer to flash the debug image.

Thanks Robert

Screenshot_20220806-104052_Chrome

Show the status on the website and publish it via MQTT (if possible)

Is your feature request related to a problem? Please describe.
My ESP is placed on a position I cannot see the LED. So it woul'd be nice if I could see the status of the system on the webpage.
Also it would be very helpful if there would be a MQTT message about the connection status to the BMS.

Lange Ladezeiten V2.2.13 auf ESP01

Wurde bei der Version für den ESP01 schon nachgebessert? Hatte das Problem ja vorher schon beim D1 Mini.
Die Webseite dauert lange zu laden, die einzelnen Elemente kommen teils mehrere Sekunden verzögert und der ganze Seitenaufbau dauert auch mal 10s und mehr.
So ziemlich bei allem was man anklickt lädt es 5-10s. Manchmal baut sich die Seite gar nicht vollständig auf und es bleibt hängen.

Cannot compile with platform io

Hello,
I saw a platformio.ini file, and I assume I need to compile it with platformIO. Unfortunately, I mostly used Arduino ide for programming, and I could not find proper documentation for platformIO and couldn't manage to compile it. I googled a lot before bothering here with this without any luck. I would really appreciate it if you would give some hints about building it or compiling a bin file for ESP32 would be great.
I'm having the below errors when I try to build it with platformIO. I'm looking for your support to resolve it. Thank you.;
image

Example on switching the FETs via MQTT

Hi There, thanks a lot for this great project. Reading data from my Daly works just fine.

I am just struggling on how to switch the FETs via mqtt. could you provide an example of the topic and payload i need to sent?

[HELP!]Relais

hello,good work.
The Relais dont Switch by manually over the App/Mqtt.
Can you complimait the switch/Invert relais over mqtt.
Thank you.
VG Stephan

[Bug]: Keine Erkennung durch Home Assistant

Is there an existing issue for this?

  • I have searched the existing issues

Used Hardware?

Wemos D1 Mini

What happened?

Home Assistant erkennt die MQTT Ausgaben von Daly MQTT nicht automatisch. Ich glaube das sollte automatisch erkannt werden, so wie ich es verstanden habe. In Mosquitto is Auto Erkennen aktiviert. Alle anderen MQTT Quellen werden von Home Assistant automatisch erkannt, nur Daly MQTT nicht. Jemand eine Idee ?

Screenshots / Fotos

Bildschirmfoto 2023-05-02 um 03 40 14

Steps To Reproduce

No response

Version

2.2.14 and above

Relevant livejson output

{"Device":{"Name":"DALYBMS","IP":"192.168.178.93","ESP_VCC":3.062,"Wifi_RSSI":-79,"Relais_Active":false,"Relais_Manual":true,"sw_version":"2.2.16"},"Pack":{"Voltage":25.9,"Current":0,"Power":0,"SOC":50,"Remaining_mAh":50000,"Cycles":0,"BMS_Temp":19,"Cell_Temp":19,"High_CellNr":8,"High_CellV":3.245,"Low_CellNr":1,"Low_CellV":3.215,"Cell_Diff":30,"DischargeFET":true,"ChargeFET":true,"Status":"Stationary","Cells":8,"Heartbeat":34,"Balance_Active":false},"CellV":{"CellV_1":3.215,"Balance_1":false,"CellV_2":3.245,"Balance_2":false,"CellV_3":3.243,"Balance_3":false,"CellV_4":3.242,"Balance_4":false,"CellV_5":3.245,"Balance_5":false,"CellV_6":3.243,"Balance_6":false,"CellV_7":3.24,"Balance_7":false,"CellV_8":3.244,"Balance_8":false},"CellTemp":{"Cell_Temp_1":19}}

What browsers are you seeing the problem on?

no Issue with the Browser or WebUI

[Bug]: Can't upgrade to 2.2.18

Is there an existing issue for this?

  • I have searched the existing issues

Used Hardware?

Wemos D1 Mini

What happened?

Hello,

I can't upgrade from 2.2.17 to 2.2.18. I tried OTA upgrade over web interface and online flash tool over USB without erase option. Web interface still showing 2.2.17 version. Thank you.

Peter

Screenshots / Fotos

obrázok

Steps To Reproduce

No response

Version

2.x.x and above

Relevant livejson output

{"Device":{"Name":"DALY-BMS-to-MQTT","IP":"192.168.9.162","ESP_VCC":2.606,"Wifi_RSSI":-75,"Relais_Active":false,"Relais_Manual":false,"sw_version":"2.2.17","Flash_Size":4194304,"Sketch_Size":420768,"Free_Sketch_Space":3751936},"Pack":{"Voltage":25.9,"Current":-2.1,"Power":-54.39,"SOC":76.8,"Remaining_mAh":46080,"Cycles":10,"BMS_Temp":19,"Cell_Temp":19,"High_CellNr":4,"High_CellV":3.249,"Low_CellNr":1,"Low_CellV":3.224,"Cell_Diff":25,"DischargeFET":true,"ChargeFET":true,"Status":"Discharge","Cells":8,"Heartbeat":165,"Balance_Active":false},"CellV":{"CellV_1":3.233,"Balance_1":false,"CellV_2":3.23,"Balance_2":false,"CellV_3":3.244,"Balance_3":false,"CellV_4":3.239,"Balance_4":false,"CellV_5":3.238,"Balance_5":false,"CellV_6":3.21,"Balance_6":false,"CellV_7":3.242,"Balance_7":false,"CellV_8":3.232,"Balance_8":false},"CellTemp":{"Cell_Temp_1":19}}

Which BMS is connected?

Daly Smart, 60A Common Port, LiFePO4 8S 24V, UART

What browsers are you seeing the problem on?

Firefox, Chrome

Binary available ?

Hello Rocky,
thank you for your work on the Daly BMS.
Would it be possible to publish a binary for the Wimos D1 mini you use for your project ?
This would help me, and most likely others a lot who are not so firm with the compiler
Thank you so much

Keine Werte im iobroker

Hallo Softwarecrash,
Ich schreibe mal auf deutsch denn mein Englisch ist grauenvoll.
Eigentlich wollte ich mich hier nicht anmelden da ich für hier der falsche bin.
Aber irgendwie komme ich nicht weiter, und im Netz habe ich schon unzälige Stunden gesucht.
Aber nichts gefunden, vielleicht bin ich auch nicht soweit in der Lage das alles zu verstehen.
Zu meinem Problem:
Ich bin durch den youtube Kanal von "der Kanal" auf dich aufmerksam geworden.
Da hat er deine Anwendung vorgestellt um das BMS auszulesen.
Genau das was ich gebraucht habe.
Also ich wie nix die Bauteile bestellt und zusammen gelötet.
Und jetzt ds eigentliche Problem:
Ich bin zwar schon eine weile mit dem iobroker unterwegs (Smarthome, Poolsteuerung, kleine einfache Scripteusw.) aber irgendwie
klappt da was nicht ganz.
Und zwar habe ich alles so gemacht wie auf deiner Seite beschrieben und über den browser bekomme ich auch Werte vom BMS.
Allerdings ändern sich die Werte erst nach dem gefühlten zehnten mal aktualisieren des browsers (ist das normal?) oder nach einem reboot.
Und das andere Problem ist der mqtt adapter, bisher habe ich den nämlich noch garnicht gebraucht. Und somit kenne ich mich mit dem mqtt garnicht aus. Ich habe zwar diesbezüglich schon viel im Netz gesucht aber nichts gefunden was mir half.
Ich habe es zwar hinbekommen das der adapter grün wurde und somit verbunden ist.
Und auch in den Objekten wurden auch die Ordner erstellt.
Aber leider etwas wenig und ohne Daten.
Chargefet Null
Dischargefet Null
Packsoc Null
Relais Null
Daly-bms-to-mqtt true
Device ip ip adresse vom wemos
Alive true

Ich hatte auch alle Firmware Versionen mit den dazugehörigen Lötarbeiten durchgeführt aber nichts hat zum gewünschten
Ergebnis geführt.
Heute habe ich deine letzte Version getestet.
Da kamen nur diese neuen Werte mit dazu:
Daly-bms-to-mqtt true
Device ip ip adresse vom wemos
Alive true
Aber im iobroker das selbe Ergebnis, keine Werte von soc oder Zellenspannung.
Habe ich vielleicht beim mqtt irgendwo verggessen etwas bestimmtes zu aktivieren oder einen Haken zu setzten.
Oder habe ich ein ganz anderes problem.
Ich habe wirklich schon alles Versucht und komme nicht weiter.
Sorry das ich dich damit belästige aber vielleicht kannst du mir helfen.

Gruß Roman

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.