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

Increase number of switches in RF bridge #1407

Closed
prof0021 opened this issue Dec 9, 2018 · 5 comments
Closed

Increase number of switches in RF bridge #1407

prof0021 opened this issue Dec 9, 2018 · 5 comments

Comments

@prof0021
Copy link

prof0021 commented Dec 9, 2018

It is not a issue. It is a request. I like espurna and use it in many of my things. However I have seen that tasmota allows to support unlimited number of RF codes by direct resending of the RF codes to mqtt. So it is not needed to configure every RF code in RF bridge. It could be done for example in home assistant. Is it possible to have in also in espurna?

@xoseperez
Copy link
Owner

You already can do that, simply send the codes to <root_topic>/rfout, like:

mosquitto_pub -t rfbridge/rfout -m 2C56010403F2440014

@LukasAV
Copy link

LukasAV commented Dec 27, 2018

How to send codes via the HTTP API instead of MQTT? I could not find a documented method.

@xoseperez
Copy link
Owner

There are no API entry points for the RF Bridge. That's a shame. I'm adding it to this milestone since most of the code is there, it's only a matter or wiring it.

@xoseperez xoseperez added this to the 1.13.4 milestone Dec 27, 2018
@xoseperez xoseperez added the api label Dec 27, 2018
@LukasAV
Copy link

LukasAV commented Dec 27, 2018

Thank you very much. I already looked into it but sadly this is above my programming knowledge. I will be looking forward to 1.13.4.

@xoseperez
Copy link
Owner

xoseperez commented Jan 4, 2019

Added it to the latest dev. It should actually be RPC but anyway here is the API:

To send a custom RF code:

curl "http://192.168.1.150/api/rfout?apikey=001122334455667788&value=2DA0017C046AB2A814"

To start learning a code (for switch #1, action ON):

curl "http://192.168.1.150/api/rflearn?apikey=001122334455667788&value=1,1"

To start learning a code (for switch #1, action OFF):

curl "http://192.168.1.150/api/rflearn?apikey=001122334455667788&value=1,0"

Of course, these commands will work as GET if "Restful API" check is disabled in web UI, otherwise, they should be issued as POSTs.

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

No branches or pull requests

3 participants