I had already uncommented the debug statements that were already there. Here is the device record for the ecobee:
{
accountName=Ecobee,
appDeviceList=[],
capabilities=[
AMAZON_MUSIC, TIMERS_AND_ALARMS, REMINDERS, TUNE_IN, GOLDFISH, I_HEART_RADIO, AUDIO_PLAYER, AUDIBLE, MUSIC_SKILL, SOUND_SETTINGS, SLEEP, DREAM_TRAINING, MICROPHONE, PAIR_BT_SINK, DEREGISTER_DEVICE, CHANGE_NAME, DIALOG_INTERFACE_VERSION, PERSISTENT_CONNECTION, SUPPORTS_CONNECTED_HOME_CLOUD_ONLY, KINDLE_BOOKS, CUSTOM_ALARM_TONE, VOLUME_SETTING
],
charging=null,
clusterMembers=[],
deviceAccountId=A0902409SZ1Q17CLBTC0,
deviceFamily=UNKNOWN,
deviceOwnerCustomerId=A1091GFLY2I2GM,
deviceType=A2X8WT9JELC577,
deviceTypeFriendlyName=ecobee SmartThermostat with voice control,
essid=null,
language=null,
macAddress=null,
online=true,
parentClusters=[],
postalCode=null,
registrationId=null,
remainingBatteryLevel=null,
serialNumber=XXXXXX,
softwareVersion=4006025
}
unfortunately, the device family is "UNKNOWN", which doesn't really help much!
I wonder if searching the capabilities for something like AUDIO_PLAYER might be a better approach. Looking through the capabilities for the Ecobee, I can't see another capability that might indicate the TTS capability. But probably if it is an Audio player, then it would be a suitable target.
I am going to modify my local code to give it a try.