node-red-contrib-am43

0.2.0 • Public • Published

node-red-contrib-am43

This Node-Red module contains single "AM43" node that controls AM43-based blinds motor using Bluetooth 4 compatible adapter.

Installation

This module requires noble library. It will be installed automatically but in case of any problems you can try to install it manually using corresponding instructions.

To install this module use Node-Red GUI installer or console command:

npm install node-red-contrib-am43

Usage

Configuration: AM43 node needs only bluetooth address of devices (optional, if it's omitted then an incoming message should have address property)

Input message: sends command to the device. Every input message should have payload property with command to execute.
Supported commands are:

  • open - opens blinds (0%)
  • close - closes blinds(100%)
  • stop - stops current action if any
  • number - number in percents to open blinds

Optional parameters:

  • address - override address of the device from configuration.
  • scan - re-lookup for the device even if it was already found before.

If address configuration parameter is not specified then input message should have address property.
Node tries to connect to the device with the first received message.

Output message: Output message could contain next fields:

  • state - blinds state (OPEN/CLOSE)
  • position - blinds position in percents
  • battery - battery level in percents
  • light - brightness in percents (if sensor is connected, 0 otherwise)

Linux

On Linux bluetooth adapter could be used by root user only.

To run node-red without root/sudo use instructions from noble

Version history

0.1.0 Test release

Package Sidebar

Install

npm i node-red-contrib-am43

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

9.69 kB

Total Files

5

Last publish

Collaborators

  • eschava