n4ts / ha-notione

This device tracker uses unofficial API to get data from web.notione.com
Apache License 2.0
7 stars 1 forks source link

Batery status #4

Open kozlik07 opened 1 year ago

kozlik07 commented 1 year ago

hello, is it possible to read the battery value in percent from the notione GPS plus sensor because it only downloads the high or low value, with high being discharged and low the battery is charged can you do something about it and this sensor also has a built-in motion sensor can you download the status of this sensor?

n4ts commented 9 months ago

@kozlik07 I think I can add this attribute. Can you send me the content of the endpoint response: https://api.notinote.me/secured/internal/devicelist ? You can obfuscate sensitive data if you want.

kozlik07 commented 9 months ago

I don't have access to this website Odmowa dostępu do api.notinote.me

Nie masz uprawnień do wyświetlania tej strony.

czw., 16 lis 2023 o 12:19 Stan @.***> napisał(a):

@kozlik07 https://github.com/kozlik07 I think I can add this attribute. Can you send me the content of the endpoint response: https://api.notinote.me/secured/internal/devicelist ? You can obfuscate sensitive data if you want.

— Reply to this email directly, view it on GitHub https://github.com/n4ts/ha-notione/issues/4#issuecomment-1814249567, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK3SB7RBJYGR7Y5ZBKTH24DYEXZFRAVCNFSM6AAAAAAZOGHWCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUGI2DSNJWG4 . You are receiving this because you were mentioned.Message ID: @.***>

n4ts commented 9 months ago

@kozlik07 You have access to this endpoint after logging in to the NotiOne portal and entering the developer console in a web browser (CTRL + SHIFT + I).

kozlik07 commented 9 months ago

I opened the developer console and I still don't know what to do, where should I enter https://api.notinote.me/secured/internal/devicelist?

czw., 16 lis 2023 o 14:14 Stan @.***> napisał(a):

@kozlik07 https://github.com/kozlik07 You have access to this endpoint after logging in to the NotiOne portal and entering the developer console in a web browser (CTRL + SHIFT + I).

— Reply to this email directly, view it on GitHub https://github.com/n4ts/ha-notione/issues/4#issuecomment-1814415486, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK3SB7QMCPCARU6CDV4Q6GLYEYGTXAVCNFSM6AAAAAAZOGHWCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUGQYTKNBYGY . You are receiving this because you were mentioned.Message ID: @.***>

seler commented 9 months ago

@kozlik07 open web console, switch to network tab, then go to the website where you can see the battery status for that device, you should see an entry appearing in the console for given url, click on it and copy the response here.

kozlik07 commented 9 months ago

You can't check the battery charge level via the website, only in the mobile application

pt., 17 lis 2023 o 17:23 Rafał Selewońko @.***> napisał(a):

@kozlik07 https://github.com/kozlik07 open web console, switch to network tab, then go to the website where you can see the battery status for that device, you should see an entry appearing in the console for given url, click on it and copy the response here.

— Reply to this email directly, view it on GitHub https://github.com/n4ts/ha-notione/issues/4#issuecomment-1816720063, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK3SB7SWMP6B5HTH2IYLXXDYE6FR5AVCNFSM6AAAAAAZOGHWCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJWG4ZDAMBWGM . You are receiving this because you were mentioned.Message ID: @.***>

kozlik07 commented 9 months ago

if you can't get the percentage, can you change the values because in devices with GPS, HomeAssistant displays when the battery is full, low, and when the battery is discharged, high is replaced?

however, it works properly in Bluetooth devices

sob., 18 lis 2023 o 09:52 Grzegorz Tarłowski @.***> napisał(a):

You can't check the battery charge level via the website, only in the mobile application

pt., 17 lis 2023 o 17:23 Rafał Selewońko @.***> napisał(a):

@kozlik07 https://github.com/kozlik07 open web console, switch to network tab, then go to the website where you can see the battery status for that device, you should see an entry appearing in the console for given url, click on it and copy the response here.

— Reply to this email directly, view it on GitHub https://github.com/n4ts/ha-notione/issues/4#issuecomment-1816720063, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK3SB7SWMP6B5HTH2IYLXXDYE6FR5AVCNFSM6AAAAAAZOGHWCCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJWG4ZDAMBWGM . You are receiving this because you were mentioned.Message ID: @.***>

n4ts commented 9 months ago

After entering the development console, you must select the Network tab in the window and then search for "devicelist" on the list: image Please send me the "Response" (Odpowiedź) which is returned in JSON format on the right side of the panel.

kozlik07 commented 5 months ago

{ "totalCount": 5, "deviceList": [ { "deviceId": 8838, "deviceVersion": "TUBE", "deviceType": "GPS", "name": "kia sportage", "lastPosition": { "gpstime": 1711529877000, "longitude": 18.00000000000, "latitude": 50.000000000000, "temperature": 20, "humidity": 70, "accelerometerStatusEnum": "STATIONARY", "gpsOrientationEnum": "HORIZONTAL", "accuracy": 0, "speed": 0, "geocodeCity": "Katowice", "geocodePlace": "nazwa ulicy", "gpsSnr": 22 }, "deviceState": "ONLINE", "avatar": "https://notione-avatars-bucket.s3-eu-west-1.amazonaws.com/!avatars/Xa78FdK1XG985ZWGckpG1qPHxWydQM_1710582447957", "ownership": "OWNED", "ownerEmail": null, "wanted": false, "foundMessage": null, "notiOneDetails": null, "gpsDetails": { "battery": 100, "imei": 6324098090, "serialNumber": 15694, "firmwareVersion": "1.5.0.2", "drawingType": "ROUTE", "subscription": { "deviceId": 8838, "startDate": "2023-03-21T09:19:51.000+00:00", "endDate": "2123-03-21T09:19:51.000+00:00", "subscriptionExpiration": 4835063991000, "status": true, "subscriptionType": "PLUS_LIFETIME", "expired": false }, "etollEnabled": true, "extendedHistory": false, "etollServiceStatus": "STOP", "gpsFeatures": { "allowLiveMode": false, "allowTimeline": true } }, "sharedDetailsList": [ { "email": "jakismail@gmail.com", "accepted": false } ], "lastPairedTime": "2023-03-22T11:18:12.887+00:00", "samplesHistoryLimit": { "historyDaysLimit": 90, "historyDaysMaxLimit": 90 }, "sharedAccepted": false },

    }
]

}

kozlik07 commented 5 months ago

I managed to get this data, now I'm smarter :)

Can you add the data I wrote below so that it can be downloaded from Notione GPS Plus?

"temperature": 20, "humidity": 70, "accelerometerStatusEnum": "STATIONARY", "gpsOrientationEnum": "HORIZONTAL", "accuracy": 0, "speed": 0, "geocodeCity": "Katowice", "geocodePlace": "nazwa ulicy", "gpsSnr": 22 }, "deviceState": "ONLINE", "ownership": "OWNED", "ownerEmail": null, "wanted": false, "foundMessage": null, "notiOneDetails": null, "gpsDetails": { "battery": 100,