1) Give a description of the problem
I am trying to design a piston that will allow me to keep my bedroom TV (Harmony) and Apple TV in sync regardless of whether I use Alexa or the actual AppleTV remote (not the harmony remote) to turn on/off the TV. The setup has an AppleTV with HDMI/CEC enable to on/sleep commands to the Apple TV turn off the TV and the A/V receiver (just like the harmony). The challenge is (as with all Harmony remotes) is that when you start a harmony activity, the presumption is the activity continues until turned off.
The setup from the piston below uses 2 devices to keep things in sync, a Samsung TV and the harmony activity). So if 1 turns on, the other should follow. . .
2) What is the expected behavior?
Hypothetically: I say “Alexa, turn on the bedroom TV” and the bedroom TV turns on. When I turn off the TV using the AppleTV remote, the harmony activity also turns off.
OR
I turn on the Apple TV using the remote (which would trigger the Harmony activity) and then later say “Alexa, turn off the bedroom TV” and the Harmony Activity turns off.
3) What is happening/not happening?
The piston (below)… sporadically does not keep the activities in sync. When this occurs (randomly), the TV will begin a somewhat endless loop of turning on/off until both Harmony and the Bedroom TV set are in sync.
Truth be told, I think I severely overthought the logic of this and there should be a simpler way.
**4) Post a Green Snapshot of the piston![image|45x37]
5) Attach any logs (From ST IDE and by turning logging level to Full)