Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom protocols #4

Open
tobiasdiez opened this issue Nov 5, 2020 · 2 comments
Open

Support custom protocols #4

tobiasdiez opened this issue Nov 5, 2020 · 2 comments

Comments

@tobiasdiez
Copy link
Contributor

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.

@TheStaticTurtle
Copy link
Owner

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

@tobiasdiez
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants