OpenWonderLabs / python-host

The python code running on Raspberry Pi or other Linux based boards to control SwitchBot.
Apache License 2.0
376 stars 84 forks source link

RuntimeError: Characteristic value/descriptor operation failed: Invalid handle #19

Open r3-yamauchi opened 3 years ago

r3-yamauchi commented 3 years ago

Ubuntu 18.04

` $ sudo python3 switchbot_py3.py --device C7:96:B8:○○:○○:○○ Connected! Traceback (most recent call last): File "switchbot_py3.py", line 109, in main() File "switchbot_py3.py", line 104, in main driver.run_command('press') File "switchbot_py3.py", line 56, in run_command return self.req.write_by_handle(self.handle, self.commands[command]) RuntimeError: Characteristic value/descriptor operation failed: Invalid handle

$ sudo python3 switchbot_py3.py --device C7:96:B8:○○:○○:○○ Humiture Connected! Traceback (most recent call last): File "switchbot_py3.py", line 109, in main() File "switchbot_py3.py", line 104, in main driver.run_command('press') File "switchbot_py3.py", line 56, in run_command return self.req.write_by_handle(self.handle, self.commands[command]) RuntimeError: Characteristic value/descriptor operation failed: Invalid handle `

SwitchBot-Wonderlabs commented 3 years ago

switchbot_py3.py does not support meter now, we will add it later. Type python3 switchbot_py3.py --help for usage tips.