First of all, if you don’t have computer skills or if you don’t know MACRODROID, it might be a little difficult to adapt my piece of macro code.
-The main difficulty is that, to click on the “AC” button to put AC “on”, you have to click on a point on the screen, and therefore you have to acquire the coordinates of this point, and this varies depending on the Android phone, the screen size. In addition, sometimes depending on the size of the screen, the main window of the bluetti application (the one with the SOC) is sometimes not fully displayed, you have to scroll to reach the AC buttons at the bottom… in the program I have put a line to scroll to try to reach the bottom of the bluetti app page. If this does not work, you should ask me so that I can help you adapt this parameter.
All this must be configured in my piece of code. I explain how to do it.
-Note, in the code I turn on AC… but for DC it is extraordinarily simpler, there is no need to know the position of the button… (for AC I have not yet found how to do it).
Important point: the bluetti application must be active on the phone at all times, you must first click on “My devices” and choose your AC200max and you must have the window where the SOC appears
NB: I do not use this program, I developed it to turn DC on and off automatically… I adapted it to AC only because you asked!
IF you want to try anyway, here is the procedure
you can download the macro from the link below.
Download - UploadNow.io
Details:
-it works for an AC200MAX (maybe for other models with Bluetooth but I have not tested).
-you must have an Android phone, on which you download the bluetti application and the “macrodroid” application
-You plug this phone into an AC-DC adapter, which you will plug into an AC socket on your bluetti AC200max. This point is important and essential, your phone will be able to know if the Bluetti AC socket is off or on.
-On macrodroid, it was free, now it’s free for 7 days but with ads (quite annoying), you can test for 7 days, then you have to continue watching ads to be able to use 3 more days, etc. . I paid 3 dollars or a little more to get the pro version without ads.
-launch the Bluetti application, then “My devices”, then click on your AC200max to connect to your AC200max.
You leave the Bluetti application permanently active (on the main screen, indicating the SOC, and with the DC and AC activation buttons.)
Do not close the Bluetti application window.
-Launch Macrodroid and you import the macro into Macrodroid (click on export/import)
-You must adapt the macro to your AC200max and your smartphone : click on “macros” at the bottom then click on my macro “put ac on”, click, in the “action block” on “bluetti”. Then click on the line “clic [AC200M2252002310120]”, then click on “configure”, on the “select option” screen, check that the “Click” option is checked and click on OK. On the “Select option” screen, check that “text content” is checked. Click on ok. In the “Enter text to match” window, modify the AC200MAX number and enter the number of your AC200max and click ok. In the “click result” window, check that the “Dont wait for result” box is checked and click ok.
-You must then adapt the position of the “AC” on/off button on the screen of your phone: click on the line “Clic[1200, 2308]”, then on “configure”, on the “select an option” window, check that the “clic” is checked then click ok. In the “select option” window, click on “Identify in app” then click “ok”. You receive a notification “identify UI control: navigate to the apprpriate app screen, touch the notification then press ui control on the screen”.
Return to the bluetti application window (that you have kept open…) and when you are in front of the bluetti window allowing you to activate AC on, go to notification and click on the notification “identify UI control: navigate to the apprpriate app screen, touch the notification then press ui control on the screen. »… This which explains to Macrodroid that it must identify “UI controlling” for your following click/action : click on the AC on button.
Then you return automaticaly to Macrodroid, click on Clic[id:net.poweroak.bluetticloud:id/ivEnd], then on “configure”, on the “select an option” window, check that the “clic” box is checked then click on “ok”. In the “select option” window, click on “X,Y location” then click “ok”. On the “X,Y location window”, click OK. On the “click Result” window, check that the “dont wait for result” box is checked and click on ok
You’ve done the hardest part, you can now try it.
Click on the notch at the bottom right, in the put ac on window, click on the return arrow at the top left. You have returned to the macros window. On the Put ac on macro, activate the macro with the button on the right.
Now, every 30 seconds, the macro is executed, checks if the phone is powered with the AC DC adapter, the adapter being plugged into the AC socket of the AC200max.
If AC is off, the macro tries to turn it on.