Just looking at code. Looks good. Not had chance to test.
On sending the command are you waiting for the command window on the serial hex 11 and sending before the window closes hex 13. If you send outside the window it is ignored. Maybe I’ve missed that bit.
Master off maybe a waste of time as can be done via script/automation
I can’t remember what is in this code vs mocropython.
I think the commands need to be queued in a fifo queue. And then only cleared when a confirmation is received so if the window is missed on thst cycle it’s able to reattempt… it needs queueing so then you can wait for 11 without locking system and receive multiple command quickly eg vol up.
I want to retain power target which controls a snart plug connected to device as the standby on speakercraft I don’t trust. So if all zones are off then it should wait a set time then power off smart plug. Also if the system is powered off it won’t recieve the command window so this is when to check if power target is powered on and if not seotch on
Hope that makes sense.
Treble should be renamed If I spelt it wrong
Sorry wish I was home to test properly and communicate with you.
Thanks for your big contribution. Hopefully we can get this to be a descent integration.