Skip to content

Releases: sblibs/pySwitchbot

0.12.0

09 Oct 06:58
1d45316
Compare
Choose a tag to compare
0.12.0

0.11.0

19 Jun 13:03
590b58a
Compare
Choose a tag to compare

Add Class to discover all switchbots, all curtain bots or all bot. By @RenierM26

-Added discovery method.
-All updates are now handled by single advertisement scan.

This should allow discovery and coordinator based updates in hass integration.

model number (first byte of 16b service data):
"c" = Curtain
"H" = WoHand or otherwise known as bot.
"T" = woSensorTH or otherwise known as temp/humidity sensor. (I don't have one and can't test the output)

Returns python dict with all device data of type with single scan.
Example of single curtain (json formated - easier to format in notepad ++):

"fd8082999999": {
	"mac_address": "fd:80:82:99:99:99",
	"Flags": "06",
	"Manufacturer": "5900fd8082c51181",
	"Complete 128b Services": "cba20d00-224d-11e6-9fb8-0002a5d5c51b",
	"data": {
		"calibration": true,
		"battery": 57,
		"position": 98,
		"lightLevel": 2,
		"rssi": -68
	},
	"model": "c",
	"modelName": "WoCurtain"
},

Returns python dict with all device data of type with single scan.
Example of returned data for switchbot bot(json formatted - easier to format in notepad ++):

"e78943999999": {
	"mac_address": "e7:89:43:99:99:99",
	"Flags": "06",
	"Manufacturer": "5900e78943d9fe7c",
	"Complete 128b Services": "cba20d00-224d-11e6-9fb8-0002a5d5c51b",
	"data": {
		"switchMode": true,
		"isOn": true,
		"battery": 91,
		"rssi": -71
	},
	"model": "H",
	"modelName": "WoHand"
},

0.10.1

06 Jun 15:01
2fca8be
Compare
Choose a tag to compare
Added bot states and battery, refactored update methods. (#22)

* Added bot states and battery, refactored update methods.

* Fixes

* Add method to return battery.

* Implemented suggestions

* Fixed logic mistake on bot  is_on status.

0.10.0

12 May 17:05
1357c7c
Compare
Choose a tag to compare
0.10.0

0.9.1

20 Dec 08:04
bb3be76
Compare
Choose a tag to compare

feature: Enable choice of bluetooth interface in the host #15
By @moretea

0.9.0

18 Dec 20:05
f09079f
Compare
Choose a tag to compare

Curtain support by @daenny

0.8.0

29 Dec 11:17
8547e07
Compare
Choose a tag to compare
0.8.0

0.7.0

22 Nov 14:38
8c3c423
Compare
Choose a tag to compare
0.7.0

0.6.2

06 May 09:48
1c42203
Compare
Choose a tag to compare
0.6.2

0.6.1

02 May 07:26
feec093
Compare
Choose a tag to compare
0.6.1