Jay/Matt - I think this script should work, but am getting an error:
- Code: Select all
SonosPlugin = indigo.server.getPlugin("com.ssi.indigoplugin.Sonos")
if SonosPlugin.isEnabled():
SonosPlugin.executeAction("actionZP_announcementMP3", props={'zp1':indigo.devices['Cave'].id,'ttsORfile':"TTS",'setting':"Hello",'language':"en",'zp_volume':"30"})
When I execute, I get the following:
- Code: Select all
Sonos Error plugin does not have a <CallbackMethod> specified for action id actionZP_announcementMP3
Script Error embedded script: IllegalParameterError -- plugin does not have a <CallbackMethod> specified for action id actionZP_announcementMP3
Script Error Exception Traceback (most recent call shown last):
embedded script, line 3, at top level
ValueError: IllegalParameterError -- plugin does not have a <CallbackMethod> specified for action id actionZP_announcementMP3
Any ideas?
roussell wrote:+1 on constructing a Python string for custom speech. I currently use the variable substitution method but it would nice to inject something directly from Python.
Terry