Skip to content

Commit b497e18

Browse files
committed
* Send device control commands for Relay Switch 2PM
* Add argument(channnel) to the `turnOff` command * Change the argument transmission method for the `setMode` command from comma-separated to semicolon-separated * Remove the `setPosition` command
1 parent 149d3f2 commit b497e18

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2474,10 +2474,9 @@ Send control commands to physical devices and virtual infrared remote devices.
24742474
| deviceType | commandType | Command | command parameter | Description |
24752475
| ---------------------------- | ----------- | ------------------- | ------------------------------------------------------------ | ------------------------------------------------------------ |
24762476
| Relay Switch 2PM | command | turnOn | “1”or"2" | set to ON state 1 represents channel 1 2 represents channel 2 |
2477-
| Relay Switch 2PM | command | turnOff | default | set to OFF state |
2477+
| Relay Switch 2PM | command | turnOff | “1”or"2" | set to OFF state 1 represents channel 1 2 represents channel 2 |
24782478
| Relay Switch 2PM | command | toggle | “1”or"2" | toggle 1 represents channel 1 2 represents channel 2state |
2479-
| Relay Switch 2PM | command | setMode | “1”/“2”,`0~3` | 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 |
2480-
| Relay Switch 2PM | command | setPosition | `0~100` | Set roller blind opening and closing percentage. `0`, Open All; `100`, Close All |
2479+
| 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 |
24812480

24822481
##### Garage Door Opener
24832482
| deviceType | commandType | Command | command parameter | Description |

0 commit comments

Comments
 (0)