-
Notifications
You must be signed in to change notification settings - Fork 2
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
Device Tracker Improvemeents #22
Comments
Currently I get the accurate GPS (gnss) data from Battery level and model (for picture) cannot be determined via the current API approach. |
Thanks yes I noticed thoug the HA Tracker seems to respond home or away at least in my case it was that I was going to look at. Battery level would be nice, but for the Picture I believe I can maybe have a default and give the option to set on in the config, not sure yet :) |
I have checked the complete flow of the mobile app again. We can find the model via the Firebase API. However, from my point of view, the path is not worth it, since two other APIs have to be connected. In the first step, we authenticate against the Google API service with email address and password:
We get an JSON formatted response with important tokens:
Next step, we create a websocket connection to Firebase API
Authentication and get with this account connected lawn mowers:
Through this way we could do in config flow the authentication by email and password and get the IMEI of the robots this way. We would then also have the model. However, the path is also more fragile against changes to any of the API. I believe that we can also determine the model from the serial number that we get via the Devicewise API. In the example above, you can see that I have an L35 Deluxe and my serial number starts with AM035. However, I have too few robots (only one) to verify this. ;-) If we knew more, we could create a mapping. The mobile app only gets the battery level via bluetooth. We would have to sniff the bluetooth traffic for this. I have not opened this Pandora's box yet. |
Was sort of avoiding this as it just got an access key, however yes if we can get the connected mowers I can add this. I am going to look how to add you as a collaborator direct to my github repo. |
There is a command to trace position on the App, it initiates by this:
Returns command success true then tracks the mower regularly but I don't see any further pushes so wonder if it is then streaming the response. You can open the robot then the map then you get an option to Trace position. There is a cloud map feature with Infinity+ not tried to activate it yet, but I have just renewed my connection to Infinity+. |
I tried the command several times today when my mower was working. However, I could not see any regular sending of the location. I don't have Infinity+ (yet) I have implemented the command in the services. |
According to my first tests, the trace_position command works only when the robot is working. In the app, many requests are made to https://clients4.google.com/glm/mmap/api in "trace mode". It seems that the position changes with the displayed points come in directly via the Google Map update: Somehow on my Samsung Galaxy S5 test device the websocket connections bypass the MITM proxy, so I guess there is still traffic between the app and Firebase. |
Checklist
Is your feature request related to a problem? Please describe.
Device Tracker, can show battery level and icon/ picture, also location seems to be generic home or not home rather than more accurate based on GPS
Describe the solution you'd like
Add ability to add ICON/ Picture for each robot.
improve GPS Location
Add Battery Level
Improve General Device Information based on each robot (one robot one device)
Describe alternatives you've considered
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: