This is Raspberry Pi Remote plugin for Homebridge which can shutdown or reboot your Pi through HomeKit.