Skip to content

Commit 5f7c2b1

Browse files
committed
* Get device status response for Relay Switch 2PM
* Re-add field `calibrate`,`position`,`isStuck` * `Send device control commands` for Relay Switch 2PM * Re-add the `setPosition` command
1 parent f1a9f1a commit 5f7c2b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,6 +2175,9 @@ The `body` object contains the following properties,
21752175
| switch2UsedElectricity | Integer | switch2 daily power consumption, measured in watt-minutes |
21762176
| switch1ElectricCurrent | Integer | the switch1 electrical current measured in mA |
21772177
| switch2ElectricCurrent | Integer | the switch2 electrical current measured in mA |
2178+
| calibrate | Boolean | determines if the open and the closed positions have been properly calibrated or not |
2179+
| position | Integer | the current position, 0-100 |
2180+
| isStuck | String | determine if the roller blind is stuck |
21782181
| hubDeviceId | String | Hub ID, equivalent to device ID |
21792182

21802183

@@ -2476,6 +2479,7 @@ Send control commands to physical devices and virtual infrared remote devices.
24762479
| Relay Switch 2PM | command | turnOff | “1”or"2" | set to OFF state 1 represents channel 1 2 represents channel 2 |
24772480
| Relay Switch 2PM | command | toggle | “1”or"2" | toggle 1 represents channel 1 2 represents channel 2state |
24782481
| Relay Switch 2PM | command | setMode | channel;mode<br>e.g `1;0` | The first item represents the switching of channel number, 1 represents channel number 1 and 2 represents channel number 2. The second item represents set the switch mode. `0`, toggle mode; `1`, edge switch mode; `2`, detached switch mode; `3`, momentary switch mode |
2482+
| Relay Switch 2PM | command | setPosition | `0~100` | Set roller blind opening and closing percentage. `0`, Open All; `100`, Close All |
24792483

24802484
##### Garage Door Opener
24812485
| deviceType | commandType | Command | command parameter | Description |

0 commit comments

Comments
 (0)