Turn off your Pi with a button.
On the Pi install bluedot and dbus.
$ sudo pip3 install bluedot
$ sudo apt install python3-dbus
Copy the file bluedot_handler.py
into the desired place
$ cp bluedot_handler.py ~/bin/
Create a cronjob that starts the handler on reboot of the Pi.
$ crontab -e -u pi
Add the following line, save and restart.
@reboot /usr/bin/python3 /home/pi/bin/bluedot_handler.py
Pair your phone as described here
Install the Bluedot Android App. When your start the app and connect to your device, the blue button will shut down the pi.
- pi-shutdown is a similar project that allows to shutdown the Pi by connecting pins with a jumper or a button.