python-switchbot
python-switchbot copied to clipboard
RuntimeError: An error occurred: Cannot read properties of undefined (reading '0')
Hey! First of all, thank you very much for the great module.
Following the steps from the description, I'm able to enumerate the available devices, connect to one and the only Bot I have and print its status (which is {'device_id': '...', 'device_type': 'bot'}
). However, when I try to activate it via calling the device.press()
or device.command('press')
or device.toggle()
, I get the aforementioned error.
Does anyone know what the error mean?