-
Notifications
You must be signed in to change notification settings - Fork 31
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
On AC200M commands AC and DC work, but states are not shown #50
Comments
I will do a PR with extended dataset for AC200M ASAP. I guess this will help you. |
Hi @AlexBurghardt |
Merged with #51 |
Hi @AlexBurghardt, i tested the new main, but still i have problem with my AC200M and i even have new once. I still do not see any new states, just the once i had before. I am now regularly running to
} From parse_bluetooth_data the only time it trys to publish something is for the device_type. I wounder what is the different from mine to your setup. Regards, |
Is your configuration in config.h correct? Is really Device_AC200M.h being included? |
Hi @AlexBurghardt |
I can, but it will take some time. By tomorrow latest... tomorrow I could pull your code and test it here... |
Ok, this is an excerpt from my serial log: 21:36:58.209 -> We are now connected to the Bluetti BLE Server. Please note that the checksum of the page 0x00 response is invalid because I edited the serial field for privacy reasons. |
I would have to see your code for further support. |
Hi @AlexBurghardt rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) IP address:
|
Hi @AlexBurghardt, |
Hi @SvHeGithub, Warhammerkid (who reverse engineered the BT protocol) mentioned this in his posts. Requesting larger portions increases the risk of getting corrupted responses. The Bluetti device is responding by sending small parts that have to be concatenated in the ESP32. It seems that this did not work for you. |
Hi @viper4gh, I do not believe that this is related to the bluetooth connection. It seems as if there are corrupted/scrambled mqtt topics transmitted. Yes, definitely not an issue with BT connection, because the topic names come from <String map_field_name(enum field_names f_name){}> in MQTT.cpp. If there was a BT issue, the topics name would be correct and the values only would be wrong. When did you reset the ESP32 before this ocurred? Regards, |
@AlexBurghardt I have the MQTT Broker Adapter for iobroker and it runs as Broker, yes. Would it help to test with the old AC200M.h file again? Viper |
The mqtt adapter seems to be receiveing corrupted topic names. They appear along with the correct topics in the object tree. #ifdef DEBUG exists in <void publishTopic(enum field_names field_name, String value){}> in MQTT.cpp |
@AlexBurghardt |
In the part ESPBluettiSettings settings = get_esp32_bluetti_settings(); of <void publishTopic(enum field_names field_name, String value){}> in MQTT.cpp could happen something unexpected. The first line marked with "->" assembles the topic name and it's path You could print these strings to the serial console (temporaril)y for debugging. Also: you are using a different board. Maybe there is an issue with it. |
@AlexBurghardt And then I thought about the WiFi signal, because I have an AP on the same floor and one AP a floor above. I will test a bit more. |
@viper4gh |
@AlexBurghardt Part of MQTT Log:
|
Is there a possibility to read the CPU Load and free RAM, that we can add these to the device state topic? |
@viper4gh: |
Hi. I just come across this issue myself. Owner of the (second) AC200M and initially very happy about your development of the ESP32 bridge as it would be a much more power-saving solution than the previous RaspberryPi bridge (that actually was quite complete and working for me). |
I'm stuck at the same point now. In case any one of you had any more success with the AC200M - I'm interested and could supply more debug logs if needed. I'm going back to https://github.com/SSMCD/bluetti2mqtt for the mean time, since that worked okay-ish as long as the AC200M is near my home assistant machine. 😄 |
Hi,
i used todays latest main and tried to get it running together with an iobroker as mqtt server.
The following works:
What I do not see (and others seem to) are all the states like current power and i.e. total battery percent.
I added some debug code in parse_bluetooth_data() the only page 0x00 offset 0x0A length 7, page 0x00 offset 0x46 length 14 and page 0x0B offset 0xB9 length 14. All with some follow data, which not looked to deep into.
The listest data matches the values in bluetti_polling_command for the AC200M.
Thus is I wonder if I am doing something wrong or missing something, if the bluetti_polling_command needs to extended or if there is any other issue. As other person mention that AC200M is working at them I wonder what is the difference to my project (BLUETTI_TYPE AC200M i have defined in the config header).
Any help is welcome!
Regards,
SvHeGithub
The text was updated successfully, but these errors were encountered: