Because I can’t stop asking questions about the platform that’s about to be obsolete (but mainly because it helps to understand how ST thinks about how all of this stuff is supposed to work, which may carry forward to the new platform)…
I’m building a little cheat-sheet on the different ways and scenarios to use preferences, attributes, and state/atomicstate.
https://docs.google.com/spreadsheets/d/1rgua4tqpprSR71OdknwBSZaRTrIskyv0izKDsoIqWkgs
I’ve figured out how to read/write preference and state items, but I’ve only been able to set attributes (with createEvent/sendEvent). The old developer docs talk about being able to read them and even subscribe to state changes, but all of the examples are for SmartApps and I haven’t gotten any of the examples to work in a DTH. Is there a way to read an attribute value in a DTH?