ebaauw / homebridge-rpi

Homebridge plugin for Raspberry Pi.
Apache License 2.0
308 stars 18 forks source link

feature wish: reboot button? #52

Closed houser42 closed 4 years ago

houser42 commented 4 years ago

Hello, Not sure about the scope of this plugin, but looking fr a way to create a simple reboot button in Homebridge and was wondering if it is it possible to create such a reboot button for the Raspi with this plugin? Many thanks.

ebaauw commented 4 years ago

Creating a button is no big deal, but implementing a reboot is. On a local Pi you would need root privileges to execute shutdown. For me, that’s a no go. On a remote Pi, this would require another script to be called through pigpiod to execute the shutdown. To me, that would be an unacceptable security risk; anyone on the network could do an unauthenticated shutdown.

houser42 commented 4 years ago

Thanks @ebaauw Sorry for late reply. I understand your priorities. I will look for another way. Many thanks