Ludy87 / xplora_watch

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

entity "watch charging" is never 'on' #418

Open djwafelap opened 6 months ago

djwafelap commented 6 months ago

What version of Integration has the issue?

2.13.9

System Health details

System Information

version core-2024.5.0
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.2
os_name Linux
os_version 6.6.25-haos
arch x86_64
timezone Europe/Berlin
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4788 Installed Version | 1.34.0 Stage | running Available Repositories | 1400 Downloaded Repositories | 29
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 12.2 -- | -- update_channel | stable supervisor_version | supervisor-2024.04.4 agent_version | 1.6.0 docker_version | 25.0.5 disk_total | 234.0 GB disk_used | 24.8 GB healthy | true supported | true board | generic-x86-64 supervisor_api | ok version_api | ok installed_addons | Advanced SSH & Web Terminal (17.2.0), File editor (5.8.0), Log Viewer (0.17.0), Mosquitto broker (6.4.0), Zigbee2MQTT (1.37.0-1), Samba share (12.3.1), InfluxDB (5.0.0), Grafana (9.2.2), SQLite Web (4.1.2), Cloudflared (5.1.9)
Dashboards dashboards | 8 -- | -- resources | 14 views | 37 mode | storage
Recorder oldest_recorder_run | 19. April 2024 um 21:21 -- | -- current_recorder_run | 3. Mai 2024 um 10:29 estimated_db_size | 1126.71 MiB database_engine | sqlite database_version | 3.44.2

Checklist

Describe the issue

The entity that displays the charging status of the watch never shows when the watch is charging. It's always 'off'.

image

However, when I connect the watch to the charger, the watch itself indicates that it is charging.

Reproduction steps

  1. Connecting watch with charging cable
  2. Waiting for Home Assistant to show that the watch is charging

Debug logs

2024-05-03 11:03:03.431 DEBUG (MainThread) [custom_components.xplora_watch] Set up the Xplora® Watch Version 2 component
2024-05-03 11:03:03.431 DEBUG (MainThread) [custom_components.xplora_watch] Configure based on config entry 2171525c4f0b5116798f472f5eb5eac3
2024-05-03 11:03:03.684 DEBUG (MainThread) [custom_components.xplora_watch] pyxplora_api lib version: 2.12.8-1298
2024-05-03 11:03:06.822 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch data from Xplora: 9596856
2024-05-03 11:03:09.223 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] load address from openstreetmap.org
2024-05-03 11:03:09.224 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Manually updated xplora_watch-800804 data
2024-05-03 11:03:09.224 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Finished fetching xplora_watch-800804 data in 5.540 seconds (success: True)
2024-05-03 11:03:10.492 DEBUG (MainThread) [custom_components.xplora_watch.helper] set services.yaml path: /config/custom_components/xplora_watch/services.yaml
2024-05-03 11:03:10.492 DEBUG (MainThread) [custom_components.xplora_watch.helper] services_de.json path: /config/custom_components/xplora_watch/jsons/service_de.json
2024-05-03 11:03:09.223 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] load address from openstreetmap.org
2024-05-03 11:03:09.224 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Manually updated xplora_watch-800804 data
2024-05-03 11:03:09.224 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Finished fetching xplora_watch-800804 data in 5.540 seconds (success: True)
2024-05-03 11:03:10.492 DEBUG (MainThread) [custom_components.xplora_watch.helper] set services.yaml path: /config/custom_components/xplora_watch/services.yaml
2024-05-03 11:03:10.492 DEBUG (MainThread) [custom_components.xplora_watch.helper] services_de.json path: /config/custom_components/xplora_watch/jsons/service_de.json
2024-05-03 11:03:10.513 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up xplora_watch.binary_sensor
2024-05-03 11:03:10.513 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] Updating binary_sensor: Viktor Watch Charging (Name of User) | Typ: charging | Watch_ID ...9596856
2024-05-03 11:03:10.513 DEBUG (MainThread) [custom_components.xplora_watch.binary_sensor] Updating binary_sensor: Viktor Watch State (Name of User) | Typ: state | Watch_ID ...9596856
2024-05-03 11:03:10.521 INFO (MainThread) [homeassistant.components.device_tracker] Setting up xplora_watch.device_tracker
2024-05-03 11:03:10.527 INFO (MainThread) [homeassistant.components.sensor] Setting up xplora_watch.sensor
2024-05-03 11:03:10.527 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Viktor Watch Battery (Name of User) | Typ: battery | Watch_ID ...9596856
2024-05-03 11:03:10.527 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Viktor Watch Step Day (Name of User) | Typ: step_day | Watch_ID ...9596856
2024-05-03 11:03:10.527 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Viktor Watch Xcoin (Name of User) | Typ: xcoin | Watch_ID ...9596856
2024-05-03 11:03:10.528 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Viktor Watch Message (Name of User) | Typ: message | Watch_ID ...9596856
2024-05-03 11:03:10.528 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Viktor Watch Distance (Name of User) | Typ: distance | Watch_ID ...9596856
2024-05-03 11:03:10.549 INFO (MainThread) [homeassistant.components.switch] Setting up xplora_watch.switch
2024-05-03 11:03:10.566 INFO (MainThread) [homeassistant.components.notify] Setting up notify.xplora_watch
2024-05-03 11:03:10.566 DEBUG (MainThread) [custom_components.xplora_watch.notify] init Notify Service
2024-05-03 11:03:10.568 INFO (SyncWorker_5) [custom_components.places.sensor] (Viktor Position Places) Starting Track State Change Update (Tracked Entity: device_tracker.viktor_watch_tracker)
2024-05-03 11:03:10.569 INFO (SyncWorker_5) [custom_components.places.sensor] (Viktor Position Places) Distance from home [home]: 0.021 km
2024-05-03 11:03:10.570 INFO (SyncWorker_5) [custom_components.places.sensor] (Viktor Position Places) Travel Direction: stationary
2024-05-03 11:03:10.570 INFO (SyncWorker_5) [custom_components.places.sensor] (Viktor Position Places) Meters traveled since last update: 0.0
2024-05-03 11:03:10.570 INFO (SyncWorker_5) [custom_components.places.sensor] (Viktor Position Places) Not performing update because coordinates are identical
2024-05-03 11:03:10.570 INFO (SyncWorker_5) [custom_components.places.sensor] (Viktor Position Places) End of Update
2024-05-03 11:03:10.616 DEBUG (MainThread) [custom_components.xplora_watch.switch] Updating switch: Viktor Watch Alarm 06:40 (Name of User) | Typ: alarm | Watch_ID ...9596856 | state: False | DISABLE
2024-05-03 11:03:10.714 DEBUG (MainThread) [custom_components.xplora_watch.switch] Updating switch: Viktor Watch Silent 07:55-16:00 (Name of User) | Typ: silent | Watch_ID ...9596856 | state: False | DISABLE
2024-05-03 11:03:10.714 DEBUG (MainThread) [custom_components.xplora_watch.switch] Updating switch: Viktor Watch Silent 11:30-12:30 (Name of User) | Typ: silent | Watch_ID ...9596856 | state: False | DISABLE
2024-05-03 11:03:10.714 DEBUG (MainThread) [custom_components.xplora_watch.switch] Updating switch: Viktor Watch Silent 17:00-19:15 (Name of User) | Typ: silent | Watch_ID ...9596856 | state: False | DISABLE
2024-05-03 11:03:10.715 DEBUG (MainThread) [custom_components.xplora_watch.switch] Updating switch: Viktor Watch Silent 00:00-23:59 (Name of User) | Typ: silent | Watch_ID ...9596856 | state: False | DISABLE
2024-05-03 11:03:10.719 ERROR (MainThread) [homeassistant.components.switch] Platform xplora_watch does not generate unique IDs. ID viktor_watch_silent__0110523b61215f5f775f5f7369596856_0110523b5c4a5f5f675f5f3439993940 already exists - ignoring switch.viktor_watch_silent_07_55_16_00_radoslaw_parzentny
2024-05-03 11:03:10.719 ERROR (MainThread) [homeassistant.components.switch] Platform xplora_watch does not generate unique IDs. ID viktor_watch_silent__0110523b61215f5f775f5f7369596856_0110523b5c4a5f5f675f5f3439993940 already exists - ignoring switch.viktor_watch_silent_07_55_16_00_radoslaw_parzentny
2024-05-03 11:03:10.720 ERROR (MainThread) [homeassistant.components.switch] Platform xplora_watch does not generate unique IDs. ID viktor_watch_silent__0110523b61215f5f775f5f7369596856_0110523b5c4a5f5f675f5f3439993940 already exists - ignoring switch.viktor_watch_silent_07_55_16_00_radoslaw_parzentny
2024-05-03 11:03:12.129 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch data from Xplora: 9596856
2024-05-03 11:03:14.583 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] load address from openstreetmap.org
2024-05-03 11:03:14.585 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Manually updated xplora_watch-800804 data
2024-05-03 11:03:14.595 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Finished fetching xplora_watch-800804 data in 3.880 seconds (success: True)
2024-05-03 11:04:46.251 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch data from Xplora: 9596856
2024-05-03 11:04:48.599 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] load address from openstreetmap.org
2024-05-03 11:04:48.601 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Manually updated xplora_watch-800804 data
2024-05-03 11:04:48.612 INFO (SyncWorker_48) [custom_components.places.sensor] (Viktor Position Places) Starting Track State Change Update (Tracked Entity: device_tracker.viktor_watch_tracker)
2024-05-03 11:04:48.613 INFO (SyncWorker_48) [custom_components.places.sensor] (Viktor Position Places) Distance from home [home]: 0.021 km
2024-05-03 11:04:48.613 INFO (SyncWorker_48) [custom_components.places.sensor] (Viktor Position Places) Travel Direction: stationary
2024-05-03 11:04:48.613 INFO (SyncWorker_48) [custom_components.places.sensor] (Viktor Position Places) Meters traveled since last update: 0.0
2024-05-03 11:04:48.614 INFO (SyncWorker_48) [custom_components.places.sensor] (Viktor Position Places) Not performing update because coordinates are identical
2024-05-03 11:04:48.614 INFO (SyncWorker_48) [custom_components.places.sensor] (Viktor Position Places) End of Update
2024-05-03 11:04:48.615 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Finished fetching xplora_watch-800804 data in 3.901 seconds (success: True)
2024-05-03 11:06:20.253 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch data from Xplora: 9596856
2024-05-03 11:06:22.625 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] load address from openstreetmap.org
2024-05-03 11:06:22.627 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Manually updated xplora_watch-800804 data
github-actions[bot] commented 6 months ago

:wave: @djwafelap, it is checked whether there is a bug. Please have some patience. This action was performed automatically.

User47873S commented 6 months ago

Gleiches Problem, auch Online Status bleibt immer gleich. Akku- stand und Position Funktionieren

plastbox commented 3 months ago

I've also been seeing this, though only on our Xplira X6 play. The older Xplora 4 works as expected.

tonka3000 commented 1 month ago

I see the same issue on our X6 Play as well.