Add GET_LIVE_DATA command.

This commit is contained in:
Andrius Štikonas 2020-11-22 13:02:01 +00:00
parent e07e672a42
commit 3af9ff2bfb
1 changed files with 10 additions and 0 deletions

View File

@ -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