WLED/usermods/RelayBlinds
Christophe Gagnier 51dfa9a247 Implement front-end strategy to prevent caching
By adding a random string to the path of the js file every time, we make sure to never hit the browser cache.
2023-11-08 23:45:48 -05:00
..
index.htm Implement front-end strategy to prevent caching 2023-11-08 23:45:48 -05:00
presets.json Add old blinds usermod 2022-03-11 09:20:01 +01:00
readme.md Spelling check by @wthomson (#2940) 2022-12-10 16:12:55 +01:00
usermod.cpp Add old blinds usermod 2022-03-11 09:20:01 +01:00

RelayBlinds usermod

This simple usermod toggles two relay pins momentarily (defaults to 500ms) when userVar0 is set.
e.g. can be used to "push" the buttons of a window blinds motor controller.

v1 usermod. Please replace usermod.cpp in the wled00 directory with the one in this file. You may upload index.htm to [WLED-IP]/edit to replace the default lighting UI with a simple Up/Down button one.
A simple presets.json file is available. This makes the relay actions controllable via two presets to facilitate control e.g. the default UI or Alexa.