Control switchbot curtains.
The tool is based on: https://github.com/OpenWonderLabs/python-host.git Adepted to use bluetoothctl instead of deprecated gatttool.
I wrote a c-version instead of a python version.
On the raspberry pi do:
make
You can find the mac address with ./switchbot scan
These can also be found in the switchbot app.
To close the curtains do ./switchbot close mac(s)
To open the curtains do ./switchbot open mac(s)
To postion the curtains do ./switchbot <position in %> mac(s)
The tool uses the bluetoothctl tool.
This should be present on the raspberry pi.