Skip to content

Commit 045d337

Browse files
committed
* Webhook payload for Air Purifier 4 models
* Remove the `drying` property. * Modify the description of the `mode` property to match the Status API. These changes appear to have been overlooked when copying from the Evaporative Humidifier (Auto-refill) model.
1 parent ac30aa7 commit 045d337

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

README.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4068,8 +4068,7 @@ When an event gets triggered, SwitchBot server will send a `POST` request to the
40684068
| deviceType | String | the type of the device |
40694069
| deviceMac | String | the MAC address of the device |
40704070
| power | String | the power state of the device |
4071-
| mode | Integer | the current mode. `1`, level 4; `2`, level 3; `3`, level 2; `4`, level 1; `5`, humidity mode; `6`, sleep mode; `7`, auto mode; `8`, drying mode |
4072-
| drying | Boolean | determines if the device is drying its filter or not |
4071+
| mode | Integer | the current mode. `1`, normal or fan mode; `2`, auto mode; `3`, sleep mode; `4`, pet mode |
40734072
| childLock | Integer | child lock. `0`, disabled; `1`, enabled |
40744073
| timeOfSample | Long | the time stamp when the event is sent |
40754074

@@ -4098,8 +4097,7 @@ When an event gets triggered, SwitchBot server will send a `POST` request to the
40984097
| deviceType | String | the type of the device |
40994098
| deviceMac | String | the MAC address of the device |
41004099
| power | String | the power state of the device |
4101-
| mode | Integer | the current mode. `1`, level 4; `2`, level 3; `3`, level 2; `4`, level 1; `5`, humidity mode; `6`, sleep mode; `7`, auto mode; `8`, drying mode |
4102-
| drying | Boolean | determines if the device is drying its filter or not |
4100+
| mode | Integer | the current mode. `1`, normal or fan mode; `2`, auto mode; `3`, sleep mode; `4`, pet mode |
41034101
| childLock | Integer | child lock. `0`, disabled; `1`, enabled |
41044102
| timeOfSample | Long | the time stamp when the event is sent |
41054103

@@ -4128,8 +4126,7 @@ When an event gets triggered, SwitchBot server will send a `POST` request to the
41284126
| deviceType | String | the type of the device |
41294127
| deviceMac | String | the MAC address of the device |
41304128
| power | String | the power state of the device |
4131-
| mode | Integer | the current mode. `1`, level 4; `2`, level 3; `3`, level 2; `4`, level 1; `5`, humidity mode; `6`, sleep mode; `7`, auto mode; `8`, drying mode |
4132-
| drying | Boolean | determines if the device is drying its filter or not |
4129+
| mode | Integer | the current mode. `1`, normal or fan mode; `2`, auto mode; `3`, sleep mode; `4`, pet mode |
41334130
| childLock | Integer | child lock. `0`, disabled; `1`, enabled |
41344131
| timeOfSample | Long | the time stamp when the event is sent |
41354132

@@ -4158,8 +4155,7 @@ When an event gets triggered, SwitchBot server will send a `POST` request to the
41584155
| deviceType | String | the type of the device |
41594156
| deviceMac | String | the MAC address of the device |
41604157
| power | String | the power state of the device |
4161-
| mode | Integer | the current mode. `1`, level 4; `2`, level 3; `3`, level 2; `4`, level 1; `5`, humidity mode; `6`, sleep mode; `7`, auto mode; `8`, drying mode |
4162-
| drying | Boolean | determines if the device is drying its filter or not |
4158+
| mode | Integer | the current mode. `1`, normal or fan mode; `2`, auto mode; `3`, sleep mode; `4`, pet mode |
41634159
| childLock | Integer | child lock. `0`, disabled; `1`, enabled |
41644160
| timeOfSample | Long | the time stamp when the event is sent |
41654161

0 commit comments

Comments
 (0)