Skip to content

Instantly share code, notes, and snippets.

View pmarki's full-sized avatar

Piotr Markiewicz pmarki

View GitHub Profile
@pmarki
pmarki / shelly_blu_rc4_cover_control.js
Created May 13, 2026 12:49
Shelly BLU RC4 Button → Cover control on Shelly Plus2PM
/**
* BLU RC4 Button → Cover control (Shelly Plus2PM Gen3)
*
* SETUP:
* 1. Set DEVICE_MAC to your RC4's MAC address (find it in the Shelly app,
* Bluetooth devices list — lowercase, colons).
* 2. Set COVER_ID to the cover channel you want to control (0 or 1).
* 3. Upload this script to the Plus2PM, enable it, and make sure
* Bluetooth is enabled in the device settings.
*