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

[FeatureRequest] Run in transparent mode. #7

Open
tsyganov-ivan opened this issue Aug 12, 2022 · 1 comment
Open

[FeatureRequest] Run in transparent mode. #7

tsyganov-ivan opened this issue Aug 12, 2022 · 1 comment

Comments

@tsyganov-ivan
Copy link
Contributor

Hi! Thanks for a great job!
Everything is working well.

I've one idea and want to know the community's opinion.
What if on run pethublocal we will make a request to surepet cloud, receive credentials to their mqtt and make second connection to it. We can resend all messages from local queue to cloud queue and almost all messages from cloud to local queue.

Why I think this is a useful feature:

  • original app will be working (at least for a while)
  • push notification will continue working
  • it helps with analysis packages, which are not supported yet

Of course, this feature should be optional.
If the community will be interested in this feature I can do it by myself and send PR to the main repo.

As a second option I can make a small side-service for proxying packages from/to the cloud.

@plambrechtsen
Copy link
Contributor

I did look into the option of creating a client to connect to "the real cloud" but there are a few issues around managing the device counters and sending Home Assistant initiated requests to the hub / device incrementing the counters but then the real cloud sends an update using the same counter.

In regards to MITM the traffic, I documented that all here.
https://github.com/plambrechtsen/pethublocal/tree/main/PolarProxy
Will bring all the PolarProxy stuff over here.

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