Ludy87 / xplora_watch

Xplora® Watch Home Assistant Integration
MIT License
49 stars 6 forks source link

[🐛 BUG] "Xplora server not responding" error some days after installation #50

Closed Enkil666 closed 1 year ago

Enkil666 commented 1 year ago

System Health details

System Information

version core-2022.8.3
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.5
os_name Linux
os_version 5.10.0-0.bpo.15-arm64
arch aarch64
timezone Europe/Stockholm
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | pending GitHub API Calls Remaining | 4831 Installed Version | 1.26.2 Stage | running Available Repositories | 1120 Downloaded Repositories | 27
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | pending
Home Assistant Supervisor host_os | Debian GNU/Linux 10 (buster) -- | -- update_channel | stable supervisor_version | supervisor-2022.08.6 agent_version | null docker_version | 20.10.17 disk_total | 58.3 GB disk_used | 23.5 GB healthy | true supported | failed to load: Unsupported supervisor_api | ok version_api | ok installed_addons | File editor (5.3.3), Samba share (10.0.0), SSH & Web Terminal (12.0.1), Duck DNS (1.15.0), Eufy Home Assistant MQTT Bridge (1.24.0), Mosquitto broker (6.1.2), MariaDB (2.4.0), phpMyAdmin (0.8.0), SONOS AudioClip TTS (2.0.3), Node-RED (12.0.2)
Dashboards dashboards | 4 -- | -- resources | 28 views | 4 mode | yaml
Recorder oldest_recorder_run | 5 September 2022, 07:09 -- | -- current_recorder_run | 10 September 2022, 12:14 estimated_db_size | 279.21 MiB database_engine | sqlite database_version | 3.38.5
Spotify api_endpoint_reachable | pending -- | --

Checklist

Describe the issue

Hi, trying to reach out here as well as a last resort.

I've been struggling with the xplora integration since July when we first got the watch. Setting up and installing the integration worked perfect, but after a couple of days we (on both mine and my wifes phone) couldn't get into the xplora app in order to add new contacts, respond to text messages etc. We were met at the login with the message "Xplora server not responding." And in Home Assistant it also gives errors and is not working:

This error originated from a custom integration.

Logger: custom_components.xplora_watch.binary_sensor Source: custom_components/xplora_watch/binary_sensor.py:175 Integration: Xplora® Watch (documentation, issues) First occurred: 07:37:42 (13 occurrences) Last logged: 08:23:02

Login to Xplora® API failed. Check your input! Server error. Login to Xplora® API failed. Check your input! Failed. Login to Xplora® API failed. Check your input! Authentication failed.

I first thought the issue was at xploras end, so I've been having a lot of communications with their support - which led to nothing (it did seem they were familiar with HA.) However, after disabling the xplora integration in Home Assistant the xplora app started working again after a couple of days. After reinstalling the integration again in HA, a couple of days went by with both the integration/app working perfect - but then we're again met with the same error message in the xplora app and errors in Home Assistant. Rinse and repeat 3-4 times again with same results.

And now I've had the integration disabled for about 1 month and the app has worked without issues. And this Monday I again installed the integration - and yes, the errors are back. I'm using the minimal configuration at the moment and are using the child phonenumber, as a seperate account, to login (the workaround to avoid getting logged out from the app on my phone)

So I'm wondering if the xplora server is temporary banning our account because the integration is sending too much requests or something? This is something I couldn't get a reply from the xplora support.

Reproduction steps

  1. Install xplora integration in HA
  2. Works fine for a couple of days
  3. After a couple of days I'm getting login errors in log and can't use the integration or the xplora app ...

Debug logs

2022-09-14 08:49:12.349 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration xplora_watch which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2022-09-14 08:49:42.051 DEBUG (MainThread) [custom_components.xplora_watch] init Xplora® Watch
2022-09-14 08:49:42.051 DEBUG (MainThread) [custom_components.xplora_watch] set Entity-Types: ['charging', 'safezone', 'state', 'dt_watch', 'battery', 'step_day', 'xcoin', 'alarms', 'silents']
2022-09-14 08:49:42.051 DEBUG (MainThread) [custom_components.xplora_watch] init API-Controller from Library
2022-09-14 08:49:42.051 DEBUG (MainThread) [custom_components.xplora_watch] Xplora® Api-Library Version: 2.0.117-1267
2022-09-14 08:49:42.965 DEBUG (MainThread) [custom_components.xplora_watch] Xplora® Watch IDs: ['********']
2022-09-14 08:49:42.965 DEBUG (MainThread) [custom_components.xplora_watch] set Update interval Sensors: 0:03:00
2022-09-14 08:49:42.965 DEBUG (MainThread) [custom_components.xplora_watch] set Update interval Tracker: 0:01:00
2022-09-14 08:49:43.076 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] set Tracker
2022-09-14 08:49:43.076 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] set WatchScanner
2022-09-14 08:49:43.076 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] set async_init
2022-09-14 08:49:43.076 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] xplora_tracker_switch
2022-09-14 08:49:43.100 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] set Binary Sensor: charging
2022-09-14 08:49:43.100 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] set Binary Sensor: safezone
2022-09-14 08:49:43.100 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] set Binary Sensor: state
2022-09-14 08:49:43.101 DEBUG (MainThread) [custom_components.xplora_watch.sensor] set Sensor: battery
2022-09-14 08:49:43.101 DEBUG (MainThread) [custom_components.xplora_watch.sensor] set Sensor: step_day
2022-09-14 08:49:43.101 DEBUG (MainThread) [custom_components.xplora_watch.sensor] set Sensor: xcoin
2022-09-14 08:49:43.159 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Zoey Watch Xcoin ******** | XCoins: 291
2022-09-14 08:49:43.418 DEBUG (MainThread) [custom_components.xplora_watch.entity] init switch silent Zoey Watch Silent 08:00-15:30 ********
2022-09-14 08:49:43.421 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] Updating sensor: Zoey Watch State ******** | State: True
2022-09-14 08:49:43.459 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Zoey Watch Step_Day ******** | Step per Day: 0
2022-09-14 08:49:43.613 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] Updating device data ********
2022-09-14 08:49:43.615 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] Updating sensor: Zoey Watch Charging ******** | State: False
2022-09-14 08:49:43.628 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] Updating sensor: Zoey Watch Safezone ******** | State: True
2022-09-14 08:49:45.506 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Zoey Watch Battery 01103B2C452F5F5F775F5F6869057979 | Battery: 100 | Charging False
2022-09-14 08:49:45.678 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] load address from openstreetmapData © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright ********
2022-09-14 08:50:45.869 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] xplora_tracker_switch
2022-09-14 08:50:46.195 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] Updating device data ********
2022-09-14 08:50:46.583 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] load address from openstreetmapData © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright ********
2022-09-14 08:51:55.875 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] xplora_tracker_switch
2022-09-14 08:51:56.233 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] Updating device data ********
2022-09-14 08:51:56.630 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] load address from openstreetmapData © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright ********
2022-09-14 08:52:45.517 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Zoey Watch Xcoin ******** | XCoins: 291
2022-09-14 08:52:45.720 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Zoey Watch Step_Day ******** | Step per Day: 0
2022-09-14 08:52:46.252 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Zoey Watch Battery ******** | Battery: 100 | Charging False
2022-09-14 08:53:05.881 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] xplora_tracker_switch
2022-09-14 08:53:06.250 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] Updating device data ********
2022-09-14 08:53:06.970 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] load address from openstreetmapData © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright ********
2022-09-14 08:53:13.782 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] Updating sensor: Zoey Watch State ******** | State: True
2022-09-14 08:53:13.979 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] Updating sensor: Zoey Watch Charging ******** | State: False
2022-09-14 08:53:14.033 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] Updating sensor: Zoey Watch Safezone ******** | State: True
2022-09-14 08:54:15.891 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] xplora_tracker_switch
2022-09-14 08:54:16.228 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] Updating device data ********
2022-09-14 08:54:16.658 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] load address from openstreetmapData © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright ********
2022-09-14 08:55:25.901 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] xplora_tracker_switch
2022-09-14 08:55:26.268 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] Updating device data ********
2022-09-14 08:55:26.681 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] load address from openstreetmapData © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright ********
2022-09-14 08:56:15.525 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Zoey Watch Xcoin ******** | XCoins: 291
2022-09-14 08:56:15.690 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Zoey Watch Step_Day ******** | Step per Day: 0
2022-09-14 08:56:16.226 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Zoey Watch Battery ******** | Battery: 100 | Charging False
2022-09-14 08:56:35.918 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] xplora_tracker_switch
2022-09-14 08:56:36.271 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] Updating device data ********
2022-09-14 08:56:36.713 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] load address from openstreetmapData © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright ********
2022-09-14 08:56:43.789 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] Updating sensor: Zoey Watch State ******** | State: True
2022-09-14 08:56:43.944 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] Updating sensor: Zoey Watch Charging ******** | State: False
2022-09-14 08:56:43.966 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] Updating sensor: Zoey Watch Safezone ******** | State: True
2022-09-14 08:57:45.926 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] xplora_tracker_switch
2022-09-14 08:57:46.293 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] Updating device data ******** 
2022-09-14 08:57:46.689 DEBUG (MainThread) [custom_components.xplora_watch.device_tracker] load address from openstreetmapData © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright ********
Enkil666 commented 1 year ago

Thanks for the all the great work you're putting into this integration @Ludy87 !

I installed version 2 and at first it worked great, but now we're again met with the same error message while trying to use the xplora app ("Unknown network error. Server was not responding. Please try again later")

Do you think it could have something to do with the "Scan interval" setting? I just left it on the standard 180, but perhaps I need to increase it? It's however hard to experiment at the moment since we're locked out from the app, and it will be like that for a couple of days after disabling the integration if it behaves like previous times.

Ludy87 commented 1 year ago

You will not be excluded, you will only be logged out. You can log into the app at any time. "Unknown network error. Server was not responding. Please try again later" It's a problem with Xplora, I don't think adjusting the scan intervals would improve it.

@henkehedin Please open a new issues