Ludy87 / xplora_watch

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

🏗️ One watch, adding more phone numbers in HA #247

Closed Enkil666 closed 10 months ago

Enkil666 commented 11 months ago

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

No response

Describe the feature you want

Me and my wife are both set as admins/guardians in the Xplora app so we can both send messages to the watch (or our daughter from her watch to us) from there. But we also would like this feature working in Home Assistant as we both have our own separate Lovelace dashboards. When adding my wife's phone number when already having my own added, it works, but no sensors added and this is displayed in the log: (for each sensor).

Platform xplora_watch does not generate unique IDs. ID xxx-watch-message-01103xxxxxxxxxxxxxxxxxxxxxxxxxxx already exists - ignoring sensor.xxx_watch_message_01103xxxxxxxxxxxxxxxxxxxxxxxxxxx

Is there anyway to fix this or perhaps add as a future feature?

Additional context

No response

github-actions[bot] commented 11 months ago

:wave: @henkehedin, your proposal will be considered. Please have some patience. This action was performed automatically.

Ludy87 commented 10 months ago

I'm not sure if it doesn't introduce errors.

Ludy87 commented 10 months ago

@Enkil666 check my preview version: https://github.com/Ludy87/xplora_watch/pull/253#issue-1868547742

Enkil666 commented 10 months ago

@Ludy87 Very nice! Had some initial trouble adding the other phone number, not sure if it's related to this. But then I managed to add it via email instead.

So it worked to add both me and my wife, with our separate sensors (I only added the "watch message" one for my wife).

I did encounter some issues along the way when trying out everything. For example when using the service "xplora_watch.see" - at first it didn't work to use my wifes phonenumber when selecting it at "Select the user who should trigger the tracking.". Got this error "required key not provided @ data['user']". Same thing when trying out the service "xplora_watch.read_message".

But now after a restart and some time has passed, it suddenly works so not sure what that was about.

But I'll keep testing and checking the logs for anything. But I can already say a big thank you @Ludy87 !