Ludy87 / xplora_watch

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

Message sent through service, arrives but not recorded #218

Closed Caine72 closed 1 year ago

Caine72 commented 1 year ago

What version of Integration has the issue?

2.7.16

System Health details

System Information

version core-2023.5.4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.11
os_name Linux
os_version 6.1.29
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 | 5000 Installed Version | 1.32.1 Stage | running Available Repositories | 1354 Downloaded Repositories | 43
Home Assistant Supervisor host_os | Home Assistant OS 10.2 -- | -- update_channel | stable supervisor_version | supervisor-2023.06.1 agent_version | 1.5.1 docker_version | 23.0.6 disk_total | 116.7 GB disk_used | 11.2 GB healthy | true supported | true board | generic-x86-64 supervisor_api | ok version_api | ok installed_addons | Z-Wave JS (0.1.83), AppDaemon (0.13.0), File editor (5.6.0), Home Assistant Google Drive Backup (0.110.4), Terminal & SSH (9.7.1), Studio Code Server (5.6.1), Mosquitto broker (6.2.1), Uptime Kuma (0.7.4), Zigbee2MQTT (1.31.1-1)
Dashboards dashboards | 6 -- | -- resources | 26 views | 40 mode | storage
Recorder oldest_recorder_run | 31 May 2023 at 14:56 -- | -- current_recorder_run | 7 June 2023 at 15:46 estimated_db_size | 774.08 MiB database_engine | mysql database_version | 10.6.11

Checklist

Describe the issue

I have set up the Xplora integration as a "chat" interface in home assistant where i read the message ( with the help of the markdown template) and send messages via a script that populates the send service input field.

When I call the send-service. The message arrives in the phone. But the message never shows up like a sent message. It is not visible in the app either. It is like it's invisible.

As I am building the app like a chat interface i want, of course, to be able to see what messages I have sent. Is this just affecting me.

In image: The message "Test" has been sent via the app, confirming that messages sent via app appears in the log. While sending it via the service does not.

image

Reproduction steps

  1. Connect the xplora integration with admin account
  2. go to Developer tools --> Services
  3. Send message e.g
service: xplora_watch.send_message
data:
  message: Test 5
  target: AN_TARGET_ID

Expected outcome:

Actual outcome:

Debug logs

I cannot find that any debug logs even though i enabled this.
github-actions[bot] commented 1 year ago

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

Ludy87 commented 1 year ago

Hi @Caine72 , I can't reproduce the problem.

Caine72 commented 1 year ago

@Ludy87 Hi! Managed to grab a log. Seems like my log file was corrupted hence why I could not see it yesterday. Posting and hoping you see something out of the ordinary.

Additional things I see is that the xplora coin is always 0, but location and steps are correctly updated.. =/

2023-06-08 20:03:30.421 INFO (MainThread) [homeassistant.components.automation.read_message_from_watch] Xplora - Read Messages from watch: Executing step call service
2023-06-08 20:03:30.423 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch message data from Xplora: 6256904
2023-06-08 20:03:34.582 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] new data from Message Service
2023-06-08 20:03:34.582 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Manually updated xplora_watch-1837 data
2023-06-08 20:03:41.904 INFO (MainThread) [homeassistant.components.script.send_xplora_message] Send xplora message: Running script sequence
2023-06-08 20:03:41.905 INFO (MainThread) [homeassistant.components.script.send_xplora_message] Send xplora message: Executing step call service
2023-06-08 20:03:41.910 DEBUG (MainThread) [custom_components.xplora_watch.services] Sending message 'Puss puss' to 'the_watch_id'
2023-06-08 20:03:42.084 INFO (MainThread) [homeassistant.components.script.send_xplora_message] Send xplora message: Executing step Clear field
2023-06-08 20:03:42.090 INFO (MainThread) [homeassistant.components.script.send_xplora_message] Send xplora message: Skipped disabled step call_service
2023-06-08 20:04:00.418 INFO (MainThread) [homeassistant.components.automation.read_message_from_watch] Xplora - Read Messages from watch: Running automation actions
2023-06-08 20:04:00.418 INFO (MainThread) [homeassistant.components.automation.read_message_from_watch] Xplora - Read Messages from watch: Executing step call service
2023-06-08 20:04:00.421 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch message data from Xplora: 6256904
2023-06-08 20:04:09.502 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] new data from Message Service
2023-06-08 20:04:09.502 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Manually updated xplora_watch-1837 data
2023-06-08 20:04:30.418 INFO (MainThread) [homeassistant.components.automation.read_message_from_watch] Xplora - Read Messages from watch: Running automation actions
2023-06-08 20:04:30.419 INFO (MainThread) [homeassistant.components.automation.read_message_from_watch] Xplora - Read Messages from watch: Executing step call service
2023-06-08 20:04:30.420 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch message data from Xplora: 6256904
2023-06-08 20:04:41.734 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] new data from Message Service
2023-06-08 20:04:41.734 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Manually updated xplora_watch-1837 data
2023-06-08 20:05:00.419 INFO (MainThread) [homeassistant.components.automation.read_message_from_watch] Xplora - Read Messages from watch: Running automation actions
2023-06-08 20:05:00.420 INFO (MainThread) [homeassistant.components.automation.read_message_from_watch] Xplora - Read Messages from watch: Executing step call service
2023-06-08 20:05:00.422 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Fetch message data from Xplora: 6256904
2023-06-08 20:05:07.344 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] new data from Message Service
2023-06-08 20:05:07.344 DEBUG (MainThread) [custom_components.xplora_watch.coordinator] Manually updated xplora_watch-1837 data
Caine72 commented 1 year ago

I cannot figure this out....

What i have tried is: Uninstalled integration. - Right after this i got 3 of the notifications i sent that evening with the initial fetch. Then nothing again. Changed so i do not add the first zero in the phone number. e.g. +46 073 turned into +46 73. Change the language: from sv to en. Change timezone to default from Europe/Stockholm Changed from friendly name to default name. Changed the amount of pulled messages. Changed so that i only pull messages.

Nothing seem to work .. Cannot see the calls my daughter made today. Cannot see the messages i have sent to her. I see three of 5 messages sent this evening when i was debugging.

Any idea what i can do more? The debug log seems to yield nothing. Can i in some way fake that there is messages to fetch? ( ruling out that the issue is in your code)

Ludy87 commented 1 year ago

If I had such problems, I would contact xplora if I were you.

Caine72 commented 1 year ago

Yeah. You know what. I am closing this issue.

Continued testing today and everything suddenly started to work as it should.

Possibly it has something to do with the app beeing installed on a device.

Initially did not get anything from yesterday synced. (still haven't) Sent messagage via the clock. Recived a notification to my phone that was logged out with a notice that I had a new message but it could not be read, because I was logged out... Proceed to removed the app as well.

Continued by sending yet another message. And now it "just" works...