home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.88k stars 30.95k forks source link

Location updates from Mobile Apps not in Home-Assistant #127940

Open spunkt123 opened 1 month ago

spunkt123 commented 1 month ago

The problem

For a few days now I've been having the problem that the location updates from the mobile app (iOS 2024.9.4) are no longer transmitted to Home Assistant. In the mobile app, the locations are listed correctly under Location History, but no new location is recognized in the Home Assistant integration. No entry can be found in the log at that time.

Otherwise the app works. If I manually trigger a location update, the location is also updated.

I have already removed the device under the integration, reinstalled the mobile app and set it up again - unfortunately that didn't help.

What version of Home Assistant Core has the issue?

core-2024.10.1

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Mobile App

Link to integration documentation on our website

https://www.home-assistant.io/integrations/mobile_app

Diagnostics information

2024-10-08 17:02:52.035 WARNING (MainThread) [homeassistant.components.automation.firetablet_navcom_laden_beginnen] FireTablet / NavCom - Laden beginnen: Already running
2024-10-08 17:07:07.919 WARNING (MainThread) [homeassistant.helpers.template] Template variable warning: 'dict object' has no attribute 'id' when rendering 'Haustür wird geöffnet: {{ trigger.id }}'
2024-10-08 17:07:08.478 ERROR (MainThread) [homeassistant.components.mobile_app.notify] apns.payload.aps.sound.name must be a non-empty string. This message is generated externally to Home Assistant.
2024-10-08 17:07:08.803 ERROR (MainThread) [homeassistant.components.mobile_app.notify] apns.payload.aps.sound.name must be a non-empty string. This message is generated externally to Home Assistant.
2024-10-08 17:09:03.728 WARNING (MainThread) [homeassistant.components.automation.alarm_eyegee_bewegungserkennung] Alarm / Eyegee - Bewegungserkennung: Already running
2024-10-08 17:09:35.182 ERROR (stream_worker) [homeassistant.components.stream.stream.camera.eyegee_camera_fliessend] Error from stream worker: Stream ended; no additional packets
2024-10-08 17:09:39.400 WARNING (MainThread) [homeassistant.components.automation.haustuer_wird_geoeffnet] Haustür / wird geöffnet: Already running
2024-10-08 17:09:53.795 ERROR (MainThread) [homeassistant.components.automation.sonos_fernseher_volume] SONOS / Fernseher Volume: VolumeChange: Error executing script. Error rendering template for variables at pos 1: UndefinedError: 'homeassistant.util.read_only_dict.ReadOnlyDict object' has no attribute 'volume_level'
2024-10-08 17:09:53.795 ERROR (MainThread) [homeassistant.components.automation.sonos_fernseher_volume] SONOS / Fernseher Volume: Error executing script. Error rendering template for if at pos 2: UndefinedError: 'homeassistant.util.read_only_dict.ReadOnlyDict object' has no attribute 'volume_level'
2024-10-08 17:09:53.796 ERROR (MainThread) [homeassistant.components.automation.sonos_fernseher_volume] Error while executing automation automation.sonos_fernseher_volume: UndefinedError: 'homeassistant.util.read_only_dict.ReadOnlyDict object' has no attribute 'volume_level'
2024-10-08 17:09:54.484 ERROR (MainThread) [homeassistant.components.script.notify] Notify: holocube: If at step 2: If at step 1: Error executing script. Invalid data for call_service at pos 1: string value is None for dictionary value @ data['text']
2024-10-08 17:09:54.485 ERROR (MainThread) [homeassistant.components.script.notify] Notify: holocube: If at step 2: Error executing script. Invalid data for if at pos 1: string value is None for dictionary value @ data['text']
2024-10-08 17:09:54.485 ERROR (MainThread) [homeassistant.components.script.notify] Notify: holocube: Error executing script. Invalid data for if at pos 2: string value is None for dictionary value @ data['text']
2024-10-08 17:09:54.485 ERROR (MainThread) [homeassistant.components.script.notify] Notify: Error executing script. Invalid data for if at pos 2: string value is None for dictionary value @ data['text']
2024-10-08 17:09:54.486 ERROR (MainThread) [homeassistant.components.automation.holocube_sonos_musik] Holocube / Musik: If at step 1: Error executing script. Invalid data for call_service at pos 3: string value is None for dictionary value @ data['text']
2024-10-08 17:09:54.488 ERROR (MainThread) [homeassistant.components.automation.holocube_sonos_musik] Holocube / Musik: Error executing script. Invalid data for if at pos 1: string value is None for dictionary value @ data['text']
2024-10-08 17:09:54.489 ERROR (MainThread) [homeassistant.components.automation.holocube_sonos_musik] Error while executing automation automation.holocube_sonos_musik: string value is None for dictionary value @ data['text']

IMG_4961129BCF3E-1

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (mobile_app) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `mobile_app` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign mobile_app` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


mobile_app documentation mobile_app source (message by IssueLinks)

Tchet33 commented 1 month ago

Hello, I have the same problem, I think it start when my home assistant cloud free trial end. I don't use home assistant cloud, I have my own domain name and reverse proxy, it was working fine before I try home assistant cloud. In app companion log I can see webhook failed with status code 503 - URL: hooks.nabu.casa No sensor of my phones are updating when I am away from home, when I am at home with wifi connexion every sensors are updating perfectly. I can use companion app away from home, everything works fine expect sensors of the two iphones aren't updating. Here is my log in companion app debug: IMG_7763

EDIT: I try something, log out from app, delete companion app and reboot my phone. After reboot I download the app and log in and evething works fine!

christiandavies79 commented 1 week ago

Thanks, had a similar problem. Used your fix and it works perfectly again.