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

AC200max no data #72

Open
mdergithub opened this issue Oct 12, 2023 · 3 comments · May be fixed by #77
Open

AC200max no data #72

mdergithub opened this issue Oct 12, 2023 · 3 comments · May be fixed by #77

Comments

@mdergithub
Copy link

I uploaded the code to my ESP32 and received no data. I found a work-around and I thought I'd post it. I separated the polling request into smaller chunks and it started working! Thanks so much for your hard work on this, it's amazing!

You need to modify the DEVICE_AC200M and change the polling to:

static device_field_data_t bluetti_polling_command[] = {
// Status
// changed to only one page 0 request (a portion of 7F bytes)
{FIELD_UNDEFINED, 0x00, 0x24, 0x32 ,0 , 0, TYPE_UNDEFINED},
{FIELD_UNDEFINED, 0x00, 0x47, 0x4A ,0 , 0, TYPE_UNDEFINED},
{FIELD_UNDEFINED, 0x00, 0x5c, 0x79 ,0 , 0, TYPE_UNDEFINED},

{FIELD_UNDEFINED, 0x00, 0x30, 0x32 ,0 , 0, TYPE_UNDEFINED},
// {FIELD_UNDEFINED, 0x0B, 0xF5, 0x07 ,0 , 0, TYPE_UNDEFINED},
//Pack Polling
{FIELD_UNDEFINED, 0x00, 0x5B, 0x25 ,0 , 0, TYPE_UNDEFINED}
// {FIELD_UNDEFINED, 0x00, 0xBB9, 0x3D ,0 , 0, TYPE_UNDEFINED}

I'm not much of a programmer, so I assume there is a more elegant way to do this or separate the polling better.

@mdergithub
Copy link
Author

Also, if we could get the AC200 max to spit out a number for total_generation other than zero, that would be great.

@mdergithub mdergithub changed the title AC500max no data AC200max no data Oct 12, 2023
@TxKoiBoy
Copy link

TxKoiBoy commented Nov 1, 2023

Similar to this, I have an AC300, and I had to really chop down the bytes requested per block in the the final section of the DEVICE_AC300.h in order to get all my essential readings:

static device_field_data_t bluetti_polling_command[] = {
// Split up the original polling command into smaller chunks
// Original:
// {FIELD_UNDEFINED, 0x00, 0x0A, 0x28 ,0 , 0, TYPE_UNDEFINED},
// {FIELD_UNDEFINED, 0x00, 0x46, 0x15 ,0 , 0, TYPE_UNDEFINED},
// {FIELD_UNDEFINED, 0x0B, 0xB9, 0x3D ,0 , 0, TYPE_UNDEFINED}
// {FIELD_UNDEFINED, 0x0B, 0xDA, 0x01 ,0 , 0, TYPE_UNDEFINED},
// {FIELD_UNDEFINED, 0x0B, 0xF5, 0x07 ,0 , 0, TYPE_UNDEFINED},
// {FIELD_UNDEFINED, 0x00, 0x5B, 0x25 ,0 , 0, TYPE_UNDEFINED}

{FIELD_UNDEFINED, 0x00, 0x0A, 0x07 ,0 , 0, TYPE_UNDEFINED},
{FIELD_UNDEFINED, 0x00, 0x24, 0x07 ,0 , 0, TYPE_UNDEFINED},
{FIELD_UNDEFINED, 0x00, 0x2B, 0x07 ,0 , 0, TYPE_UNDEFINED},
{FIELD_UNDEFINED, 0x00, 0x56, 0x0E ,0 , 0, TYPE_UNDEFINED}

};

My ESP32 is mere inches from the AC300, my WiFi router is a few yards away, and I'm using the free HiveMQ broker, wherever that is, if this makes any difference.

Cheers,

@bbkz
Copy link

bbkz commented Apr 13, 2024

Thank you! This helped me to get the AC200M values!

static device_field_data_t bluetti_polling_command[] = {
  // Status
  // changed to only one page 0 request (a portion of 7F bytes)
  {FIELD_UNDEFINED, 0x00, 0x24, 0x32 ,0 , 0, TYPE_UNDEFINED},
  {FIELD_UNDEFINED, 0x00, 0x47, 0x4A ,0 , 0, TYPE_UNDEFINED},
  {FIELD_UNDEFINED, 0x00, 0x5c, 0x79 ,0 , 0, TYPE_UNDEFINED},

  {FIELD_UNDEFINED, 0x00, 0x30, 0x32 ,0 , 0, TYPE_UNDEFINED},
  // {FIELD_UNDEFINED, 0x0B, 0xF5, 0x07 ,0 , 0, TYPE_UNDEFINED},
  //Pack Polling
  {FIELD_UNDEFINED, 0x00, 0x5B, 0x25 ,0 , 0, TYPE_UNDEFINED}
  // {FIELD_UNDEFINED, 0x00, 0xBB9, 0x3D ,0 , 0, TYPE_UNDEFINED}
};

@bbkz bbkz linked a pull request Apr 13, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants