mirror of
https://github.com/lox-audioserver/lox-audioserver.git
synced 2026-04-25 22:35:53 +03:00
[GH-ISSUE #164] possibility to turn on/off gpio when specific zone is playing. #96
Labels
No labels
bug
enhancement
pull-request
released
released on @beta
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lox-audioserver#96
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @p4co86 on GitHub (Feb 18, 2026).
Original GitHub issue: https://github.com/lox-audioserver/lox-audioserver/issues/164
Hi, is it possible to implement an option to switch on a specific gpio when some zones are playing?
Iam using two KAB9 and it is possible to switch it to mute or standby via relays. An option to delay the output of the zones would be also nice.
It is very helpful for minimizing power,
@rudyberends commented on GitHub (Feb 18, 2026):
What output are you running? Depending on the output, it might already be available client side. I assume the gpios are also client side?
For example sendspin has hooks for stream start and stream end which allow you to run your own script.
I believe this is also possible with squeezelite, but I am not sure how this works. @mr-manuel might be able to tell you more about it.
Right now lox-Audioserver has this delay, but it is only for alerts. This should be moved to a per zone one time delay when the zone is off. I will look into this.
@p4co86 commented on GitHub (Feb 18, 2026):
i use squeezelite as output. My Hardware is a RPI4.
Thanks
i used the MS4H in the past. Its the old custom Musicserver for loxone by Dieter Schmidberger. There was a powermanger installed with wich you could mute the amps.
https://music-server.net/help/MusikServer4Lox.html?Powermanager1.html
@mr-manuel commented on GitHub (Feb 19, 2026):
Through the command line options of the Squeezelite player you can make yourself a script:
github.com/ralph-irving/squeezelite@6d571de8fa/main.c (L64-L150)Relevant for you:
Here a sample from ChatGPT: https://chatgpt.com/share/69969707-24ac-8000-bf18-714796eaefa1
@tobsch commented on GitHub (Feb 19, 2026):
I have built a configuration interface to map amps to speakers & zones aswell as a very simple "powermanager" replacement: It watches alsa streams and switches on amps via crelay.
If anyone is interested I am happy to share it.
@p4co86 commented on GitHub (Feb 20, 2026):
hi, i havent find the time to test the squeezelite solution.
Wow, that sounds awesome, yes it would be nice you share it with us.
I will test it asap.
@tobsch commented on GitHub (Feb 21, 2026):
@p4co86 here you go: https://github.com/tobsch/snappy
It's not super self explaining as I purely wrote it for myself initially. But give me feedback, please!
@p4co86 commented on GitHub (Feb 22, 2026):
Hi, thanks, i have solved it with the Multiio Plugin for Loxberry. Here you can turn on GPIO and use the Aufioplayerstate for switching. I have used a Delay for switching off. Worked very well.
@rudyberends commented on GitHub (Feb 22, 2026):
Will that be enough for you, or do we still need to look for a native powermanagment implementation?
@p4co86 commented on GitHub (Feb 22, 2026):
A native solution would be nicer to have all in one, no dependience and so on, but for the first it is ok for me.
@rudyberends commented on GitHub (Feb 26, 2026):
Power management will be in the next beta. Switching will be experimental and ay require some feedback.
https://github.com/lox-audioserver/lox-audioserver/issues/184#issuecomment-3968966279
@p4co86 commented on GitHub (Feb 27, 2026):
That looks fantastic! Could you tell us when the next beta version will be released so we can test it?