Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cycle Count #13

Open
albundy0815 opened this issue Sep 26, 2022 · 16 comments
Open

Cycle Count #13

albundy0815 opened this issue Sep 26, 2022 · 16 comments

Comments

@albundy0815
Copy link

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

@tomba0815
Copy link

Hello Ireneusz,
I also wanted to ask if you could also query the number of cycles.

@albundy0815
Copy link
Author

I guess, the solution is to adjust/extend in the PylontechMonitoring.ino the lines 710 - 717. But I haven't tested it yet :(

@tomba0815
Copy link

I thinks that's not so easy, at first you have to pull the correct values ....

@tomba0815
Copy link

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.

@albundy0815
Copy link
Author

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. ;(

@commander-bln
Copy link

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

@tomasvida
Copy link

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.

@commander-bln
Copy link

hello tomasvida
can i send you my *.ino file diretly? or shoud i post it here??

@albundy0815
Copy link
Author

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.

@tomasvida
Copy link

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!

@commander-bln
Copy link

commander-bln commented Feb 22, 2023

PylontechMonitoring-ESP32.txt

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

@rickyrickuk
Copy link

PylontechMonitoring-ESP32.txt

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

@commander-bln
Copy link

@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
Copy link

@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?

@commander-bln
Copy link

@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>

@rickyrickuk
Copy link

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants