1ecbaf2c7f
* Rawframe edit: * - TESTED ON WLED VS.0.10.1 - WHERE ONLY PRESET 16 SAVES SEGMENTS - some macros may not be needed if this changes. * - Code has been modified as my usage changed, as such it has poor use of functions vs if thens, but feel free to change it for me :) * * Edited to SWITCH between two lighting scenes/modes : STANDBY and HIGHLIGHT * * Usage: * - Standby is the default mode and Highlight is activated when the PIR detects activity. * - PIR delay now set to same value as Nightlight feature on boot but otherwise controlled as normal. * - Standby and Highlight brightness can be set on the fly (default values set on boot via macros calling presets). * - Macros are used to set Standby and Highlight states (macros can load saved presets etc). * * - Macro short button press = Highlight state default (used on boot only and sets default brightness). * - Macro double button press = Standby state default (used on boot only and sets default brightness). * - Macro long button press = Highlight state (after boot). * - Macro 16 = Standby state (after boot). * * ! It is advised not to set 'Apply preset at boot' or a boot macro (that activates a preset) as we will call our own macros on boot. * * - When the strip is off before PIR activates the strip will return to off for Standby mode, and vice versa. * - When the strip is turned off while in Highlight mode, it will return to standby mode. (This behaviour could be changed easily if for some reason you wanted the lights to go out when the pir is activated). * - Macros can be chained so you could do almost anything, such as have standby mode also turn on the nightlight function with a new time delay. * * Segment Notes: * - It's easier to save the segment selections in preset than apply via macro while we a limited to preset 16. (Ie, instead of selecting sections at the point of activating standby/highlight modes). * - Because only preset 16 saves segments, for now we are having to use additional macros to control segments where they are involved. Macros can be chained so this works but it would be better if macros also accepted json-api commands. (Testing http api segment behaviour of SS with SB left me a little confused). * * Future: * - Maybe a second timer/timetable that turns on/off standby mode also after set inactivity period / date & times. For now this can be achieved others ways so may not be worth eating more processing power. |
||
---|---|---|
.. | ||
battery_keypad_controller | ||
blynk_relay_control | ||
Enclosure_with_OLED_temp_ESP07 | ||
ESP32_TouchBrightnessControl | ||
EXAMPLE_v2 | ||
Fix_unreachable_netservices_v2 | ||
Fix_unreachable_webserver | ||
mpu6050_imu | ||
photoresistor_sensor_mqtt_v1 | ||
PIR_sensor_mqtt_v1 | ||
PIR_sensor_switch | ||
project_cars_shiftlight | ||
QuinLED_Dig_Uno_Temp_MQTT | ||
rotary_encoder_change_brightness | ||
rotary_encoder_change_effect | ||
ssd1306_i2c_oled_u8g2 | ||
stairway_wipe_basic | ||
Temperature | ||
TTGO-T-Display | ||
UserModv2_SunRiseAndSet | ||
Wemos_D1_mini+Wemos32_mini_shield | ||
word-clock-matrix | ||
readme.md |
Usermods
This folder serves as a repository for usermods (custom usermod.cpp
files)!
If you have created an usermod that you believe is useful (for example to support a particular sensor, display, feature...), feel free to contribute by opening a pull request!
In order for other people to be able to have fun with your usermod, please keep these points in mind:
- Create a folder in this folder with a descriptive name (for example
usermod_ds18b20_temp_sensor_mqtt
) - Include your custom files
- If your usermod requires changes to other WLED files, please write a
readme.md
outlining the steps one has to take to use the usermod - Create a pull request!
- If your feature is useful for the majority of WLED users, I will consider adding it to the base code!
While I do my best to not break too much, keep in mind that as WLED is being updated, usermods might break.
I am not actively maintaining any usermod in this directory, that is your responsibility as the creator of the usermod.
For new usermods, I would recommend trying out the new v2 usermod API, which allows installing multiple usermods at once and new functions!
You can take a look at EXAMPLE_v2
for some documentation and at Temperature
for a completed v2 usermod!
Thank you for your help :)