Open433
Open433 copied to clipboard
Support custom protocols
First of all, I want to thank you for your work. I looked for days at different options, and nothing worked until I found your project. I had to make a few customization to the code, for which I will now open new issues/PRs.
rc-switch supports custom protocols that can be set as follows:
static const RCSwitch::Protocol customprotocol = { 296, { 17, 2 }, { 1, 2 }, { 2 , 1 }, false };
switch.setProtocol(customprotocol);
It would be nice if such a custom protocol could be specified in the home assistant config as well.
Moreover, I think the pulse length is implemented in the home assistant component, but not on the arduino side.
Thanks for looking into this, I think you're right and I totally forgot to implement the pulse length on the Arduino side, for the custom protocol I think it's totally doable, it seems to be fixed size so not a big issue to add it to the send_decimal_packet_t struct receiving might me a bit more tricky, is there a way to listen to multiple protocol ?.
You're always welcome if you want to make PRs / issues
The custom protocol is only used for transmitting I think, or at least this should be the most-common use case. Documentation can be found here: https://github.com/sui77/rc-switch/wiki/Add_New_Remote_Part_1