BI
binsentsu/python-am43
AM43 blinds motor protocol implementation for Python using Bluetooth
python-am43
AM43 blinds motor API implementation written on Python.
Warning
Library supports only Linux, and all features was tested on the Raspberry Pi 4 (4GB)
Usage
Code example:
import am43
blind = am43.Blind(address='xx:xx:xx:xx:xx:xx')
blind.set_position(percentage=20) # Sets blinds positionYou can stop the blinds using Blind.stop method:
blind.stop() # Stops blindsAlso, you can access the motor properties:
properties = blind.get_properties()
properties.battery # 95 <int>
properties.position # 100 <int>
properties.light # 23 <int>Light property will be always return zero if the sensor don't plugged into the blind motor.
Installation
To install the latest version you can use pip by executing that command:
$ pip install am43All requirements will be installed automatically.
Requirements
Full list of all dependencies you can find in setup.py file:
bluepy>= 1.3.0munch>= 2.5.0
And you need to have bluetooth module on your machine. On Raspberry Pi (>=3) one is already on the board.