Hey all,
So I have had a couple chromecast users (and now my own with HE 2.1.4.123) not working 100% of the time. Sometimes they speak, sometimes only partial speak and finally sometimes nothing at all. Here is my code for speech devices. Any suggestions surrounding google chromecast devices I am missing?
if (speechmode){
try {
speechspeaker.initialize()
if (logEnable) log.debug "Initializing Speech Speaker"
pauseExecution(2500)
}
catch (any) { if(logEnable) log.debug "Speech device doesn't support initialize command" }
try {
speechspeaker.setVolume(speakervolume)
if (logEnable) log.debug "Setting Speech Speaker to volume level: ${speakervolume}"
pauseExecution(2000)
}
catch (any) { if (logEnable) log.debug "Speech speaker doesn't support volume level command" }
if (logEnable) log.debug "Sending alert to Google and Speech Speaker(s)"
speechspeaker.speak(alertmsg.toLowerCase())
try {
if (speakervolRestore) {
pauseExecution(atomicState.speechDuration2)
speechspeaker.setVolume(speakervolRestore)
if (logEnable) log.debug "Restoring Speech Speaker to volume level: ${speakervolRestore}"
}
}
catch (any) { if (logEnable) log.debug "Speech speaker doesn't support restore volume command" }
}