Ludy87 / xplora_watch

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

🐛call_name is empty in message sensor #227

Closed Enkil666 closed 11 months ago

Enkil666 commented 1 year ago

What version of Integration has the issue?

V2.8.2

System Health details

Version core-2023.5.4
Installation Type Home Assistant Supervised
Development false
Supervisor true
Docker true
User root
Virtual Environment false
Python Version 3.10.11
Operating System Family Linux
Operating System Version 5.15.84-v8+
CPU Architecture aarch64
Timezone Europe/Stockholm
Configuration Directory /config

Checklist

Describe the issue

I've been playing around with the messages for awhile now and I have noticed that the watch message sensor doesn't show anything under "call_name" (data.call_name) when displaying the CALL_LOG.

data.call_time is however working.

In the Xplora app, it shows correctly who the call was made to.

See image from Developer Tools: Screenshot 2023-06-27 at 15 17 51

Reproduction steps

  1. Display the watch message sensor on a Markdown card
  2. See the call log
  3. Call log displays sender, receiver, call time but not call_name ...

Debug logs

Can't see any in the logs regarding this.
github-actions[bot] commented 1 year ago

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

Ludy87 commented 1 year ago
{
  "id":"***",
  "msgId":"***",
  "readFlag":2,
  "sender":{
    "id":"***",
    "userId":"__w__360_***",
    "name":"Lorry",
    "phoneNumber":"***"
  },
  "receiver":{
    "id":"***",
    "userId":"__g__49_***",
    "name":"Enrico",  <--- Try 
    "phoneNumber":"***"
  },
  "data":{
    "tm":1687934793926,
    "sender_name":"Lorry",
    "text":"",
    "Text":"None",
    "battery":"None",
    "poi":"None",
    "city":"None",
    "address":"None",
    "province":"None",
    "locate_type":"None",
    "emoticon_id":"UNKNOWN__",
    "emoji_id":"UNKNOWN__",
    "call_name":"Papa",
    "call_time":1687934775,
    "call_type":1,
    "lat":"None",
    "lng":"None",
    "radius":"None",
    "delete_flag":0
  },
  "create":1687934794,
  "type":"CALL_LOG"
}

Maybe the phone book between the clock and the Xplora database is not in sync, try the receiver.name variable.

Screenshot 2023-06-28 085951

Enkil666 commented 1 year ago

Thanks Ludy87. Hm, receiver.name just gives me my name - and not the person the call was made to. If the phone book between the clock and the Xplora database is not in sync, how does one solve that I wonder?

My output (from your Markdown template) which displays nothing at "Angerufen wurde":

Screenshot 2023-06-28 at 09 30 39

But at least it's good to know that it's suppose to work :)

Ludy87 commented 1 year ago

Yes you are right, the receivername is the app user.

I tried it now with a woman calling her, and her name is displayed at call_name.

So I assume the problem is with Xplora.

Enkil666 commented 1 year ago

Got it. I'll try to reinstall the integration and see if that solves anything.

Thanks!

github-actions[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 11 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Ludy87 commented 7 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.