Repository navigation
RF433 json usermod - #4234
RF433 json usermod#4234
Conversation
|
Thank you. |
|
This looks like a great addition. Did you test it to work on all ESP variants? A few suggestions:
|
Tested on esp32, c3 and esp8266
How can that be done? Believe it's all of them anyway
No problem to just put one in the folder? |
|
not sure how to restrict pins but I think AR usermod does it, maybe look at others for examples but I have seen UMs where unusable pins are red. In the deep-sleep usermod I just create a list but there I do not use 'pin' because already used pins can be repurposed, so not going through pinmanager. yea, I would just put the example json in the usermod folder, easier to find than going through KB and download an IR remote file. |
|
FYI you cannot restrict GPIO in usermods. Not yet. |
|
I looked around and at least for ESP32, S3 and 8266 all pins can be used as interrupts so there should not be any restriction. |
Move doc to separate readme Add sample config Fix missing json handling
|
There, hopefully that's fine... I changed the default_env in |
|
will do |
# Conflicts: # platformio_override.sample.ini # wled00/const.h # wled00/usermods_list.cpp
908557d to
db13136
Compare
* RF433 remote usermod
| mySwitch.disableReceive(); | ||
| if (modEnabled) | ||
| { | ||
| mySwitch.enableReceive(receivePin); |
There was a problem hiding this comment.
the receivePin is not allocated through the pin manager, meaning it can also be assigned to other functions.
@kilrah I don't think that is intentional?
There was a problem hiding this comment.
@DedeHai The pin selection uses it so it is blocked in the GUI, are we supposed to expect that not to be enough?
* RF433 remote usermod --------- Co-authored-by: Kilrah <kilrah@kilrah.xyz>


Inspired by https://github.com/athom-tech/Sound-Reactive-WLED/tree/master/usermods/RF433
Modified to handle similar cases as other remote methods through json
Usermod for controlling WLED using a generic 433 / 315MHz remote and simple 3-pin receiver
See https://github.com/sui77/rc-switch/ for details
Build:
- Enable by defining USERMOD_RF433 in my_config.h
- Uncomment "sui77/rc-switch @ 2.6.4" in platformio.ini default env lib_deps section
Usage:
- Connect receiver to an interrupt-capable pin
- Set pin in Config->Usermods
- Info pane will show the last received button code
- See https://kno.wled.ge/interfaces/json-ir/json_infrared/ as reference to create a "remote433.json" file
and upload it to the ESP in http://ip/edit, the key for the actions is the button number retrieved from above.