Skip to content

Commit 0c19b94

Browse files
committed
* Get device status response for Relay Switch 2PM
* Change the data type of the `switch_Voltage` and `switch_Power` fields from integer to float. * Adjust the case sensitivity of the status fields to match the actual API specifications, e.g., `switch1usedElectricity` to `switch1UsedElectricity`. * Remove field `calibrate`,`position`,`isStuck`
1 parent 306c219 commit 0c19b94

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2164,18 +2164,15 @@ The `body` object contains the following properties,
21642164
| online | Boolean | the connection status of the device. *true* or *false* |
21652165
| switch1Status | Integer | the current switch1 state. `0`, off; `1`, on |
21662166
| switch2Status | Integer | the current switch2 state. `0`, off; `1`, on |
2167-
| switch1voltage | Integer | the switch1 current voltage, measured in Volt |
2168-
| switch2voltage | Integer | the switch2 current voltage, measured in Volt |
2167+
| switch1Voltage | Float | the switch1 current voltage, measured in Volt |
2168+
| switch2Voltage | Float | the switch2 current voltage, measured in Volt |
21692169
| version | String | the current BLE and Wi-Fi firmware version, e.g. V3.1-6.3 |
2170-
| switch1power | Integer | the switch1 current power, measured in Watts |
2171-
| switch2power | Integer | the switch2 current power, measured in Watts |
2172-
| switch1usedElectricity | Integer | switch1 daily power consumption, measured in watt-minutes |
2173-
| switch2usedElectricity | Integer | switch2 daily power consumption, measured in watt-minutes |
2174-
| switch1electricCurrent | Integer | the switch1 electrical current measured in mA |
2175-
| switch2electricCurrent | Integer | the switch2 electrical current measured in mA |
2176-
| calibrate | Boolean | determines if the open and the closed positions have been properly calibrated or not |
2177-
| position | Integer | the current position, 0-100 |
2178-
| isStuck | String | determine if the roller blind is stuck |
2170+
| switch1Power | Float | the switch1 current power, measured in Watts |
2171+
| switch2Power | Float | the switch2 current power, measured in Watts |
2172+
| switch1UsedElectricity | Integer | switch1 daily power consumption, measured in watt-minutes |
2173+
| switch2UsedElectricity | Integer | switch2 daily power consumption, measured in watt-minutes |
2174+
| switch1ElectricCurrent | Integer | the switch1 electrical current measured in mA |
2175+
| switch2ElectricCurrent | Integer | the switch2 electrical current measured in mA |
21792176

21802177

21812178
##### Garage Door Opener

0 commit comments

Comments
 (0)