Skip to content

Instantly share code, notes, and snippets.

@venom157
venom157 / shelly_smart_bulb_control.js
Last active October 11, 2025 13:29 — forked from camerongray1515/shelly_smart_bulb_control.js
Shelly Smart Bulb Control with Fallback
// Shelly 1 Mini Gen3 script
// Input: detached switch (input:0)
// Relay: switch:0
// Virtual boolean: id=200 ("Confirm")
// Changes compared to original: Compatibility with gen3,
// script now considers the switch input state and handles it accordingly,
// improve robustness against toggling switch multiple time in succession.
let SW_INPUT = 0;