摘要 |
<p>Methods, devices, and non-transitory computer-readable storage media are disclosed for creating and using device interaction trees to determine states of devices. A device interaction tree includes a root node, intermediate nodes, and leaf nodes. The intermediate nodes specify queries and tests, and the leaf nodes specify device states. The state of the given device may be determined by traversing the device interaction tree from the root node, through one or more intermediate nodes, to a leaf node. During traversal, a query associated with a current node in the tree is sent to the given device to obtain a response. A test associated with the current node is used to evaluate the response against one or more values. The outcome of the test determines a next node on a path towards leaf nodes of the tree. The state of the device is specified by the leaf node resulting from traversal of the tree.</p> |