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.
2 parents a965598 + 329f6d9 commit c3c4e88Copy full SHA for c3c4e88
switchbot/__init__.py
@@ -7,6 +7,8 @@
7
8
UUID = "cba20d00-224d-11e6-9fb8-0002a5d5c51b"
9
HANDLE = "cba20002-224d-11e6-9fb8-0002a5d5c51b"
10
+
11
+PRESS_KEY = "570100"
12
ON_KEY = "570101"
13
OFF_KEY = "570102"
14
@@ -45,3 +47,7 @@ def turn_on(self) -> None:
45
47
def turn_off(self) -> None:
46
48
"""Turn device off."""
49
return self._sendpacket(OFF_KEY)
50
51
+ def press(self) -> None:
52
+ """Press command to device."""
53
+ return self._sendpacket(PRESS_KEY)
0 commit comments