Maybe I should have givne a bit more explanation. I have a tutorial about communicating with a microbit:
And the link to the internet of things tutorial I gave earlier (The Internet of Things: Data Acquisition and Analysis) has a more gentle explanation.
Except for the BLE extension mentioned in the Internet of things tutorial, you should use this one edu.mit.appinventor.ble-20230223-beta.aix (200.0 KB) mentioned in my tutorial, to get the proper Android permissions.
At this moment you cannot address the IO-pins of the microbit directly from App Inventor, as I said. So, what you should do instead is send a command to the microbit via the serial interface UART, the microbit recieves this command and activates the IO-pins, using MakeCode. All explained very well in the IOT tutorials.
The last example in these tutorials is about watering plants, I think also do via the IO pins, so that should help you.