breitburg / python-am43

AM43 blinds motor protocol library
https://pypi.org/project/am43/
GNU General Public License v3.0
7 stars 3 forks source link

List index out of range #4

Closed ostgardh closed 3 years ago

ostgardh commented 3 years ago

I have try this code, but I get always list index out of range.

My code is:

import am43

blind = am43.search('02:30:F4:98:89:77')  # Returns single blind
blind.set_position(percentage=30)  # Sets blinds position
breitburg commented 3 years ago

Hey! Can you please provide full traceback. Looks like you have issue with the bluepy library.

breitburg commented 3 years ago

List index out of range means that there is no blinds were discovered with the specified address. I guess that this is a hardware problem or wrong address.