Hi,
I believe I am over complicating things...
I want to perform the following scenario:
EVENT # A
When my car charger is manually triggered and turned off, AND IF Sonos is playing, THEN PAUSE Sonos, THEN SPEAK "Car charger turned off", THEN PLAY SONOS.
This set of events works perfectly, however it always turns the Sonos player back ON even IF it wasn't playing before the manual trigger.
I believe a nested AND IF would work but there is no capability like this...
I am thinking a Virtual device or counter but faced issues...
EVENT # B
I tried using a counter named 'Sonos' and every time I would hit Play on Sonos I would increment counter by 1 (running total of 1).
So I modified the EVENT # A and when the event pauses Sonos I would increment the 'sonos' counter by 1. (So a running total of 2).
Then at the end of EVENT # A I would run Another event (EVENT # C) with the following:
EVENT # C
If 'Sonos' counter is = or greater than '1' play Sonos.
So far so good.
EVENT # B
Would as well when Sonos is paused it reduces it by 1.
So every time I would Pause "inside" the manual trigger event it would reduce it again by 1....because event A has a "pause"
Any ideas would be appreciated and THANKS to everyone who has helped me before.
Chris
:confused:
I believe I am over complicating things...
I want to perform the following scenario:
EVENT # A
When my car charger is manually triggered and turned off, AND IF Sonos is playing, THEN PAUSE Sonos, THEN SPEAK "Car charger turned off", THEN PLAY SONOS.
This set of events works perfectly, however it always turns the Sonos player back ON even IF it wasn't playing before the manual trigger.
I believe a nested AND IF would work but there is no capability like this...
I am thinking a Virtual device or counter but faced issues...
EVENT # B
I tried using a counter named 'Sonos' and every time I would hit Play on Sonos I would increment counter by 1 (running total of 1).
So I modified the EVENT # A and when the event pauses Sonos I would increment the 'sonos' counter by 1. (So a running total of 2).
Then at the end of EVENT # A I would run Another event (EVENT # C) with the following:
EVENT # C
If 'Sonos' counter is = or greater than '1' play Sonos.
So far so good.
EVENT # B
Would as well when Sonos is paused it reduces it by 1.
So every time I would Pause "inside" the manual trigger event it would reduce it again by 1....because event A has a "pause"
Any ideas would be appreciated and THANKS to everyone who has helped me before.
Chris
:confused: