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
Smart BMS (Daly) into Domoticz
Moderator: leecollings
- ILoveIOT
- Posts: 59
- Joined: Sunday 25 March 2018 17:47
- Target OS: Linux
- Domoticz version: 2020.2
- Location: NL
- Contact:
Smart BMS (Daly) into Domoticz
1x OPI PC 5.8.16 Debian 10, MiniDNLA,SMD230,EpEver,MPD,800GB,Wiegand,7 temps,DHT,32/64 I/O,2022.1
2x OPI PC 4.19.25 Debian 9, MPD,7 temps,16/32 I/O,BMP,4.10717
1x IntelNUC 5.10 Debian 10, 2TB,DalyBMS,2023.1
3x ESPEasy NodeMCU V3, 16/16 I/O
2x OPI PC 4.19.25 Debian 9, MPD,7 temps,16/32 I/O,BMP,4.10717
1x IntelNUC 5.10 Debian 10, 2TB,DalyBMS,2023.1
3x ESPEasy NodeMCU V3, 16/16 I/O
-
- Posts: 29
- Joined: Friday 28 July 2017 21:21
- Target OS: Linux
- Domoticz version: stable
- Location: Germany&Netherlands
- Contact:
Re: Smart BMS (Daly) into Domoticz
Not realy out of the box to domoticz, but to mqtt . This project with esp8266: https://github.com/softwarecrash/DALY-BMS-to-MQTT
-
- Posts: 54
- Joined: Saturday 11 March 2023 8:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Smart BMS (Daly) into Domoticz
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
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
-
- Posts: 54
- Joined: Saturday 11 March 2023 8:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Smart BMS (Daly) into Domoticz
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.
Who is online
Users browsing this forum: No registered users and 1 guest