Pylontech-Battery-Monitoring
Pylontech-Battery-Monitoring copied to clipboard
Cycle Count
I guess it would be very helpful to get the "cylce counts" also availble via MQTT. It's in the command "stats" but it seems, that this value is not inside the MQTT function. It would be great to get this function... Thanks
Hello Ireneusz, I also wanted to ask if you could also query the number of cycles.
I guess, the solution is to adjust/extend in the PylontechMonitoring.ino the lines 710 - 717. But I haven't tested it yet :(
I thinks that's not so easy, at first you have to pull the correct values ....
I'm currently using the not-so-elegant way to do this via a request. I query the website via iobroker, then I use RegEx to extract the number of cycles. This works, but is not as convenient as with MQTT.
I guess the easiest thing for all, would be to implement it directly, that it can be provided by MQTT. But... still no response from the developer and my scripting experience is more than little. ;(
i have tried it with my new pylontech US5000, Sketch works fine, i have updated the scetch to use with ESP32 and the first change to get SOC in MQTT, it works
for SOC i can help...if wanted
i have tried it with my new pylontech US5000, Sketch works fine, i have updated the scetch to use with ESP32 and the first change to get SOC in MQTT, it works
for SOC i can help...if wanted
Could I ask for a sample of the modified code? I have high voltage Pylontech battery, I need to modify the code, so I would appreciate some inspiration.
hello tomasvida can i send you my *.ino file diretly? or shoud i post it here??
hello tomasvida can i send you my *.ino file diretly? or shoud i post it here??
if you paste it here, the whole community would be able to access.
hello tomasvida can i send you my *.ino file diretly? or shoud i post it here??
If it is possible, please be said to be here so that the others in the community can be black experiences. It will help us very much, and thank you for your work and willingness!
i hope this is better
i will try to get the "stat" Data also, but this will not be so easy as change a good code
i hope this is better
i will try to get the "stat" Data also, but this will not be so easy as change a good code
Did you have any luck with the stat data? Also interested to get some of the info from this command such as Cycle times, LT Cnt, etc. Thanks
@rickyrickuk
sorry, not yet
i hope now in the darker time i have more time to try a little bit i will post here when i find a good solution
@rickyrickuk sorry, not yet
i hope now in the darker time i have more time to try a little bit i will post here when i find a good solution
Thanks for the reply. I am having a look myself too to see if I can put something together :-)
One thing I noticed, is there is a parameter called Status Cnt in the stat command results, wondered if this is the number of times the stat command has been run and if so, this would go very high if we keep sending the command to the battery. Not sure if this will trigger anything in the event of a warranty claim?
@rickyrickuk
stat shows 1st Batt if have more then 1 then stat 1 is the first CYCLE Times : 163 stat 2 is the second CYCLE Times : 92 stat 3 is the third CYCLE Times : 55 ...my data over the net....
Status Cnt. : 629 <- this is my first battery (started on 1/23)
one example snip for stat 1
@ Device address 1 Data Items : 1281 HisData Items : 1793 Charge Cnt. : 0 Discharge Cnt. : 0 Charge Times : 51098 Status Cnt. : 629 Idle Times : 61779 COC Times : 0 COC2 Times : 0 DOC Times : 0 DOC2 Times : 0 COCA Times : 0 DOCA Times : 0 SC Times : 2 Bat OV Times : 0 Bat HV Times : 360 Bat LV Times : 0 Bat UV Times : 0 Bat SLP Times : 0 Pwr OV Times : 17 Pwr HV Times : 779 Pwr LV Times : 0 Pwr UV Times : 0 Pwr SLP Times : 0 COT Times : 0 CUT Times : 0 DOT Times : 0 DUT Times : 0 CHT Times : 0 CLT Times : 0 DHT Times : 0 DLT Times : 0 Shut Times : 1 Reset Times : 16 RV Times : 0 Input OV Times : 0 SOH Times : 0 BMICERR Times : 0 CYCLE Times : 163 SOH : 99 Pwr Percent : 21 Pwr Coulomb : 75424820 Dsg Cap : 16364081 [email protected] Cnt : 0 [email protected] Cnt : 0 HT Cnt : 0 LT Cnt : 0 LV Cnt : 82 LifeWarn Times : 0 LifeAlarm Times : 0 Command completed successfully $$ pylon>
@commander-bln Thanks for the outputs. I tried a few stat messages over a period of an hour or so and the StatusCnt value seemed to reset to 0, maybe its a count per 1/2 hr or something?