08-25-2021, 06:41 AM
FWIW :: I use a different solution for this.
I power my preamp. + poweramp. from a Philips Hue smartplug & a dimmer switch.
The Raspberry with MoOde installed is also powered by such a smartplug.
Besides that i have another Pi running 24/7 as a server (Ubuntu)...
When i press "power off / off" on the Hue dimmer switch for my stereo then smartplug connected to the preamp. + poweramp. goes off (this is controlled from Philips hue ecosystem / app. whatever)...
With a python script running on the server, it detects the preamp, poweramp switch goes off, the server sends a ssh poweroff to the MoOde which is still running. - When 30sec. has gone after that, the smartplug for the MoOde goes off.
Seem's a little complicated, but the Hue stuff is very stable and it's working eveery time as expected without a glitch!
And the Hue its also kindoff "opensource"
Just my 2cents...
Jesper.
I power my preamp. + poweramp. from a Philips Hue smartplug & a dimmer switch.
The Raspberry with MoOde installed is also powered by such a smartplug.
Besides that i have another Pi running 24/7 as a server (Ubuntu)...
When i press "power off / off" on the Hue dimmer switch for my stereo then smartplug connected to the preamp. + poweramp. goes off (this is controlled from Philips hue ecosystem / app. whatever)...
With a python script running on the server, it detects the preamp, poweramp switch goes off, the server sends a ssh poweroff to the MoOde which is still running. - When 30sec. has gone after that, the smartplug for the MoOde goes off.
Seem's a little complicated, but the Hue stuff is very stable and it's working eveery time as expected without a glitch!
And the Hue its also kindoff "opensource"
Just my 2cents...
Jesper.