Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

AM43 blinds motor protocol library

License

NotificationsYou must be signed in to change notification settings

breitburg/python-am43

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AM43 Blinds Motor protocol client implementation written in Python. Before using, please configure the blinds motor with the app on your phone. Credits toBas Bahlmann for the checksum calculation algorithm.

Warning
Only Linux is supported. Everything was tested on Raspberry Pi 4.
Blinds motor is available to buyhere for about $40.

Usage

To search for single blind useam43.search method:

importam43# Library importblind=am43.search('xx:xx:xx:xx:xx:xx')# Returns single blindblind.set_position(percentage=30)# Sets blinds position

To use multiple blinds, simply define the addresses in theam43.search method. It will return a list with a blinds:

blinds=am43.search('xx:xx:xx:xx:xx:xx','xx:xx:xx:xx:xx:xx','xx:xx:xx:xx:xx:xx')# Returns multiple blinds instances

You can stop the blinds usingBlind.stop method:

blind.stop()# Stops blinds

Also, you can access the motor properties:

properties=blind.get_properties()# Fetch current dataproperties.battery# 95 <int>properties.position# 100 <int>properties.light# 23 <int>

The light property will be zero if the sensor is not plugged in to the blind motor.

Installation

To install the latest version you can usepip by executing that command:

$ pip install am43

All the requirements will be installed automatically.

Requirements

Full list of all dependencies you can find insetup.py file:

  • bluepy >= 1.3.0
  • munch >= 2.5.0

And you need to have a Bluetooth module on your machine. On Raspberry Pi (>=3) it is already on the board.


[8]ページ先頭

©2009-2025 Movatter.jp