warhammerkid / bluetti_mqtt

MQTT interface for Bluetti power stations
MIT License
139 stars 53 forks source link

Data just from one power station #20

Closed dabene1408 closed 1 year ago

dabene1408 commented 2 years ago

When I try to use your script with multiple power stations by providing (in my case 2) MAC-Addresses, only one is read. If I restart the service that's responsible for your script multible times, sometimes i get data from the other power station. The data of both power stations is read maby every 10 restarts for one cycle.

warhammerkid commented 2 years ago

Can you provide more details about what version you're running and on what operating system?

dabene1408 commented 2 years ago

I use version 0.8.2 on a Raspberry Pi 4 with Raspbian and try to read two EP500P power stations.

warhammerkid commented 1 year ago

I finally have a second device to test with (an EB3A). I ran the latest version for over 10 hours without any issues monitoring both an AC300 and an EB3A. My monitoring device is a Raspberry Pi 4, also running Raspbian, and I wasn't using the --interval flag to limit how quickly it polls.

There's a bug fixed in 0.9.0 that might have fixed things, as well as newer versions of bleak, the library I'm using for bluetooth. It might be worth running pip install -U bleak if you haven't in a while, to upgrade.

dabene1408 commented 1 year ago

It seems the update helped. I'll monitor and test it through the next days. Thanks for the help.