From 3af9ff2bfb0f64107f2e87cc4bb63a0ed14f69d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Sun, 22 Nov 2020 13:02:01 +0000 Subject: [PATCH] Add GET_LIVE_DATA command. --- neohub.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/neohub.py b/neohub.py index e2005de..e5d070d 100644 --- a/neohub.py +++ b/neohub.py @@ -328,6 +328,16 @@ class NeoHub: result = await self._send(message, reply) return result + async def get_live_data(self): + """ + Returns unstructured live data from all devices + """ + + message = {"GET_LIVE_DATA": 0} + + result = await self._send(message) + return result + async def permit_join(self, name, timeout_s=120): """ Permit new thermostat to join network