IKEA Sonos Symfonisk Speaker TTS
-
I have been playing with TTS through an Ikea/Sonos speaker controlled through Hubitat.
When writing the action using variables and then using the PLAY button for that action I get an error message.
Using the PLAY button for the Set Reaction and the TTS works fine.
I'm not sure what the difference is but it is nice that text with variables works fine with TTS. -
The single-action trial tool, which is the button on the same row as the action you are trying to run, does not have context with which to run the action when it contains variable references. That tool basically does the same thing that clicking an action in the detail view of the Entities list does. On the other hand, the "Play" button on the Reaction, which only works when the reaction is saved (no pending changes) works by enqueueing the reaction to execute in the same way that a rule would, so all of that context and the expression evaluator are available.
TL;DR The play button on the row cannot work when the parameters contain expression substitutions.
-
Thanks for the explanation. After getting the error message I assumed variables could not be used in TTS and went on with something else. I was later surprised to hear the speaker announce the message and did some checking into what was going on. Maybe the error message needs changing.
-
Hmm. Well, it may be "author's bias", but I think the error message is pretty specific: "The single action trial tool"... which is the button you just clicked... "cannot be used when the action parameters contain variable/expression substitutions."
-
T toggledbits locked this topic on