8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce5821a commit 18ce40bCopy full SHA for 18ce40b
kasa/modules/motion.py
@@ -59,3 +59,16 @@ async def set_range(
59
)
60
61
return await self.call("set_trigger_sens", payload)
62
+
63
+ @property
64
+ def inactivity_timeout(self) -> int:
65
+ """Return inactivity timeout in milliseconds."""
66
+ return self.data["cold_time"]
67
68
+ async def set_inactivity_timeout(self, timeout: int):
69
+ """Set inactivity timeout in milliseconds.
70
71
+ Note, that you need to delete the default "Smart Control" rule in the app
72
+ to avoid reverting this back to 60 seconds after a period of time.
73
+ """
74
+ return await self.call("set_cold_time", {"cold_time": timeout})
0 commit comments