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

Implent Battery Packs AC200Max? #66

Open
Hankersern opened this issue Jun 21, 2023 · 8 comments
Open

Implent Battery Packs AC200Max? #66

Hankersern opened this issue Jun 21, 2023 · 8 comments

Comments

@Hankersern
Copy link

Hi There,

thank you so much for publishing this project.
Its my first time I flashed an ESP32 myself, and now I am really happy working with it.

One Thing I am missing: I cannot find any info about the Battery Packs attached to my AC200Max.
In warhammerkid/bluetti_mqtt@c4b8732 it looks to me like they added them.

Could you implent this?
Would be great!

Greetings from Hamburg

@Ricox1975
Copy link

push

@Hankersern
Copy link
Author

Hey @mariolukas

dont want to bother you!
Do you have plans to implent this?

As I have no idea how github really works, could I ask some IT-Guy/Girl to implent this / contribute? 2 Kisten Jever are waiting for the person who does it ;-)

Thanks &
best regards
Timm

@mariolukas
Copy link
Owner

What Battery information do you need?
There was a PR in February where information was extended:

69f349c

all possible values form the bluetti_mqtt Repo you mentioned are included:
https://github.com/warhammerkid/bluetti_mqtt/blob/main/bluetti_mqtt/core/devices/ac200m.py

@Hankersern
Copy link
Author

I need the Status of the extension packs (% of Load)
On the display of the ac200max its available but I dont have it in the mqtt messages.

@dbergens
Copy link

dbergens commented Oct 2, 2023

The values of the individual battery packs can be queried by a command. In the original file, this is queried at this point:

Controls

    self.struct.add_uint_field('pack_num', 3006)

@Hankersern
Copy link
Author

The values of the individual battery packs can be queried by a command. In the original file, this is queried at this point:

Controls

    self.struct.add_uint_field('pack_num', 3006)

Hi,

thanks a lot for your help.
Sadly I have no idea where to use that code. Can you give me a hint?

@dbergens
Copy link

In the original code from warhammerkid you can find the following command section:

Controls

    self.struct.add_uint_field('pack_num', 3006)
    self.struct.add_bool_field('ac_output_on', 3007)
    self.struct.add_bool_field('dc_output_on', 3008)
    # 3031-3033 is the current device time & date without a timezone
    self.struct.add_bool_field('power_off', 3060)
    self.struct.add_enum_field('auto_sleep_mode', 3061, AutoSleepMode)

To get the individual battery packs (up to 3 maximum) displayed, it is obviously necessary to send a command to the central unit (1st battery pack). Then the battery pack information is displayed according to the selection.

Using the original from warhammerkid and installing it on a Raspberry Pi, I was able to successfully test this on an AC300.

@Joern-HAP
Copy link

using the ESP code here, the AC200M config file is containing this part:

//Page 0x00 Battery Details
//constant value, number off possible battery packs, 3 on AC200M, one internal and two external
{PACK_NUM_MAX, 0x00, 0x5B, 1, 0, 0, UINT_FIELD },

Does I have to change the size = 1 to then 2 for internal + one external battery only, or do I also have to create an additional table for external batteries. e.g. definition in enum field_names does not contain external batteries.

So it not simple config of 1,2,3, but a extension of todays code required or?

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