Git Product home page Git Product logo

xplora_watch's Introduction

Xplora® Watch Version 2

Xplora® Watch Version 2 integration for Home Assistant

Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.
hacs_badge GitHub release (latest by date) GitHub Release Date GitHub license GitHub stars GitHub issues
Code style: black
Github All Releases
Validate with hassfest and HACS

"Buy Me A Coffee"

✨ Wishlist from Amazon ✨


Xplora® Watch Version 2

🚨 Important: Upgrading from version 2.8.3 or earlier to version 2.10.* 🚨

  1. ⚠️back up your Homeassistant instance
  2. ⚠️save your backup externally
  3. Preparation
    • 👥There is more than one Xplora® Watch user logged into the Homeassistant instance
      • 🗑️remove the user that is generating the error Platform xplora_watch does not generate unique IDs.
      • 🗑️remove the sensors that are listed as unavailable
      • restart Homeassistant
    • 👤There is only one user for Xplora® Watch who is logged into the Homeassistant instance
      • no further steps necessary
  4. Upgrade the integration and restart Homeassistant instance
  5. Two instances (or more) of Xplora® Watch are now displayed - click on 2 devices new Device 1
  6. an instance with your name at the beginning is the new instance new Device 2
    • click on the old instance
    • Go to the pen in the upper right corner
    • disable this device
  7. (optional for more than one user)
    • add the second user ADD DEVICE
  8. Follow-up
    • new entities are created or old ones are listed as unavailable
    • the old entities can be removed
    • note that the new entities have a new naming convention

Names layout changed (v2.10.0)

binary_sensor:

  • "Watch Name" "Watch" "Charging" "Watch ID" to "Watch Name" "Watch" "Charging" "(Username)"
  • "Watch Name" "Watch" "Safezone" "Watch ID" to "Watch Name" "Watch" "Safezone" "(Username)"
  • "Watch Name" "Watch" "State" "Watch ID" to "Watch Name" "Watch" "State" "(Username)"

device_tracker:

  • "Watch Name" "Watch" "Tracker" "Watch ID" to "Watch Name" "Watch" "Tracker" "(Username)"
  • "Safzone" "Safzone Name" "Watch ID" to "Watch Name" "Watch" "Safzone" "Safzone Name" "(Username)"

sensor:

  • "Watch Name" "Watch" "Battery" "Watch ID" to "Watch Name" "Watch" "Battery" "(Username)"
  • "Watch Name" "Watch" "Xcoin" "Watch ID" to "Watch Name" "Watch" "Xcoin" "(Username)"
  • "Watch Name" "Watch" "Step Day" "Watch ID" to "Watch Name" "Watch" "Step Day" "(Username)"
  • "Watch Name" "Watch" "Message" "Watch ID" to "Watch Name" "Watch" "Message" "(Username)"
  • "Watch Name" "Watch" "Distance" "Watch ID" to "Watch Name" "Watch" "Distance" "(Username)"

switch:

  • "Watch Name" "Watch" "Alarm" "Time" "Watch ID" to "Watch Name" "Watch" "Alarm" "Time" "(Username)"
  • "Watch Name" "Watch" "Silent" "Time" "Watch ID" to "Watch Name" "Watch" "Silent" "Time" "(Username)"

Features

  • Control your watch from Home Assistant
  • Receive notifications from your watch
  • Track your watch's location
  • View your watch's battery level
  • And more!

IMPORTANCE: Of a service is activated by automation, the sensors will no longer be updated. Therefore, activate the xplora_watch.see service with a corresponding interval.

Features Type
Battery Sensor
Watch-Xcoin Sensor
Watch Step per Day Sensor
Watch Online state Binary Sensor
Watch is in Safezone Binary Sensor
charging state Binary Sensor
Watch silent(s) Switch
Watch alarm(s) Switch
Send Message Notify
Send Message Service Service
Read Messages from Account Service
Delete Messages from App Service
Manually update Service
Turn off Watch Service
Watch Tracking Device Tracker
Watch Show Safezone(s) Device Tracker

Installation

MANUAL INSTALLATION

Copy the xplora_watch last Release folder and all of its contents into your Home Assistant's custom_components folder. This folder is usually inside your /config folder. If you are running Hass.io, use SAMBA to copy the folder over. If you are running Home Assistant Supervised, the custom_components folder might be located at /usr/share/hassio/homeassistant. You may need to create the custom_components folder and then copy the localtuya folder and all of its contents into it. Alternatively, you can install localtuya through HACS by adding this repository.

INSTALLATION mit HACS

  1. Ensure that HACS is installed.
  2. Search for and install the "Xplora® Watch Integration" integration. GitHub release (latest by date)
  3. Configuration for the "Xplora® Watch Version 2" integration is now performed via a config flow as opposed to yaml configuration file.

Basis Configuration

  1. Go to HACS -> Integrations -> Click "+"
  2. Search for "Xplora® Watch" repository and add to HACS
  3. Restart Home Assistant when it says to.
  4. In Home Assistant, go to Configuration -> Integrations -> Click "+ Add Integration"
  5. Search for "Xplora® Watch" and follow the instructions to setup.

Xplora® should now appear as a card under the HA Integrations page with "Configure" selection available at the bottom of the card.

add in Version 2.2.0 add in Version 2
signin image integration image

Disable scan interval (v2.13.0)

  • To deactivate the scan interval you can set the value to "0", the default value is 180.

Downloaded from voice messages, Videos and Images (v2.7.0)

  • All voice messages, videos and images are stored in config/www/{voice|video|image|}. #152
    • The voice message will be downloaded as amr and converted to mp3.
    • Videos as mp4
    • Images as jpeg
  • updated Markdown Card Sample #155

Delete Messages from App (v2.6.0)

  • new service added - delete only app message
  • chats: add delete_flag 1 = message is deleted
  • updated Markdown Card Sample
  • add Emoji
    • M1001 = "😄"
    • M1002 = "😏"
    • M1003 = "😘"
    • M1004 = "😅"
    • M1005 = "😂"
    • M1006 = "😭"
    • M1007 = "😍"
    • M1008 = "😎"
    • M1009 = "😜"
    • M1010 = "😳"
    • M1011 = "🥱"
    • M1012 = "👏"
    • M1013 = "😡"
    • M1014 = "👍"
    • M1015 = "😏"
    • M1016 = "😓"
    • M1017 = "🍧"
    • M1018 = "😮"
    • M1019 = "M1019"
    • M1020 = "🎁"
    • M1021 = "M1021"
    • M1022 = "☺️"
    • M1023 = "M1023"
    • M1024 = "🌹"

Read Messages from Account (v2.4.0)

  • A new (message) sensor has been added, default: disabled
  • new service added, (message) sensor will be updated
  • change Number of Messages option find in "Configure"
  • Markdown Card Sample (updated v2.6.0)
  • Automation Sample

markdown sample


Multilanguage (v2.1.0)

  • DE
  • EN

Manually update (v2.0.8 & v2.0.9)

Manually update all information from your watch

manually_refresh image


Change Friendly Name (v2.0.7)

Set Friendly Name Please note that this can also change the entry_id!

Rule format: watchID=New Name Notice the equals sign

friendly_name image


Send Message

Set Target with the WatchID for the receiver watch

require (v2.10.0)

  • message
  • target
  • data
    • user_id
service: notify.xplora_watch
data:
  message: Message
  data:
    user_id: 053eb6e5e5b32e502cfb1934cefb77ff
  target: 01102f442f1125f525f5f3336316068

notify image


Send Message via Service (v2.0.3)

message_service image



Debug

logger:
  logs:
    custom_components.xplora_watch: debug


Changelog

[v2] - 2022-09-18

xplora_watch's People

Contributors

actions-user avatar dependabot[bot] avatar github-actions[bot] avatar ludy87 avatar markleary avatar pattisonmichael avatar pixeebot[bot] avatar pre-commit-ci[bot] avatar ravor-org avatar sevorl avatar wrt54g avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xplora_watch's Issues

[🐛 BUG] Step-counter not working

System Health details

System Information

version core-2022.8.0
installation_type Home Assistant Container
dev false
hassio false
docker true
user root
virtualenv false
python_version 3.10.5
os_name Linux
os_version 5.15.58-flatcar
arch x86_64
timezone Europe/Oslo
config_dir /config

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

I'm getting data from the xplora watch into hass, but for some reason, sensor.kid_name_watch_step_day_XXX is unknown. All other fields works including sensor.kid_name_watch_xcoin_XXX..

I can see the steps in hass.data['xplora'][0].watchs[0]['ward']['currentStep'], but I'm not sure what ward means and/if this is correct.. There is also hass.data['xplora'][0].watchs[0]['guardian']['currentStep'] which is None

Reproduction steps

  1. Setup watch in hass
  2. Wait a day
  3. Still no steps
    ...

Debug logs

home-assistant 2022-08-05 10:07:41.328 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Kids Name Watch Xcoin XXX | XCoins: 256                   
home-assistant 2022-08-05 10:07:41.485 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Kids Name Watch Step_Day XXX | Step per Day: None         
home-assistant 2022-08-05 10:07:42.259 DEBUG (MainThread) [custom_components.xplora_watch.sensor] Updating sensor: Kids Name Watch Battery XXX | Battery: 62 | Charging False

🐛 xplora X5 play does not show sensors

What version of Integration has the issue?

V2.5.6

System Health details

Informationen zum System
Version core-2023.1.2
Installationstyp Home Assistant OS
Entwicklung false
Supervisor true
Docker true
Benutzer root
Virtuelle Umgebung false
Python-Version 3.10.7
Betriebssystemfamilie Linux
Betriebssystem-Version 5.15.76-v8
CPU-Architektur aarch64
Zeitzone Europe/Berlin
Konfigurationsverzeichnis /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4793
Installed Version 1.29.1
Stage running
Available Repositories 1271
Downloaded Repositories 18
Home Assistant Cloud
Angemeldet true
Ablauf des Abonnements 9. Januar 2023 um 01:00
Relais verbunden true
Remote aktiviert false
Remote verbunden false
Alexa aktiviert true
Google aktiviert true
Remote-Server eu-central-1-0.ui.nabu.casa
Zertifikatsserver erreichbar ok
Authentifizierungsserver erreichbar ok
Home Assistant Cloud erreichbar ok
Home Assistant Supervisor
Host-Betriebssystem Home Assistant OS 9.4
Update-Channel stable
Supervisor-Version supervisor-2022.12.1
Agent-Version 1.4.1
Docker-Version 20.10.19
Speicherplatz gesamt 57.8 GB
Speicherplatz genutzt 25.6 GB
Gesund true
Unterstützt true
Board rpi4-64
Supervisor-API ok
Versions-API ok
Installierte Add-ons Z-Wave JS (0.1.74), Studio Code Server (5.5.1), Terminal & SSH (9.6.1), Node-RED (14.0.1), Duck DNS (1.15.0), Let's Encrypt (4.12.7), ESPHome (2022.12.3)
Dashboards
Dashboards 2
Ressourcen 2
Ansichten 10
Modus storage
Recorder
Älteste Startzeit der Ausführung 1. Januar 2023 um 20:11
Aktuelle Startzeit der Ausführung 9. Januar 2023 um 10:39
Geschätzte Datenbankgröße (MiB) 1733.05 MiB
Datenbank-Engine sqlite
Datenbankversion 3.38.5

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

State of all sensors, except Xcoin, is "unknown".
image

image

image

Reproduction steps

Added watch via email login.

Debug logs

Logbuch
9. Januar 2023
xxx Watch Message xxx wurde unbekannt
08:40:21 - Vor 3 Stunden
xxx Watch State xxx wurde getrennt
08:40:21 - Vor 3 Stunden
xxx Watch Safezone xxx war unsicher
08:40:21 - Vor 3 Stunden
xxx Watch Charging xxx wurde unbekannt
08:40:21 - Vor 3 Stunden
xxx Watch Tracker xxx wurde bei unknown erkannt
08:40:21 - Vor 3 Stunden
xxx Watch Message xxx nicht mehr verfügbar
08:38:12 - Vor 3 Stunden

AttributeError: module 'pyxplora_api.pyxplora_api_async' has no attribute 'PhoneOrEmailFail'

  Hi.

My son has an Xplora 4 and I would love to integrate it into home-assistant so he can participate in the family-most-steps "contest" with the rest of the family(who is using iPhones).
I tried setting it up, but fails:

xplora

Logger: aiohttp.server
Source: custom_components/xplora_watch/config_flow.py:167
Integration: Xplora® Watch ([documentation](https://github.com/Ludy87/xplora_watch/tree/main), [issues](https://github.com/Ludy87/xplora_watch/issues))
First occurred: 09:13:45 (1 occurrences)
Last logged: 09:13:45

Error handling request
Traceback (most recent call last):
  File "/config/custom_components/xplora_watch/config_flow.py", line 166, in async_step_user_phone
    info = await validate_input(self.hass, user_input)
  File "/config/custom_components/xplora_watch/config_flow.py", line 81, in validate_input
    await account.init(signup=False)
  File "/usr/local/lib/python3.10/site-packages/pyxplora_api/pyxplora_api_async.py", line 77, in init
    token = await self._login(forceLogin, signup)
  File "/usr/local/lib/python3.10/site-packages/pyxplora_api/pyxplora_api_async.py", line 66, in _login
    await sleep(self.retryDelay)

  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 605, in sleep
    return await future
asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 222, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 82, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 180, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
    result = await method(view, request, data, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 280, in async_configure
    result = await self._async_handle_step(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 367, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/config/custom_components/xplora_watch/config_flow.py", line 167, in async_step_user_phone
    except PXA.PhoneOrEmailFail as e:
AttributeError: module 'pyxplora_api.pyxplora_api_async' has no attribute 'PhoneOrEmailFail'

Any inputs are appreciated :)

Originally posted by @Lynetk in #118

🐛 Admin Account required

System Health details

Not needed

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

I created a Account for thebwatch itself for HA

But since a few Updates i cant get Infos except Steos from the Watch anymore.

After delete and reinstall with Watch Admin Account i get Data, with an non Admin Account i dont get Data anymore

Reproduction steps

  1. Setup with non Admin Account
  2. = no data, only Steps
  3. Remove Device
  4. Setup with Admin Account
  5. = full data

Debug logs

Not needed

Add Location services

Hello! Very Cool project, I was just looking at doing the same :)
Do you have plans to add the location services to the integration any time soon?
Otherwise I might take a stab at it in the next few days when I find time.

[🏗️ FR] Messaging event

Is your feature request related to a problem? Please describe.

No response

Describe the feature you want

Add a HA event triggered when a message is sent to the account this integration is configured to use.

The event payload should include the message itself, as well as a way to identify its sender.

Additional context

Providing Xplora watch users with the ability to interact with HA would create a lot of engagement with curious, young minds. I know my son would love showing off to his friends how he could turn lights or the TV on and off.

Information request, does integration work with Xplora 6 Play

What version of Integration has the issue?

@Ludy87 Sorry to put this as a "bug" but did not know how else to ask the following question. Does the integration also work with the Xplora 6 Play watch?

System Health details

None

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

None

Reproduction steps

...

Debug logs

None

Denmark +45

Hi
I would love it if you would make this possible to be used in Denmark

I have tested to set up everything, but I get an error in the log

Logger: homeassistant.components.device_tracker
Source: custom_components/xplora_watch/device_tracker.py:69
Integration: Device tracker (documentation, issues)
First occurred: 8:01:50 PM (1 occurrences)
Last logged: 8:01:50 PM

Error setting up platform legacy xplora_watch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 251, in async_setup_legacy
setup = await self.platform.async_setup_scanner(
File "/config/custom_components/xplora_watch/device_tracker.py", line 69, in async_setup_scanner
for safeZone in await controller.getSafeZones_async(id):
File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 397, in getSafeZones_async
raise Exception('Xplora API call finally failed with response: ')
Exception: Xplora API call finally failed with response:

Best regards Kai

🏗️ Enable "unknown" state if watch is offline

Is your feature request related to a problem? Please describe.

No response

Describe the feature you want

In version 1 of the integration, the device_tracker had 2 state groups: zone/away/home and unknown. In version 2 this "feature" has gone missing. The PR #65 tries to address this problem by setting latitude and longitude to "None" if watch is offline.

Additional context

No response

Device Tracker Unique ID

Any way to add Unique ID to the device tracker? so i can edit the device tracker entity id in ui?! :)

[🏗️ FR] watch into automations - specific areas

Is your feature request related to a problem? Please describe.

Yes I want to add the watch into automations that updates me when it enters specific areas. And for that I need it to appear as a Device. But it's not shown in the device list. Can this be fixed somehow?

Describe the feature you want

Yes I want to add the watch into automations that updates me when it enters specific areas. And for that I need it to appear as a Device. But it's not shown in the device list. Can this be fixed somehow?

Additional context

No response

🐛 service.yaml creation leads to non-working integration

System Health details

Version core-2022.9.5
Installation Type Home Assistant Core
Development false
Supervisor false
Docker false
User homeassistant
Virtual Environment true
Python Version 3.10.6
Operating System Family Linux
Operating System Version 5.4.70-ravor
CPU Architecture x86_64
Timezone Europe/Berlin
Configuration Directory /home/homeassistant/.homeassistant

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

I'm running HA Core in a Venv environment and the integration fails to start due to using a wrong path. I've created a pull request for fixing that: #62

Reproduction steps

  1. Have HomeAssistant Core in venv
  2. Install XploraIntegration
  3. Start HA Core
  4. Integration fails to setup

Debug logs

Sep 21 09:58:52 hwr-server01 hass[20975]: 2022-09-21 09:58:52.462 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Xplora® for xplora_watch
Sep 21 09:58:52 hwr-server01 hass[20975]: Traceback (most recent call last):
Sep 21 09:58:52 hwr-server01 hass[20975]:   File "/opt/homeassistant/lib/python3.10/site-packages/homeassistant/config_entries.py", line 357, in async_setup
Sep 21 09:58:52 hwr-server01 hass[20975]:     result = await component.async_setup_entry(hass, self)
Sep 21 09:58:52 hwr-server01 hass[20975]:   File "/home/homeassistant/.homeassistant/custom_components/xplora_watch/__init__.py", line 50, in async_setup_entry
Sep 21 09:58:52 hwr-server01 hass[20975]:     service_yaml(watches)
Sep 21 09:58:52 hwr-server01 hass[20975]:   File "/home/homeassistant/.homeassistant/custom_components/xplora_watch/helper.py", line 59, in service_yaml
Sep 21 09:58:52 hwr-server01 hass[20975]:     with open(path + "/services.yaml", "w+") as f:
Sep 21 09:58:52 hwr-server01 hass[20975]: FileNotFoundError: [Errno 2] No such file or directory: '//custom_components/xplora_watch/services.yaml'

Multiple watches on single account

Thanks for creating this integration!

I have two watches attached to my xplora account and only the first one ends up being mapped to entities. Is this a known limitation or should I debug?

🐛 When adding device with Admin user, entities never work and create JSON error in logs

What version of Integration has the issue?

2.5.7

System Health details

System Information

version core-2023.1.4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.7
os_name Linux
os_version 5.15.76-v8
arch aarch64
timezone Europe/London
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4993
Installed Version 1.29.1
Stage running
Available Repositories 1203
Downloaded Repositories 10
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 9.4
update_channel stable
supervisor_version supervisor-2022.12.1
agent_version 1.4.1
docker_version 20.10.19
disk_total 28.5 GB
disk_used 6.6 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons CEC Scanner (3.0), File editor (5.4.2), Check Home Assistant configuration (3.11.0), Terminal & SSH (9.6.1), AirCast (3.5.1)
Dashboards
dashboards 1
resources 0
mode auto-gen
Recorder
oldest_recorder_run 4 January 2023 at 15:26
current_recorder_run 13 January 2023 at 10:10
estimated_db_size 85.79 MiB
database_engine sqlite
database_version 3.38.5
Solcast PV Forecast
can_reach_server ok
remaining_requests 9
rooftop_site_count 1
polling_hours 6 -> 17 and once at midnight
Sonoff
version 3.3.1 (b20e33c)
cloud_online 2 / 2
local_online 0 / 0
Spotify
api_endpoint_reachable ok

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

I added the integration through HACS and entered admin details for the integration.

The integration finds the watch, but the entities never update. The log shows:

Error requesting xplora_watch- data: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://api.myxplora.com/api')

Reproduction steps

  1. Install integration
  2. Connect with Admin User
  3. Entities dont get values and error message in logs

Debug logs

have enabled debug logs as per intruction but cannot see any output in normal logs - please tell me if they should seomwhere else

Markdown Sample🐛

What version of Integration has the issue?

2.6.1

System Health details

Not needed

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

I tried the Markdown Sample, only changed the sensor ro Match my one but Markdown stays empty

An 30 Seconds Automation to read the Messages is also created

Reproduction steps

  1. Copy Paste Markdown Sample,
  2. edit Sensor
  3. Created Automation to read Messages

Debug logs

None

🐛 Integration error when adding new watch

What version of Integration has the issue?

Latest release, 2.5.5

System Health details

System Information

version core-2022.12.4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.7
os_name Linux
os_version 5.15.61-v8
arch aarch64
timezone Europe/Oslo
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4724
Installed Version 1.28.4
Stage running
Available Repositories 1157
Downloaded Repositories 11
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 9.3
update_channel stable
supervisor_version supervisor-2022.11.2
agent_version 1.4.1
docker_version 20.10.18
disk_total 219.4 GB
disk_used 13.4 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons File editor (5.4.2), Home Assistant Google Drive Backup (0.109.2), NGINX Home Assistant SSL proxy (3.2.0), Samba share (10.0.0), Node-RED (14.0.0), SSH & Web Terminal (13.0.0), Log Viewer (0.14.0), Mosquitto broker (6.1.3), Let's Encrypt (4.12.7), Grafana (8.1.0), InfluxDB (4.5.0), AppDaemon (0.10.1), MQTT IO (0.1.3), Glances (0.17.1), ESPHome (2022.11.5)
Dashboards
dashboards 3
resources 4
views 9
mode storage
Recorder
oldest_recorder_run 12. desember 2022 kl. 12:30
current_recorder_run 13. desember 2022 kl. 08:45
estimated_db_size 409.09 MiB
database_engine sqlite
database_version 3.38.5

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

Getting error when trying to add new watch.

Have tried reinstalling the integration, in both HACS and the "integration" page.
Restarted numerous times inbetween.

Reproduction steps

  1. Integrations page -> Add integration -> Xplora
  2. Log in with phone number -> Filling in watch settings
  3. When hitting the "Next" button, I get this:
    setting_xplora
  4. This shows up in the logs:
    xplora_log

...

Debug logs

Denne feilen stammer fra en tilpasset integrasjon.

Logger: custom_components.xplora_watch.config_flow
Source: custom_components/xplora_watch/config_flow.py:83
Integration: Xplora® Watch (documentation, issues)
First occurred: 08:49:11 (1 occurrences)
Last logged: 08:49:11

'NoneType' object has no attribute 'checkEmailOrPhoneExist_a'
Traceback (most recent call last):
  File "/config/custom_components/xplora_watch/config_flow.py", line 167, in async_step_user_phone
    info = await validate_input(self.hass, user_input)
  File "/config/custom_components/xplora_watch/config_flow.py", line 83, in validate_input
    if not await account.checkEmailOrPhoneExist(
  File "/usr/local/lib/python3.10/site-packages/pyxplora_api/pyxplora_api_async.py", line 685, in checkEmailOrPhoneExist
    data = await self._gqlHandler.checkEmailOrPhoneExist_a(type, email, countryCode, phoneNumber)
AttributeError: 'NoneType' object has no attribute 'checkEmailOrPhoneExist_a'

State request update gives error and integration not starts at reload 🐛

What version of Integration has the issue?

2.7.2

I get the following errors in my logs:

Logger: homeassistant.components.automation.update_state_watch_kids
Source: custom_components/xplora_watch/coordinator.py:196
Integration: Automation (documentation, issues)
First occurred: 17:15:05 (2 occurrences)
Last logged: 17:15:05

Update State Watch Kids: Error executing script. Unexpected error for call_service at pos 1:
While executing automation automation.update_state_watch_kids
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1787, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1824, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/xplora_watch/services.py", line 67, in async_see
await see_service.async_see(kwargs[ATTR_SERVICE_TARGET] if ATTR_SERVICE_TARGET in kwargs else ["all"])
File "/config/custom_components/xplora_watch/services.py", line 120, in async_see
await self._coordinator._async_update_data(targets)
File "/config/custom_components/xplora_watch/coordinator.py", line 127, in _async_update_data
self.watch_entry.update(await self.data_loop(wuids, message_limit, remove_message))
File "/config/custom_components/xplora_watch/coordinator.py", line 156, in data_loop
await self.get_map()
File "/config/custom_components/xplora_watch/coordinator.py", line 196, in get_map
async with session.get(URL_OPENSTREETMAP.format(self.lat, self.lng, language)) as response:
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1138, in aenter
self._resp = await self._coro
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 559, in _request
await resp.start(conn)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 893, in start
with self._timer:
File "/usr/local/lib/python3.10/site-packages/aiohttp/helpers.py", line 721, in exit
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

AND

This error originated from a custom integration.

Logger: custom_components.xplora_watch.coordinator
Source: helpers/update_coordinator.py:182
Integration: Xplora® Watch (documentation, issues)
First occurred: 17:15:12 (1 occurrences)
Last logged: 17:15:12

Error requesting xplora_watch-5115 data: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://nominatim.openstreetmap.org/reverse?lat=46.49847355&lon=26.50547498&format=jsonv2&accept-language=en')

AND

This error originated from a custom integration.

Logger: homeassistant.helpers.script.websocket_api_script
Source: custom_components/xplora_watch/coordinator.py:197
Integration: Xplora® Watch (documentation, issues)
First occurred: 17:20:16 (1 occurrences)
Last logged: 17:20:16

websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://nominatim.openstreetmap.org/reverse?lat=46.49847355&lon=26.50547498&format=jsonv2&accept-language=en')
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1787, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1824, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/xplora_watch/services.py", line 67, in async_see
await see_service.async_see(kwargs[ATTR_SERVICE_TARGET] if ATTR_SERVICE_TARGET in kwargs else ["all"])
File "/config/custom_components/xplora_watch/services.py", line 120, in async_see
await self._coordinator._async_update_data(targets)
File "/config/custom_components/xplora_watch/coordinator.py", line 127, in _async_update_data
self.watch_entry.update(await self.data_loop(wuids, message_limit, remove_message))
File "/config/custom_components/xplora_watch/coordinator.py", line 156, in data_loop
await self.get_map()
File "/config/custom_components/xplora_watch/coordinator.py", line 197, in get_map
res: dict[str, Any] = await response.json()
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1103, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://nominatim.openstreetmap.org/reverse?lat=46.49847355&lon=26.50547498&format=jsonv2&accept-language=en')

System Health details

System Information

version core-2023.2.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.7
os_name Linux
os_version 5.15.90
arch aarch64
timezone Europe/Bucharest
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4986
Installed Version 1.30.1
Stage running
Available Repositories 1204
Downloaded Repositories 20
AccuWeather
can_reach_server ok
remaining_requests 11
Home Assistant Cloud
logged_in true
subscription_expiration March 15, 2023 at 02:00
relayer_connected true
remote_enabled true
remote_connected true
alexa_enabled false
google_enabled true
remote_server eu-central-1-4.ui.nabu.casa
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 9.5
update_channel stable
supervisor_version supervisor-2023.01.1
agent_version 1.4.1
docker_version 20.10.22
disk_total 113.9 GB
disk_used 28.9 GB
healthy true
supported true
board odroid-n2
supervisor_api ok
version_api ok
installed_addons Spotify Connect (0.12.2), Home Assistant Google Drive Backup (0.110.1), File editor (5.5.0), SSH & Web Terminal (13.0.2), Samba share (10.0.0), MariaDB (2.5.2), ESPHome (2023.2.2), Assistant Relay (0.7.4), Mosquitto broker (6.1.3), Zigbee2MQTT (1.30.1-1)
Dashboards
dashboards 1
resources 12
views 11
mode storage
Recorder
oldest_recorder_run February 7, 2023 at 17:18
current_recorder_run February 17, 2023 at 15:48
estimated_db_size 1673.34 MiB
database_engine mysql
database_version 10.6.10
Sonoff
version 3.4.0 (5406fa7)
cloud_online 10 / 10
local_online 10 / 10
Spotify
api_endpoint_reachable ok

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

I get the following errors in my logs:

Logger: homeassistant.components.automation.update_state_watch_kids
Source: custom_components/xplora_watch/coordinator.py:196
Integration: Automation (documentation, issues)
First occurred: 17:15:05 (2 occurrences)
Last logged: 17:15:05

Update State Watch Kids: Error executing script. Unexpected error for call_service at pos 1:
While executing automation automation.update_state_watch_kids
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1787, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1824, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/xplora_watch/services.py", line 67, in async_see
await see_service.async_see(kwargs[ATTR_SERVICE_TARGET] if ATTR_SERVICE_TARGET in kwargs else ["all"])
File "/config/custom_components/xplora_watch/services.py", line 120, in async_see
await self._coordinator._async_update_data(targets)
File "/config/custom_components/xplora_watch/coordinator.py", line 127, in _async_update_data
self.watch_entry.update(await self.data_loop(wuids, message_limit, remove_message))
File "/config/custom_components/xplora_watch/coordinator.py", line 156, in data_loop
await self.get_map()
File "/config/custom_components/xplora_watch/coordinator.py", line 196, in get_map
async with session.get(URL_OPENSTREETMAP.format(self.lat, self.lng, language)) as response:
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 1138, in aenter
self._resp = await self._coro
File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 559, in _request
await resp.start(conn)
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 893, in start
with self._timer:
File "/usr/local/lib/python3.10/site-packages/aiohttp/helpers.py", line 721, in exit
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

AND

This error originated from a custom integration.

Logger: custom_components.xplora_watch.coordinator
Source: helpers/update_coordinator.py:182
Integration: Xplora® Watch (documentation, issues)
First occurred: 17:15:12 (1 occurrences)
Last logged: 17:15:12

Error requesting xplora_watch-5115 data: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://nominatim.openstreetmap.org/reverse?lat=46.49847355&lon=26.50547498&format=jsonv2&accept-language=en')

AND

This error originated from a custom integration.

Logger: homeassistant.helpers.script.websocket_api_script
Source: custom_components/xplora_watch/coordinator.py:197
Integration: Xplora® Watch (documentation, issues)
First occurred: 17:20:16 (1 occurrences)
Last logged: 17:20:16

websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://nominatim.openstreetmap.org/reverse?lat=46.49847355&lon=26.50547498&format=jsonv2&accept-language=en')
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 451, in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 684, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1787, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1824, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/config/custom_components/xplora_watch/services.py", line 67, in async_see
await see_service.async_see(kwargs[ATTR_SERVICE_TARGET] if ATTR_SERVICE_TARGET in kwargs else ["all"])
File "/config/custom_components/xplora_watch/services.py", line 120, in async_see
await self._coordinator._async_update_data(targets)
File "/config/custom_components/xplora_watch/coordinator.py", line 127, in _async_update_data
self.watch_entry.update(await self.data_loop(wuids, message_limit, remove_message))
File "/config/custom_components/xplora_watch/coordinator.py", line 156, in data_loop
await self.get_map()
File "/config/custom_components/xplora_watch/coordinator.py", line 197, in get_map
res: dict[str, Any] = await response.json()
File "/usr/local/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 1103, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html', url=URL('https://nominatim.openstreetmap.org/reverse?lat=46.49847355&lon=26.50547498&format=jsonv2&accept-language=en')

Reproduction steps

  1. request a state update with watch.see

Debug logs

No info

Why are my sensors not updating?

Discussed in #90

Originally posted by Ludy87 October 19, 2022
According to information from @sevorl and @BigFriendlyDuck , there have been changes to Xplora and its API for non-admin users.
At the moment it is only possible to fully use the integration with an admin account.

[🐛 BUG] cannot start integration

System Health details

Version core-2022.6.1
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
User root
Virtual Environment false
Python Version 3.9.12
Operating System Family Linux
Operating System Version 5.15.32-v8
CPU Architecture aarch64

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

Does not work - I followed instructions and seems to not work as expected.

As seen in log it askes to check input, im not sure which part of the input I should be looking at

Reproduction steps

my config -

xplora_watch:
country_code: +46
phonenumber: 7##########
password: MYPARENTACCOUNTPASSWORD
userlang: en-GB
child_phonenumber:

  • 7##########
    timezone: Europe/Berlin
    types:
    - battery
    - xcoin
    - syate
    - safezone
    - charging
    - silents
    - alarms
    - dt_watch
    safezones: "show"
    scan_interval: 180 # default sec - optional
    tracker_scan_interval: 60 # default sec - optional

Debug logs

Error during setup of component xplora_watch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 235, in _async_setup_component
    result = await task
  File "/config/custom_components/xplora_watch/__init__.py", line 109, in async_setup
    success = success or await _setup_controller(hass, controller_config, config)
  File "/config/custom_components/xplora_watch/__init__.py", line 132, in _setup_controller
    await controller.init()
  File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 80, in init
    raise LoginError("Login to Xplora® API failed. Check your input!")
pyxplora_api.exception_classes.LoginError: Login to Xplora® API failed. Check your input! - 1

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

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

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

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 ********

Integration wird nicht angezeigt

Hi,
ich habe das Repo über HACS installiert.

configuration.yaml:

xplora_watch:
country_code: "+49"
phonenumber: "mynumber"
password: "mypassword"
userlang: "de-DE"
timezone: "Europe/Berlin"
watch_id:
- kidswatchid
types:
- "battery"
- "xcoin"
- "state"
- "safezone"
- "charging"
- "silents"
- "alarms"
- "dt_watch"
safezones: "show"
scan_interval: 180
tracker_scan_interval: 60

Die Integration wird aber nicht angezeigt. Was ist hier nicht korrekt?
Watch ID ist korrekt.

Error on device update

Nach Hassio Neustart sind alle Entitäten weg:

Logger: homeassistant.components.device_tracker
Source: custom_components/xplora_watch/device_tracker.py:176
Integration: Geräte-Tracker (documentation, issues)
First occurred: 07:39:51 (1 occurrences)
Last logged: 07:39:51

Error setting up platform legacy xplora_watch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 251, in async_setup_legacy
setup = await self.platform.async_setup_scanner(
File "/config/custom_components/xplora_watch/device_tracker.py", line 114, in async_setup_scanner
return await scanner.async_init()
File "/config/custom_components/xplora_watch/device_tracker.py", line 148, in async_init
await self._async_update()
File "/config/custom_components/xplora_watch/device_tracker.py", line 169, in _async_update
await self._update()
File "/config/custom_components/xplora_watch/device_tracker.py", line 176, in _update
self._watch_location = await self._controller.getWatchLastLocation(wuid=watch_id, withAsk=True)
File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 304, in getWatchLastLocation
return (await self.loadWatchLocation(wuid=wuid, withAsk=withAsk))[0]["watch_last_location"]
File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 212, in loadWatchLocation
raise FunctionError(sys._getframe().f_code.co_name)
pyxplora_api.exception_classes.FunctionError: Xplora API call finally failed with response: loadWatchLocation

Logger: homeassistant.components.binary_sensor
Source: custom_components/xplora_watch/binary_sensor.py:121
Integration: Binärsensor (documentation, issues)
First occurred: 07:39:47 (1 occurrences)
Last logged: 07:39:47

xplora_watch: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 736, in async_device_update
await task
File "/config/custom_components/xplora_watch/binary_sensor.py", line 170, in async_update
await self.__update()
File "/config/custom_components/xplora_watch/binary_sensor.py", line 149, in __update
self.__default_attr(await self.__isSafezone())
File "/config/custom_components/xplora_watch/binary_sensor.py", line 121, in __isSafezone
if await self._controller.getWatchIsInSafeZone(wuid=self._watch_id):
File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 313, in getWatchIsInSafeZone
return (await self.getWatchLocate(wuid))["isInSafeZone"]
File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 307, in getWatchLocate
return (await self.loadWatchLocation(wuid=wuid))[0]
File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 212, in loadWatchLocation
raise FunctionError(sys._getframe().f_code.co_name)
pyxplora_api.exception_classes.FunctionError: Xplora API call finally failed with response: loadWatchLocation

Logger: homeassistant.components.sensor
Source: custom_components/xplora_watch/sensor.py:116
Integration: Sensor (documentation, issues)
First occurred: 07:39:47 (1 occurrences)
Last logged: 07:39:47

xplora_watch: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 736, in async_device_update
await task
File "/config/custom_components/xplora_watch/sensor.py", line 142, in async_update
await self.__update()
File "/config/custom_components/xplora_watch/sensor.py", line 116, in __update
charging = await self._controller.getWatchIsCharging(wuid=self._watch_id)
File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 218, in getWatchIsCharging
if (await self.loadWatchLocation(wuid=wuid))[0]["watch_charging"]:
File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 212, in loadWatchLocation
raise FunctionError(sys._getframe().f_code.co_name)
pyxplora_api.exception_classes.FunctionError: Xplora API call finally failed with response: loadWatchLocation

Logger: homeassistant.components.binary_sensor
Source: custom_components/xplora_watch/binary_sensor.py:126
Integration: Binärsensor (documentation, issues)
First occurred: 07:39:47 (1 occurrences)
Last logged: 07:39:47

xplora_watch: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 736, in async_device_update
await task
File "/config/custom_components/xplora_watch/binary_sensor.py", line 170, in async_update
await self.__update()
File "/config/custom_components/xplora_watch/binary_sensor.py", line 158, in __update
self.__default_attr(await self.__isCharging())
File "/config/custom_components/xplora_watch/binary_sensor.py", line 126, in __isCharging
if await self._controller.getWatchIsCharging(wuid=self._watch_id):
File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 218, in getWatchIsCharging
if (await self.loadWatchLocation(wuid=wuid))[0]["watch_charging"]:
File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 212, in loadWatchLocation
raise FunctionError(sys._getframe().f_code.co_name)
pyxplora_api.exception_classes.FunctionError: Xplora API call finally failed with response: loadWatchLocation

[🏗️ FR] Steps sensor (Step counter)

Is your feature request related to a problem? Please describe.

No response

Describe the feature you want

A Step sensor we have a fun contest at home where all phones/watches gets count for steps each day.
The one with most gets a Gold start at frontpage in their name.

I dont see a Step sensor on this integration, would it be able to be added or is it already?

i dont own the watch yet, so didnt test yet, just figuring what we should buy as our Garmin kids watch dont allow for any export to HA.
So happy to see this one! :D

Additional context

No response

Xplora WAtch and Device Tracker

Hello.
Sorry if this is a stupid question, but I can't figure out how to het HA to show tracker status Home / Away / Other Zones.

Please could you provide more guide on how to get it to work?

Regards,
Martin

Voice messages Integrate

Discussed in #152

Originally posted by RestOp February 2, 2023
First of all, a great thanks for the integration!!!
Only because of it i have bought xplora watch for my sohn!
Now the question - is there a way to get voice message? I woult like to play it on google home speakers.

Workaround for logout in the Xplora® App

  1. add phone number from watch to contacts (as admin) As an admin user, add watches phone number to watches contacts #24 (comment)
  2. create a login profile for this phone number
  3. log into the app with the created profile to test whether it works
  4. use the login data for the integration

[🏗️ FR] Ignore location if accuracy is not good

Is your feature request related to a problem? Please describe.

Have set this up to get notified when my son leaves school and gets home. However, during lunch breaks when he is in the playground, I get notifications because the GPS sensitivity is 1500m and it thinks he has left the relevant school zone.

Describe the feature you want

The ability to set a level of accuracy, and to ignore lat/long co-ordinates that are returned with a worse accuracy.

Additional context

No response

Smartwatch unavailable seit 0.0.25

Hi,

seit dem Wechsel auf 0.0.25 ist unsere Smartwatch nicht mehr verfügbar. Auch wenn ich die watch_id in der config einfüge. Was mache ich falsch?

xplora_watch:
  country_code: "+49"
  phonenumber: "1xxxxxx"
  password: "xxxxxx"
  userlang: "de-DE"
  timezone: "Europe/Berlin"
  child_phonenumber:
    - "1xxxxxx"
  watch_id:
    - 0xxxxxxxxxxxx1
  types:
    - "battery"
    - "xcoin"
    - "state"
    - "safezone"
    - "charging"
    - "silents"
    - "alarms"
    - "dt_watch"
  safezones: "show"
  scan_interval: 300
  tracker_scan_interval: 60

Log:

Logger: homeassistant.components.binary_sensor
Source: custom_components/xplora_watch/binary_sensor.py:71
Integration: Binärsensor (documentation, issues)
First occurred: 12:09:35 (1 occurrences)
Last logged: 12:09:35

Error while setting up xplora_watch platform for binary_sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/xplora_watch/binary_sensor.py", line 71, in async_setup_platform
    client_name = await controller.getWatchUserName_async(watch_id)
  File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 177, in getWatchUserName_async
    raise Exception("Child phonenumber not found!")
Exception: Child phonenumber not found!
Logger: homeassistant.components.device_tracker
Source: custom_components/xplora_watch/device_tracker.py:136
Integration: Geräte-Tracker (documentation, issues)
First occurred: 12:09:37 (1 occurrences)
Last logged: 12:09:37

Error setting up platform legacy xplora_watch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 251, in async_setup_legacy
    setup = await self.platform.async_setup_scanner(
  File "/config/custom_components/xplora_watch/device_tracker.py", line 107, in async_setup_scanner
    return await scanner.async_init()
  File "/config/custom_components/xplora_watch/device_tracker.py", line 136, in async_init
    username = await self._controller.getWatchUserName_async(id)
  File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 177, in getWatchUserName_async
    raise Exception("Child phonenumber not found!")
Exception: Child phonenumber not found!
Logger: homeassistant.components.switch
Source: custom_components/xplora_watch/switch.py:43
Integration: Schalter (documentation, issues)
First occurred: 12:09:37 (1 occurrences)
Last logged: 12:09:37

Error while setting up xplora_watch platform for switch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/xplora_watch/switch.py", line 43, in async_setup_platform
    name = f'{await controller.getWatchUserName_async(id)} Watch Silent {silent["start"]}-{silent["end"]} {id}'
  File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 177, in getWatchUserName_async
    raise Exception("Child phonenumber not found!")
Exception: Child phonenumber not found!
Logger: homeassistant.components.sensor
Source: custom_components/xplora_watch/sensor.py:67
Integration: Sensor (documentation, issues)
First occurred: 12:09:47 (1 occurrences)
Last logged: 12:09:47

Error while setting up xplora_watch platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/xplora_watch/sensor.py", line 67, in async_setup_platform
    client_name = await controller.getWatchUserName_async(watch_id)
  File "/usr/local/lib/python3.9/site-packages/pyxplora_api/pyxplora_api_async.py", line 177, in getWatchUserName_async
    raise Exception("Child phonenumber not found!")
Exception: Child phonenumber not found!

[🐛 BUG] Tracking does not work if device_tracker is bound to person

System Health details

Version core-2022.9.5
Installation Type Home Assistant Core
Development false
Supervisor false
Docker false
User homeassistant
Virtual Environment true
Python Version 3.10.6
Operating System Family Linux
Operating System Version 5.4.70-ravor
CPU Architecture x86_64
Timezone Europe/Berlin
Configuration Directory /home/homeassistant/.homeassistant

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

Hi,

in my HA instance all trackable users are configured as persons (as in "settings" -> "people"). For some reason, the person is always displayed as "unknown" or "away" instead of the location. Even in a map card, the person is not displayed. If I choose to use the device tracker entity directly, it is displayed as it should.

Could you check that?

Reproduction steps

  1. Create a person in "settings" -> "people"
  2. Associate the device_tracker entity from the watch to the person
  3. Add person to UI or to map card

Expected outcome:
Person should be displayed like device_tracker entity

Actual outcome:
Person does not have a location

Debug logs

Data is fetched:
Sep 19 12:57:30 hwr-server01 hass[11602]: 2022-09-19 12:57:30.380 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch data from Xplora®: 6983592
Sep 19 12:57:30 hwr-server01 hass[11602]: 2022-09-19 12:57:30.686 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] load address from openstreetmap.org
Sep 19 12:57:30 hwr-server01 hass[11602]: 2022-09-19 12:57:30.686 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Finished fetching xplora_watch-34051 data in 2.686 seconds (success: True)

Battery drainage

Hi, I appreciate your work and the integration works like charm but the battery drainage is enormous on our Xplora3 watch, even if the watch is not in use and if I set the intervals to 30 minutes or so. Do you have any tips to reduce that with configuration variables? Is it possible to set the intervals to 0 and scan manually via device_tracker.see on demand?

image

🐛 Fail to configure integration after upgrade to 2.0.8

System Health details

System Information

version core-2022.9.7
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.5
os_name Linux
os_version 5.15.61-v8
arch aarch64
timezone Europe/Helsinki
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4880
Installed Version 1.27.2
Stage running
Available Repositories 1117
Downloaded Repositories 14
Home Assistant Cloud
logged_in true
subscription_expiration 12 August 2023 at 03:00
relayer_connected true
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled false
remote_server eu-west-2-3.ui.nabu.casa
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 9.0
update_channel stable
supervisor_version supervisor-2022.09.1
agent_version 1.3.0
docker_version 20.10.17
disk_total 229.2 GB
disk_used 11.0 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Samba share (10.0.0), Terminal & SSH (9.6.1), Z-Wave JS UI (1.0.1), Home Assistant Google Drive Backup (0.108.4), Glances (0.16.0), PS5 MQTT (1.1.0), Mosquitto broker (6.1.3), Z-Wave JS (0.1.73), RPC Shutdown (2.2)
Dashboards
dashboards 1
resources 4
views 6
mode storage
Recorder
oldest_recorder_run 4 September 2022 at 08:26
current_recorder_run 2 October 2022 at 14:14
estimated_db_size 1961.62 MiB
database_engine sqlite
database_version 3.38.5

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

image

No settings have changed, integration was working in 2.0.6. Entities become unavailable, I try to reconfigure the integration and can't get past above error message.

Reproduction steps

  1. Have a working integration v2.0.6
  2. Update to 2.0.8 in HACS
  3. Try to configure the integration
    ...

Debug logs

2022-10-02 14:27:15.969 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-10-02 14:27:26.100 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {<redacted> 'xplora_watch', <redacted>}
2022-10-02 14:27:41.914 INFO (MainThread) [homeassistant.setup] Setting up xplora_watch
2022-10-02 14:27:41.915 DEBUG (MainThread) [custom_components.xplora_watch] Set up the Xplora® Watch Version 2 component.
2022-10-02 14:27:41.915 INFO (MainThread) [homeassistant.setup] Setup of domain xplora_watch took 0.0 seconds
2022-10-02 14:27:41.979 DEBUG (MainThread) [custom_components.xplora_watch] Configure based on config entry.
2022-10-02 14:27:48.265 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch data from Xplora®: 6130339
2022-10-02 14:27:48.807 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] load address from openstreetmap.org
2022-10-02 14:27:48.808 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Finished fetching xplora_watch-8147 data in 4.787 seconds (success: True)
2022-10-02 14:27:51.459 DEBUG (MainThread) [custom_components.xplora_watch.helper] services.yaml path: /config/custom_components/xplora_watch/services.yaml
2022-10-02 14:27:51.470 INFO (MainThread) [homeassistant.components.device_tracker] Setting up device_tracker.xplora_watch
2022-10-02 14:27:51.474 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.xplora_watch
2022-10-02 14:27:51.484 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.xplora_watch
2022-10-02 14:27:51.487 INFO (MainThread) [homeassistant.components.switch] Setting up switch.xplora_watch
2022-10-02 14:27:51.503 INFO (MainThread) [homeassistant.components.notify] Setting up notify.xplora_watch
2022-10-02 14:27:51.505 DEBUG (SyncWorker_0) [custom_components.xplora_watch.notify] init Notify Service
2022-10-02 14:27:51.741 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up xplora_watch platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/xplora_watch/binary_sensor.py", line 63, in async_setup_entry
entities.append(XploraBinarySensor(config_entry, coordinator, ward, sw_version, uid, description))
File "/config/custom_components/xplora_watch/binary_sensor.py", line 87, in __init__
if "=" in _wuid:
TypeError: argument of type 'NoneType' is not iterable
2022-10-02 14:27:51.752 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up xplora_watch platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/xplora_watch/sensor.py", line 50, in async_setup_entry
entities.append(XploraSensor(config_entry, coordinator, ward, sw_version, uid, description))
File "/config/custom_components/xplora_watch/sensor.py", line 74, in __init__
if "=" in _wuid:
TypeError: argument of type 'NoneType' is not iterable
2022-10-02 14:27:51.989 ERROR (MainThread) [homeassistant.components.device_tracker] Error while setting up xplora_watch platform for device_tracker
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/xplora_watch/device_tracker.py", line 58, in async_setup_entry
XploraSafezoneTracker(hass, config_entry, safeZone, coordinator, ward, sw_version, uid)
File "/config/custom_components/xplora_watch/device_tracker.py", line 88, in __init__
if "=" in _wuid:
TypeError: argument of type 'NoneType' is not iterable
2022-10-02 14:27:52.463 ERROR (MainThread) [homeassistant.components.switch] Error while setting up xplora_watch platform for switch
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 281, in _async_setup_platform
await asyncio.shield(task)
File "/config/custom_components/xplora_watch/switch.py", line 50, in async_setup_entry
XploraSilentSwitch(config_entry, silent, coordinator, ward, sw_version, uid, description)
File "/config/custom_components/xplora_watch/switch.py", line 151, in __init__
if "=" in _wuid:
TypeError: argument of type 'NoneType' is not iterable

Friendly name in configuration

Is your feature request related to a problem? Please describe.

Friendly name

Describe the feature you want

Instead of/in addition to watch ID, have a input for a friendly name in the config window popup

Additional context

No response

[🏗️ FR] Replace not_home with unknown if no location data is available

Is your feature request related to a problem? Please describe.

The latitude and longitude from the Xplora watch is often missing. That results in the device tracker getting the status not_home.

Describe the feature you want

It would be great to return "unknown" if location data is not available, to make it easier to see a correct "status".

Additional context

Maybe the missing location data is what's been fixed in #48 . Nevertheless it's good with a fallback.

[🐛 BUG] Battery showing -1 and tracker not updating

System Health details

System Information

version core-2022.8.7
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.5
os_name Linux
os_version 5.15.60
arch x86_64
timezone Europe/Stockholm
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4790
Installed Version 1.27.1
Stage running
Available Repositories 1109
Downloaded Repositories 16
AccuWeather
can_reach_server ok
remaining_requests 48
Home Assistant Cloud
logged_in true
subscription_expiration 18 september 2022 02:00
relayer_connected true
remote_enabled true
remote_connected true
alexa_enabled true
google_enabled true
remote_server eu-west-2-5.ui.nabu.casa
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 8.5
update_channel stable
supervisor_version supervisor-2022.08.5
agent_version 1.2.1
docker_version 20.10.14
disk_total 30.8 GB
disk_used 7.9 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons SSH & Web Terminal (12.0.2), Studio Code Server (5.3.0), Node-RED (13.3.2), File editor (5.3.3), SONOS AudioClip TTS (2.0.3), Mosquitto broker (6.1.3), Zigbee2MQTT (1.27.2-1)
Dashboards
dashboards 4
resources 6
views 5
mode storage
Recorder
oldest_recorder_run 23 augusti 2022 11:08
current_recorder_run 2 september 2022 11:45
estimated_db_size 149.34 MiB
database_engine sqlite
database_version 3.38.5
Spotify
api_endpoint_reachable ok

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

I often lose contact with watches and as a result battery level displays as -1 and the device tracker is not updating position.

I get the error above, stating I need to restart the watch(es). Is there no way to reconnect to the watch other than restarting the watch? Why does this happen frequently? Does it have to do with logging in with the same account in the app (an issue I don't understand the instructions for how to avoid)?

Reproduction steps

Happens regularly, although I haven't yet identified the cause in order to reproduce it.

Debug logs

Logger: custom_components.xplora_watch.device_tracker
Source: custom_components/xplora_watch/device_tracker.py:173
Integration: Xplora® Watch (documentation, issues)
First occurred: 1 september 2022 23:01:08 (1300 occurrences)
Last logged: 11:38:40

no Data from Xplora Server: Watch ID xxxxxxxx, restart your Watch and try again!
no Data from Xplora Server: Watch ID xxxxxxxx, restart your Watch and try again!

🐛Config entry 'Xplora®' for xplora_watch integration not ready yet: 'text'; Retrying in background

What version of Integration has the issue?

@Ludy87

I did install version 2.7.0 and set-up the integration but it not starts and I get following messages in my logs

Logger: homeassistant.config_entries
Source: config_entries.py:424
First occurred: 21:21:24 (1 occurrences)
Last logged: 21:21:24

Config entry 'Xplora®' for xplora_watch integration not ready yet: 'text'; Retrying in background

AND

This error originated from a custom integration.

Logger: custom_components.xplora_watch.coordinator
Source: custom_components/xplora_watch/coordinator.py:130
Integration: Xplora® Watch (documentation, issues)
First occurred: 21:21:24 (6 occurrences)
Last logged: 21:24:18

Unexpected error fetching xplora_watch-5115 data: 'text'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 239, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/xplora_watch/coordinator.py", line 123, in _async_update_data
data = await self.data_loop(wuids, message_limit, remove_message)
File "/config/custom_components/xplora_watch/coordinator.py", line 130, in data_loop
res_chats = await self.controller.getWatchChatsRaw(wuid, limit=message_limit, show_del_msg=remove_message)
File "/usr/local/lib/python3.10/site-packages/pyxplora_api/pyxplora_api_async.py", line 368, in getWatchChatsRaw
result = ChatsNew.from_dict(result.get("chatsNew", None))
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/api.py", line 83, in from_dict
return _decode_dataclass(cls, kvs, infer_missing)
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 201, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 275, in _decode_generic
res = _decode_generic(type_arg, value, infer_missing)
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 263, in _decode_generic
res = get_type_cons(type)(xs)
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 306, in
items = (_decode_dataclass(type_arg, x, infer_missing)
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 201, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 273, in _decode_generic
res = _decode_dataclass(type_arg, value, infer_missing)
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 159, in _decode_dataclass
field_value = kvs[field.name]
KeyError: 'text'

System Health details

System Information

version core-2023.2.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.7
os_name Linux
os_version 5.15.90
arch aarch64
timezone Europe/Bucharest
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4708
Installed Version 1.30.1
Stage running
Available Repositories 1203
Downloaded Repositories 20
AccuWeather
can_reach_server ok
remaining_requests 46
Home Assistant Cloud
logged_in true
subscription_expiration February 15, 2023 at 02:00
relayer_connected true
remote_enabled true
remote_connected true
alexa_enabled false
google_enabled true
remote_server eu-central-1-4.ui.nabu.casa
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 9.5
update_channel stable
supervisor_version supervisor-2023.01.1
agent_version 1.4.1
docker_version 20.10.22
disk_total 113.9 GB
disk_used 41.3 GB
healthy true
supported true
board odroid-n2
supervisor_api ok
version_api ok
installed_addons Spotify Connect (0.12.2), Home Assistant Google Drive Backup (0.110.1), File editor (5.5.0), SSH & Web Terminal (13.0.2), Samba share (10.0.0), MariaDB (2.5.2), ESPHome (2022.12.8), Assistant Relay (0.7.4), Mosquitto broker (6.1.3), Zigbee2MQTT (1.30.1-1)
Dashboards
dashboards 1
resources 12
views 11
mode storage
Recorder
oldest_recorder_run February 3, 2023 at 14:24
current_recorder_run February 13, 2023 at 21:18
estimated_db_size 1601.95 MiB
database_engine mysql
database_version 10.6.10
Sonoff
version 3.4.0 (5406fa7)
cloud_online 10 / 10
local_online 10 / 10
Spotify
api_endpoint_reachable ok

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

I did install version 2.7.0 and set-up the integration but it not starts and I get following messages in my logs

Logger: homeassistant.config_entries
Source: config_entries.py:424
First occurred: 21:21:24 (1 occurrences)
Last logged: 21:21:24

Config entry 'Xplora®' for xplora_watch integration not ready yet: 'text'; Retrying in background

AND

This error originated from a custom integration.

Logger: custom_components.xplora_watch.coordinator
Source: custom_components/xplora_watch/coordinator.py:130
Integration: Xplora® Watch (documentation, issues)
First occurred: 21:21:24 (6 occurrences)
Last logged: 21:24:18

Unexpected error fetching xplora_watch-5115 data: 'text'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 239, in _async_refresh
self.data = await self._async_update_data()
File "/config/custom_components/xplora_watch/coordinator.py", line 123, in _async_update_data
data = await self.data_loop(wuids, message_limit, remove_message)
File "/config/custom_components/xplora_watch/coordinator.py", line 130, in data_loop
res_chats = await self.controller.getWatchChatsRaw(wuid, limit=message_limit, show_del_msg=remove_message)
File "/usr/local/lib/python3.10/site-packages/pyxplora_api/pyxplora_api_async.py", line 368, in getWatchChatsRaw
result = ChatsNew.from_dict(result.get("chatsNew", None))
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/api.py", line 83, in from_dict
return _decode_dataclass(cls, kvs, infer_missing)
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 201, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 275, in _decode_generic
res = _decode_generic(type_arg, value, infer_missing)
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 263, in _decode_generic
res = get_type_cons(type)(xs)
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 306, in
items = (_decode_dataclass(type_arg, x, infer_missing)
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 201, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 273, in _decode_generic
res = _decode_dataclass(type_arg, value, infer_missing)
File "/usr/local/lib/python3.10/site-packages/dataclasses_json/core.py", line 159, in _decode_dataclass
field_value = kvs[field.name]
KeyError: 'text'

Reproduction steps

Not Available

Debug logs

Not Available

[🏗️ FR] Travel time not working - showing unknown

Is your feature request related to a problem? Please describe.

After adding the functionality for home / not_home state - Thank you very much for that - I tried to use the Google Travel Time together with the person (which only has Xplora attached to it) or with the device tracker but it still shows unknown as it seems to be unable to get the coordinates for the Xplora entities.

Describe the feature you want

I want to use the Google Travel Time together with the Xplora entities, but it seems, that this is not implemented either.

grafik

Additional context

No response

🏗️ Add service to update watch location/other information on demand

Is your feature request related to a problem? Please describe.

The update interval defaults to 180 seconds, which unfortunately appears to cause accelerated battery drain on the device as it is polled at the interval. I have increased the default interval to save battery, but this means that some automations will be delayed (e.g. arriving home, disarming routines activated when out of the home).

Describe the feature you want

I would like a service I can call in HA to request an update to the location/other information for a specific watch.

Use-case: presence is detected at home, but no watch device is detected in the zone. This triggers an update for the watch location, which then triggers other actions related to person(s) being at home.

Use-case: guardian wants to know where their child is, but without adjusting the update frequency for the integration.

Additional context

No response

🐛 All sensors are in "Unknown" state after update on 2.70

What version of Integration has the issue?

2.70

System Health details

System Information

version core-2023.2.3
installation_type Home Assistant Supervised
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.7
os_name Linux
os_version 4.19.0-23-amd64
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 4853
Installed Version 1.30.1
Stage running
Available Repositories 1205
Downloaded Repositories 17
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 Debian GNU/Linux 10 (buster)
update_channel stable
supervisor_version supervisor-2023.01.1
agent_version null
docker_version 20.10.17
disk_total 455.9 GB
disk_used 97.2 GB
healthy failed to load: Unhealthy
supported failed to load: Unsupported
supervisor_api ok
version_api ok
installed_addons File editor (5.5.0), Home Assistant Google Drive Backup (0.110.1), Mosquitto broker (6.1.3), Node-RED (14.0.2), Samba share (10.0.0), Log Viewer (0.14.0), SSH & Web Terminal (13.0.2), Zigbee2MQTT (1.30.1-1), phpMyAdmin (0.8.3), MariaDB (2.5.2), Xiaomi Mi Scale (0.3.6), Apache2 Minimal (2.5.0)
Dashboards
dashboards 5
resources 12
views 15
error /config/notexist.yaml not found
mode yaml
Recorder
oldest_recorder_run September 25, 2022 at 5:16 PM
current_recorder_run February 13, 2023 at 10:09 AM
estimated_db_size 7859.31 MiB
database_engine mysql
database_version 10.6.10

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

🐛 All sensors are in "гnknown" state after update on 2.70

Reproduction steps

  1. Updated to 2.70
  2. Restarted
  3. No sensors working
  4. Restarted one more time
  5. No sensors working

Debug logs

2023-02-13 10:16:36.262 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch data from Xplora: XXXXXXXX
2023-02-13 10:14:38.618 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch data from Xplora: XXXXXXXX
2023-02-13 10:14:39.768 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Finished fetching xplora_watch-288778 data in 2.462 seconds (success: True)
2023-02-13 10:16:34.771 DEBUG (MainThread) [custom_components.xplora_watch.services] update all information: {'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'}
2023-02-13 10:16:34.994 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] pyxplora_api lib version: 2.5.17-1287
2023-02-13 10:16:37.521 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] pyxplora_api lib version: 2.5.17-1287
2023-02-13 10:16:38.725 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch data from Xplora: XXXXXXXX
2023-02-13 10:16:39.871 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Finished fetching xplora_watch-XXXXXXXX data in 2.449 seconds (success: True)
2023-02-13 10:18:34.787 DEBUG (MainThread) [custom_components.xplora_watch.services] update all information: {'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'}
2023-02-13 10:18:34.934 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] pyxplora_api lib version: 2.5.17-1287
2023-02-13 10:18:36.216 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch data from Xplora: XXXXXXXX
2023-02-13 10:18:37.470 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] pyxplora_api lib version: 2.5.17-1287
2023-02-13 10:18:38.681 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch data from Xplora: XXXXXXXX
2023-02-13 10:18:39.844 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Finished fetching xplora_watch-XXXXXXXXdata in 2.467 seconds (success: True)

Sensors don't update

IMPORTANCE: Of a service is activated by automation, the sensors will no longer be updated. Therefore, activate the xplora_watch.see service with a corresponding interval.

Check: #91

[🏗️ FR] service to manually trigger location update

Is your feature request related to a problem? Please describe.

As soon as I enable this integration and repeatedly check for the location of the watches, the battery depletes pretty quick. The higher I set the interval, the longer the battery lasts.

Describe the feature you want

I would like to be able to trigger a location update request on demand. So I would like to have the interval set to a pretty high value in the configuration and as soon as I trigger an automation this could trigger a service which would initiate a location update request.

Is this feasible?

Additional context

Thanks for this awesome integration ;-)

Shutdown function

Discussed in #109

Originally posted by GreyEarl November 13, 2022
Hi there,

I see that your Xplora library supports shutdown(wuid: str) function. Do you have plans to integrate in the custom component?

Use case sample:

When after X time AND is connected to home WiFi run shutdown command to save battery until next day of usage.

Thanks!

🏗️ Allow zone resolution in person integration

Is your feature request related to a problem? Please describe.

No response

Describe the feature you want

At the moment, the device-tracker has 2 states: "Home" / "Not Home", I would like to use the integrated zone resolution for the device tracker as well as for the person integration.

To make your life a little bit easier, I've already created a patch for it: #63

Additional context

No response

Adding device

Hi

I have copied the content of "custom_components/xplora_watch" into a new folder in HASS IO: "custom_components/xplora_watch".

I have added the following to configuration.yaml:

"xplora_watch:
country_code: "+45"
phonenumber: "[my phone number]"
password: "[account password]"
userlang: "dk-DK"
timezone: "Europe/Copenhagen"
child_phonenumber: "61[******]"
types:
- "battery"
- "xcoin"
- "state"
- "safezone"
- "charging"
- "silents"
- "alarms"
- "dt_watch"
safezones: "show"
scan_interval: 180
tracker_scan_interval: 60"

However, I am not able to see the device under states. What am I doing wrong? And if I need the watch ID - where will I find it?

🐛 Integration seems not to Work with HA2022.12.0

System Health details

System Information

version core-2022.12.0
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.7
os_name Linux
os_version 5.15.74
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 5000
Installed Version 1.28.4
Stage running
Available Repositories 1231
Downloaded Repositories 44
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 9.3
update_channel stable
supervisor_version supervisor-2022.11.2
agent_version 1.4.1
docker_version 20.10.18
disk_total 156.8 GB
disk_used 22.4 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons Home Assistant Google Drive Backup (0.109.2), ADB - Android Debug Bridge (0.8.0), AirSonos (3.5.0), File editor (5.4.2), Mosquitto broker (6.1.3), Samba share (10.0.0), TasmoAdmin (0.21.0), Zigbee2MQTT (1.28.4-1), ESPHome (2022.11.5), Logitech Media Server (0.0.50), FTP (4.6.1), Studio Code Server (5.4.1), SSH & Web Terminal (12.1.3), Node-RED (13.5.3), EMQX (0.1.3)
Dashboards
dashboards 1
resources 17
views 22
mode storage
Recorder
oldest_recorder_run 1. Dezember 2022 um 13:39
current_recorder_run 7. Dezember 2022 um 23:46
estimated_db_size 2915.95 MiB
database_engine sqlite
database_version 3.38.5
Spotify
api_endpoint_reachable ok

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

Integration seems Not to Work with HA 2022.12.0

Reproduction steps

...

Debug logs

Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht

Logger: aiohttp.server
Source: custom_components/xplora_watch/config_flow.py:235
Integration: Xplora® Watch (documentation, issues)
First occurred: 07:15:59 (2 occurrences)
Last logged: 07:16:22

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 222, in forwarded_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 81, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 136, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 218, in post
    return await super().post(request)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 73, in wrapper
    result = await method(view, request, data, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 71, in post
    result = await self._flow_mgr.async_init(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 226, in async_init
    flow, result = await task
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 253, in _async_init
    result = await self._async_handle_step(flow, flow.init_step, data, init_done)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 368, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/config/custom_components/xplora_watch/config_flow.py", line 235, in async_step_init
    await controller.init()
  File "/usr/local/lib/python3.10/site-packages/pyxplora_api/pyxplora_api_async.py", line 89, in init
    raise LoginError(self.error_message)
pyxplora_api.exception_classes.LoginError: Login to Xplora® API failed. Check your input!
Cannot read property 'msg' of undefined

Integration not updating entities

System Health details

System Information

version core-2022.10.4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.5
os_name Linux
os_version 5.15.61-v8
arch aarch64
timezone Europe/Oslo
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4933
Installed Version 1.28.2
Stage running
Available Repositories 1123
Downloaded Repositories 10
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 9.2
update_channel stable
supervisor_version supervisor-2022.10.0
agent_version 1.4.1
docker_version 20.10.17
disk_total 28.6 GB
disk_used 7.5 GB
healthy true
supported true
board rpi4-64
supervisor_api ok
version_api ok
installed_addons Samba share (10.0.0), Node-RED (13.4.0), SSH & Web Terminal (12.0.2), Home Assistant Google Drive Backup (0.108.4), File editor (5.4.1), Glances (0.16.0), Log Viewer (0.14.0), Mosquitto broker (6.1.3), Let's Encrypt (4.12.7), NGINX Home Assistant SSL proxy (3.1.5)
Dashboards
dashboards 3
resources 4
views 9
mode storage
Recorder
oldest_recorder_run 18. oktober 2022 kl. 02:12
current_recorder_run 18. oktober 2022 kl. 17:25
estimated_db_size 4.87 MiB
database_engine sqlite
database_version 3.38.5

Checklist

  • I have enabled debug logging for my installation.
  • This issue only contains 1 issue (if you have multiple issues, open one issue for each issue).

Describe the issue

Xplora integration installs and configures without issues, but the entities does not update. The watch is on, online, and have been working earlier. It was also working for some time after the integration got it's own UI in "Integrations." Have been trying login with phone number and email, both seem to be acceptet, but not updating.
xplora

Have tried to reinstall the integration, removing the installation in HACS, restarting HA between every (un)install, and rebooting host numerous times.

After enabling debug-mode, I get server-connect timeout, see attachment.

Reproduction steps

...

Debug logs

Logger: custom_components.xplora_watch.coordinator
Source: custom_components/xplora_watch/coordinator.py:64
Integration: Xplora® Watch (documentation, issues)
First occurred: 03:03:02 (1 occurrences)
Last logged: 03:03:02

Unexpected error fetching xplora_watch-864 data: Cannot connect to the server. -
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 205, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 164, in _async_update_data
    return await self.update_method()
  File "/config/custom_components/xplora_watch/coordinator.py", line 68, in _async_update_watch_data
    await self.init()
  File "/config/custom_components/xplora_watch/coordinator.py", line 64, in init
    await self.controller.init(True)
  File "/usr/local/lib/python3.10/site-packages/pyxplora_api/pyxplora_api_async.py", line 86, in init
    raise LoginError(self.error_message)
pyxplora_api.exception_classes.LoginError: Cannot connect to the server. -

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.