Page 1 of 1

Smart BMS (Daly) into Domoticz

Posted: Monday 21 March 2022 6:22
by ILoveIOT
This script will execute the 'daly-bms-cli -d $USBPORT --all' using UART and put the output to a file,
get the value's from the output file, show them on console if needed, and send them to Domoticz, this is super simple, easy to change.

Many thanks to Dreadnought https://github.com/dreadnought/python-daly-bms
Requirements : apt install python3-pip curl - pip3 install dalybms - pip3 install pyserial

For console use : $WORKINGDIR/dalybms.sh
For crontab use : $WORKINGDIR/dalybms.sh >> /dev/null 2>&1
View content output file : cat $WORKINGDIR/dalybms.output.txt
For all the info : daly-bms-cli -d /dev/ttyUSB0 --all
For the help info : daly-bms-cli --help

1. Change the serial port (/dev/ttyUSB0)
2. Change the Domoticz IP & Port & IDX
3. Optional : Change the working directory, where you wanna place the files

dalybms.zip
(3.08 KiB) Downloaded 211 times
dalybms.png
dalybms.png (75.51 KiB) Viewed 2738 times
dalybms.domoticz.png
dalybms.domoticz.png (86.99 KiB) Viewed 2738 times

Re: Smart BMS (Daly) into Domoticz

Posted: Wednesday 19 April 2023 22:00
by HarryHase
Not realy out of the box to domoticz, but to mqtt . This project with esp8266: https://github.com/softwarecrash/DALY-BMS-to-MQTT

Re: Smart BMS (Daly) into Domoticz

Posted: Friday 11 August 2023 15:34
by hyeronimo
Hello ILoveIOT,

Thanks for providing this script. I have installed the dependencies and made some dummy devices. The cli- view all command gives me a nice list of all data. However the data is not appearing in domoticz and the dalybms.output.txt file is not written or updated.
Am I missing something?

Best regards,
Jeroen

Re: Smart BMS (Daly) into Domoticz

Posted: Monday 14 August 2023 21:27
by hyeronimo
Ok, For whom it might help: I found out what was wrong, the '"whereis daly-bms-cli" command gives "/usr/local/bin/daly-bms-cli", I did not realise the daly-bms-cli was the file itself, not a dir. So the path for daly-bms-cli is "/usr/local/bin/", that did the trick.