node-red-contrib-soma-smartblinds2 0.2.1

NodeRed node for Soma smart blinds 2.

npm install node-red-contrib-soma-smartblinds2

NodeRed node for Soma Smart Blinds 2

What is this node ?

This is a node for Node-Red to control Soma smart blinds 2 via Bluetooth (BLE) directly. No bridge or additional hardware/software is necessary.

It is heavily based on the work by @andersonshatch , https://github.com/andersonshatch/soma-ctrl

The SOMA smart shade device needs to be configured with the SOMA app before connecting.

Configuration

Scan for the devices with the scan button. Look for devices with the name S or RISE to identify the id.

Usage

The Node will connect and receive status messages like position, battery or connection

Commands

The Node accepts the following commmands;

  • moveto (0-100)
  • moveup
  • movedown
  • stop
  • getposition
  • identify

Position

The device will try to move to the exact position but will stop at approximation. Position will be correctly reported.

Bluetooth

  • Compatible Bluetooth 5.0 Zephyr HCI-USB adapter (you need to add BLUETOOTH_HCI_SOCKET_USB_VID and BLUETOOTH_HCI_SOCKET_USB_PID to the process env)
  • Compatible Bluetooth 4.0 USB adapter

Distance is important. Make sure the bluetooth signal is strong enough.

Running without root/sudo (Linux-specific, not always necessary).

Run the following command:

sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
This grants the node binary cap_net_raw privileges, so it can start/stop BLE advertising.

Note: The above command requires setcap to be installed. It can be installed the following way:

  • apt: sudo apt-get install libcap2-bin
  • yum: su -c 'yum install libcap2-bin'

Node Info

Version: 0.2.1
Updated 1 month, 3 weeks ago
License: MIT
Rating: not yet rated

Actions

Rate:

Downloads

7 in the last week

Nodes

  • soma-smartblinds2

Keywords

  • node-red
  • soma
  • smart blinds

Maintainers