Where "selectedDevices" is the list from the multi-select input, selectedCapability is capability.temperatureMeasurement, and hander is the method of the form def handler(evt)
The App Instance is listed after subscribing, for each device in the "In Use By" section, so subscribe seems to be working. But while events from those devices go to other handlers, they don't go to mine, as determined from the Device Events "Triggered Apps" lists.
What might I be doing wrong, that my app is listed as using the device but never triggers on events?
Yes, it's getting called, since a log line right before it is getting called, but based on your advice I added another one after.
It's not returning from subscribe(). Not getting an error, nothing logged, just not getting to the next line.
log.info("${thisChartName}: Subscribing to ${selectedDevices} for capability ${selectedCapability}.")
subscribe(selectedDevices, selectedCapability, handler)
log.info("${thisChartName}: Subscribe complete.")
Only returns the first log line:
Test1850: Subscribing to [Sensorama, Office, Bedroom, Main] for capability capability.temperatureMeasurement.
Any thoughts on how to find why it's not getting to the second?
Not really. Only you know what you what you're looking for with whatever capability (e.g., a specific command or attribute), so that seems as good as any approach to me.