We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07fb14e commit bd614c3Copy full SHA for bd614c3
switchbot/adv_parsers/plug.py
@@ -10,4 +10,5 @@ def process_woplugmini(data: bytes, mfr_data: bytes | None) -> dict[str, bool |
10
"switchMode": True,
11
"isOn": mfr_data[7] == 0x80,
12
"wifi_rssi": -mfr_data[9],
13
+ "power": ( ( ( mfr_data[10] << 8 ) + mfr_data[11] ) & 0x7fff ) / 10 # W
14
}
0 commit comments