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

It's possible to listen to an RF Bridge triggers? #5

Closed
andres934 opened this issue Jul 18, 2019 · 6 comments
Closed

It's possible to listen to an RF Bridge triggers? #5

andres934 opened this issue Jul 18, 2019 · 6 comments
Labels
question Further information is requested

Comments

@andres934
Copy link

I see the library can check Devices and change the state of them, but could be or it's possible to listen to an RF Bridge triggers? that would be definetly a game changer because it's not possible not event with IFTTT

@andres934
Copy link
Author

After researching a little bit, i notice that the way this library is communicating with itead server is using a path, i found that there is a path for every type of device, so maybe using the path to a certain RF Bridge(Before getting the id of the device) it could be possible to listen to triggers registering a EventEmitter on that path so when there is a change it will notify, just giving some ideas because listening to RF Bridge without flashing is definetly a game changer

@frborda
Copy link

frborda commented Aug 6, 2019

+1

@skydiver
Copy link
Owner

Hello @andres934

One of the difficulties of this project is we need access to specific devices (sadly i have access to a few generic ones).

So, i think if this is possible, must be performed by someone with access to a RF Bridge device.

@andres934
Copy link
Author

Hello @andres934

One of the difficulties of this project is we need access to specific devices (sadly i have access to a few generic ones).

So, i think if this is possible, must be performed by someone with access to a RF Bridge device.

i understand, just consider the implementation with a RF Bridge in the future, because for sure, it will be a game changer, that single device is so important and is a complete headache to use it, the functionality it's too limited

@skydiver
Copy link
Owner

@andres934 & @frborda

Version 1.6.0 includes a new method called openWebSocket which can be used to listen to realtime events.

Not sure if is the feature you where looking, but you can check the docs for more info.

https://ewelink-api.now.sh/docs/available-methods/openwebsocket

@skydiver skydiver added the question Further information is requested label Sep 20, 2019
@skydiver skydiver closed this as completed Oct 1, 2019
@thorito
Copy link

thorito commented Nov 7, 2019

Do open sockets have a defined timeout?

After a time in execution, it stops receiving events, some idea ?

Note: I'm using version 1.8.0

Thank you

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

No branches or pull requests

4 participants