switchbot-api 2.4.0__tar.gz → 2.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: switchbot_api
3
- Version: 2.4.0
3
+ Version: 2.5.0
4
4
  Summary: An asynchronous library to use Switchbot API
5
5
  License: MIT
6
6
  Author: Ravaka Razafimanantsoa
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "switchbot_api"
3
- version = "2.4.0"
3
+ version = "2.5.0"
4
4
  description = "An asynchronous library to use Switchbot API"
5
5
  authors = ["Ravaka Razafimanantsoa <contact@ravaka.dev>"]
6
6
  license = "MIT"
@@ -78,6 +78,7 @@ class CommonCommands(Commands):
78
78
 
79
79
  ON = "turnOn"
80
80
  OFF = "turnOff"
81
+ TOGGLE = "toggle"
81
82
 
82
83
 
83
84
  class OthersCommands(Commands):
@@ -102,6 +103,122 @@ class HumidifierCommands(Commands):
102
103
  SET_MODE = "setMode"
103
104
 
104
105
 
106
+ class HumidifierV2Commands(Commands):
107
+ """Humidifier 2 commands."""
108
+
109
+ SET_MODE = "setMode"
110
+ SET_CHILD_LOCK = "setChildLock"
111
+
112
+
113
+ class AirPurifierCommands(Commands):
114
+ """Purifier commands."""
115
+
116
+ # Supported Device List:
117
+ # Air Purifier VOC
118
+ # Air Purifier Table VOC
119
+ # Air Purifier PM2.5
120
+ # Air Purifier Table PM2.5
121
+
122
+ SET_MODE = "setMode"
123
+ SET_CHILD_LOCK = "setChildLock"
124
+
125
+
126
+ class CurtainCommands(Commands):
127
+ """Curtain & Curtain3 commands."""
128
+
129
+ SET_POSITION = "setPosition"
130
+ PAUSE = "pause"
131
+
132
+
133
+ class SwitchCommands(Commands):
134
+ """Switch commands."""
135
+
136
+ # Supported Device List:
137
+ # Relay Switch 1
138
+ # Relay Switch 1PM
139
+ SET_MODE = "setMode"
140
+
141
+
142
+ class Switch2PMCommands(Commands):
143
+ """Switch commands."""
144
+
145
+ # Supported Device List:
146
+ # Relay Switch 2PM
147
+ SET_MODE = "setMode"
148
+ SET_POSITION = "setPosition"
149
+
150
+
151
+ class RGBWLightCommands(Commands):
152
+ """RGBWLight commands."""
153
+
154
+ # Supported Device List:
155
+ # Strip Light
156
+ SET_BRIGHTNESS = "setBrightness"
157
+ SET_COLOR = "setColor"
158
+
159
+
160
+ class RGBWWLightCommands(Commands):
161
+ """RGBWwLight commands."""
162
+
163
+ # Supported Device List:
164
+ # Floor Lamp
165
+ # Strip Light 3
166
+ # Color Bulb
167
+ SET_BRIGHTNESS = "setBrightness"
168
+ SET_COLOR = "setColor"
169
+ SET_COLOR_TEMPERATURE = "setColorTemperature"
170
+
171
+
172
+ class DoorBellCommands(Commands):
173
+ """Door Bell commands."""
174
+
175
+ ENABLE = "enableMotionDetection"
176
+ DISABLE = "disableMotionDetection"
177
+
178
+
179
+ class VacuumCleanerV2Commands(Commands):
180
+ """VacuumCleanerV2 commands."""
181
+
182
+ # Supported Device List:
183
+ # K20+ Pro
184
+ # Robot Vacuum Cleaner K10+ Pro Combo
185
+ START_CLEAN = "startClean"
186
+ PAUSE = "pause"
187
+ DOCK = "dock"
188
+ SET_VOLUME = "setVolume"
189
+ CHANGE_PARAM = "changeParam"
190
+
191
+
192
+ class VacuumCleanerV3Commands(Commands):
193
+ """VacuumCleanerV3 commands."""
194
+
195
+ # Supported Device List:
196
+ # Floor Cleaning Robot S10
197
+ # S20
198
+ START_CLEAN = "startClean"
199
+ PAUSE = "pause"
200
+ DOCK = "dock"
201
+ SET_VOLUME = "setVolume"
202
+ CHANGE_PARAM = "changeParam"
203
+ ADD_WATER_FOR_HUMI = "addWaterForHumi"
204
+ SELF_CLEAN = "selfClean"
205
+
206
+
207
+ class BlindTiltCommands(Commands):
208
+ """Blind Tilt commands."""
209
+
210
+ SET_POSITION = "setPosition"
211
+ FULLY_OPEN = "fullyOpen"
212
+ CLOSE_UP = "closeUp"
213
+ CLOSE_DOWN = "closeDown"
214
+
215
+
216
+ class RollerShadeCommands(Commands):
217
+ """Roller Shade commands."""
218
+
219
+ SET_POSITION = "setPosition"
220
+
221
+
105
222
  class TVCommands(Commands):
106
223
  """TV commands."""
107
224
 
File without changes
File without changes