diff --git a/lifx/device.py b/lifx/device.py index 230f978..e6201e5 100644 --- a/lifx/device.py +++ b/lifx/device.py @@ -251,6 +251,15 @@ def latency(self): response = self._block_for_response(ping_payload, pkt_type=protocol.TYPE_ECHOREQUEST) end = time.time() return end - start + + @property + def properties(self): + """ + Returns a tuple of the device's vendor id, product id, and version. + See https://lan.developer.lifx.com/docs/lifx-products to interpret + """ + response = self._block_for_response(pkt_type=protocol.TYPE_GETVERSION) + return response @property def label(self):