This seems to work, but in setting up the Virtual switch, I chose to set it to auto-off after 5 seconds (the max setting). The problem I have is that the message hasn't finished playing by the time the switch turns off, and the message is cut short.
Is there a different way I should be doing this so the message isn't cut short?
Update
Thanks for the suggestions and help. The message is being cut short due to a Sonos Driver issue.
I believe if you build your rule but using trigger it should play just fine, same definition, trigger lighting detected, condition pool bbq sonos playing
Couldn't see the forest for the trees. Hadn't even noticed the Define a Triggered Rule section of Rule Builder.
Anyway, I attempted to make the suggestions you said, the message plays, but still is cut off at the end. Am I aslo meant to removed the auto set to off on the virutal switch??
Can you see where I have misinterpreted your suggestion?
If you remove your virtual switch from the rule definition, it should work. The virtual switch turning on triggers the evaluation of the condition (Sonos on). The duration your virtual switch is on will not matter if it’s not a defined condition.
Try changing the message by one word. When you create a new message it is cached on your hub. I'm just curious to see the downloaded voice file may be corrupt.
Take a look at what? If this is about the TTS message, once RM sends that command, it has nothing to do with it after that. This could be a TTS issue. Not sure.
I've noticed that TTS gets cut off at the end a little also. I don't know why this is. Maybe @mike.maxwell could weigh in. How much is getting cut off?