What does a state machine have to do with anything. If you turn on the receiver and then send the volume change command before the receiver has fully come online, that volume change command doesn’t do anything.
It depends on the technology and the device. MQTT with QOS 0 on a busy network, messages may get lost. Zwave or Hue commands to half a dozen devices all at once, commands may get lost. But it’s not OH that’s dropping the commands, it’s overloading the technology causing messages to get lost.
But given the scenario you listed, and my experience with audio receivers, after being turned on, there is a second or more where the receiver is unresponsive as it boot up. Sending volume commands during this time will be ignored and the command lost.
Or maybe not. It all depends on the technology and the binding. You’ve given my no details what-so-ever as to that so
. With the information provided I don’t even know that all these commands are going through the same binding. It could be smart plug to turn on the receiver, LIRC to change the input and MQTT to change the volume. I have to assume the worst.
I created Gatekeeper in the first place years ago because one of the bindings was notoriously prone to dropping commands, and it was a one way binding, so there was no way for OH to know if the message got there or not.
Most of OHRT is available for use in Blockly through the block library on the marketplace. That’s a bit more phone friendly.
There is also Scene Control Suite - Scene Control Widget.
Been there, done that.