It would be great to have a built-in hs.bluetooth module for Bluetooth automation and device management.
A good reference would be blueutil:
https://github.com/toy/blueutil
Possible features:
- Bluetooth power on/off
- List paired / connected devices
- Device information and connection state
- Connect / disconnect devices
- Bluetooth state and device event watchers
Also, Hammerspoon already has hs.battery.privateBluetoothBatteryInfo() in hs1, so it may be worth considering whether related Bluetooth battery information APIs should be included in this module as well.
It would be great to have a built-in hs.bluetooth module for Bluetooth automation and device management.
A good reference would be blueutil:
https://github.com/toy/blueutil
Possible features:
Also, Hammerspoon already has hs.battery.privateBluetoothBatteryInfo() in hs1, so it may be worth considering whether related Bluetooth battery information APIs should be included in this module as well.