Add (rate_of_change) VIEW_ROC command.

This commit is contained in:
Andrius Štikonas 2020-12-07 00:43:54 +00:00
parent b70cc611e1
commit c1a609f927
2 changed files with 15 additions and 0 deletions

View File

@ -434,3 +434,14 @@ class NeoHub:
result = await self._send(message, reply)
return result
async def rate_of_change(self, devices: [NeoStat]):
"""
Returns time in minutes required to change temperature by 1 degree
"""
names = [x.name for x in devices]
message = {"VIEW_ROC": names}
result = await self._send(message)
return result

View File

@ -83,3 +83,7 @@ class NeoStat:
async def set_diff(self, switching_differential: int):
result = await self._hub.set_diff(switching_differential, [self])
return result
async def rate_of_change(self):
result = await self._hub.rate_of_change([self])
return result