Apple HomeKit bridge for Alpicool portable cooler style fridges
This is a personal hack project for my little fridge.
Alpicoold:
See the k25 package for the Bluetooth characteristic data frames used to interact with the fridge. The protocol is inferred from packet sniffing the manufacturer's app traffic using Wireshark.
Deployment is via an Ansible playbook called deploy, with another for installing the camera and ffmpeg loopback device.
This playbook uses make and cross-compiles from x86/Darwin to arm/linux via the musl cross-compiler before copying the executable to the Pi.
ansible-playbook -i ~/inventory.yml ansible/deploy.yml -l pizero2 -e'loglevel=info'
Some commands to remember for monitoring Bluetooth on Raspberry Pi:
sudo btmon
sudo bluetoothctl
sudo dbus-monitor --system "type=error"