Repository navigation
v1.2.4 - Add Update Location and Power Off button
v1.2.4
- Added function to update location and turn the device off. (tested and working fine)
Note 1:
When the integration is added for the first time, Home Assistant marks the buttons as potentially dangerous. As a safety measure, the device needs to be disabled and then re-enabled once. This only needs to be done the first time (not after an integration update). I tried to force-enable it from within the integration, but was unsuccessful in implementing that.
Note 2:
Using the Update Location button should only be pressed once max every 2 minutes. It can take up to 1 or 2 minutes (just like in the official app) to have the information forcefully refreshed.
Note 3:
API calls are changed from 30 second polling to 60 second polling. This is done to not overload the One2track servers.