forked from andrius/neohubapi
Add (rate_of_change) VIEW_ROC command.
This commit is contained in:
parent
b70cc611e1
commit
c1a609f927
11
neohub.py
11
neohub.py
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue