Skip to content

Commit 590b58a

Browse files
Add Class to discover all switchbots, all curtain bots or all bot (woHand) (#23)
* New class to fetch all switchbot device data for all devices in range. * Method to return all switchbot info * Update __init__.py * Update __init__.py * Refactor code into methods * Update __init__.py * Update __init__.py * Update __init__.py * Add invert for switch, cleanup variable names * Add method for spesific mac to Switchbots class, inverse isOn check, add get is calibrated to main switchbot class. * Add temperature sensor to discovery. (I have no way to test this) * Update __init__.py * Update setup.py * Remove waiting time. This can be handled by hassio * Restructured switchbot base class for device discovery and single poll for all device updates. * Update __init__.py * Update __init__.py * Update __init__.py * Update __init__.py * Prevent additional runs if update fails. * Update __init__.py * Update __init__.py * Update __init__.py * Update __init__.py * Update __init__.py * Update setup.py Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net> * Update switchbot/__init__.py Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net> * New class for device scanning. * Changed scan timeout and retry count to use same variable format as rest of class. * Handle _connect, _writekey and _disconnect via CONNECT_LOCK. * SwitchbotDevice only returns data if update is called, btle interface can be specified on scanning methods. -Add basic error handling to prevent key errors on discovery exceptions. * Small key reference fix in GetSwitchbotDevices class. * Cleanup pointless error handling code. Co-authored-by: Daniel Hjelseth Høyer <mail@dahoiv.net>
1 parent 2fca8be commit 590b58a

File tree

2 files changed

+305
-123
lines changed

2 files changed

+305
-123
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name = 'PySwitchbot',
55
packages = ['switchbot'],
66
install_requires=['bluepy'],
7-
version = '0.10.1',
7+
version = '0.11.0',
88
description = 'A library to communicate with Switchbot',
99
author='Daniel Hjelseth Hoyer',
1010
url='https://github.com/Danielhiversen/pySwitchbot/',

0 commit comments

Comments
 (0)