I have used the playtextandrestore custom action on my sonos hub a fair bit with rulemachine 5.0, and I think I have found an issue with the handling of variables and this function under 5.1
Under rulemachine 5.1, I write a rule that does this
PlayTextAndRestore("this is a test", Announcement volume) on Living Room Sonos
where Announcement volume is a hub variable set to 75. when I create the rule, I get the following
Hi there, I'm assuming this (PlayTextAndRestore) restores the speaker back to what it was playing prior to making the annoncement?? Can you provide an example of how to right the rule to do this?? Been wondering for years. I can't find this as an option when I add the Action in the Rule. Or do I just write - PlayTextAndRestore("what ever the announcement is', 50)
as what is to be announced??
Thanks heaps in advance
Thanks, I'm up to 'Select Parameter Type' - I've selected - String - & put in the text I want announced
Then how do I set the volume?? for the speaker ??
For what it's worth, I'm seeing the exact same error when I try to use the "setTemperature" custom action for a virtual thermostat using a number variable.
Hi, are you saying it is supposed to PlayTextAndRestore auotomatically on Sonos?? If it is, it definately doesn't work any more. I recall it used to restart the radio after an announcement, doen't any more. I just altered the rule I jsut made in RM5, definately doesn't work there either
No, I was just pointing out that Speak in Send Message uses playTextAndRestore, assuming the Sonos is selected as a Music Player, so there is no need to use a custom action to get that command sent. Whether or not that works on a given Sonos at a given moment is beyond my pay grade.