core: mobile_app integration broken

The problem

Two weeks ago my mobile app integration stopped tracking my cell phone as my person and my automation stopped. So I removed my cell phone from the integration and been unable to add it back. I am able to log into mobile apps and web, but no integrations or objects are created. I have tried the official Home Assistant, and Ariela apps.

When I try to register using the official app, I have a message pop up saying “Firebase Error. By skipping/ignoring this error you will be unable to receive push notifications” with the only option to skip. I have tried to setup the app using local only IP address, as well as my Nabu Casa URL. I have played with trusted networks and auth providers using every combination I could think of, to no effect.

In the official app, if I go to Configuration > Companion App, I can see all of my data there, and can enable sensors. But the mobile_app integration does not appear, and I cannot get any entities from my sensors.

What version of Home Assistant Core has the issue?

2021.12.10

What was the last working version of Home Assistant Core?

2021.12.10

What type of installation are you running?

Home Assistant OS

Integration causing the issue

mobile_app

Link to integration documentation on our website

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
    resp = await request_handler(request)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.9/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 98, 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 78, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 181, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/http_api.py", line 96, in post
    await hass.async_create_task(
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 203, in async_init
    flow, result = await task
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 230, 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 325, in _async_handle_step
    result: FlowResult = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/config_flow.py", line 45, in async_step_registration
    await person.async_add_user_device_tracker(
  File "/usr/src/homeassistant/homeassistant/components/person/__init__.py", line 121, in async_add_user_device_tracker
    await coll.async_update_item(
  File "/usr/src/homeassistant/homeassistant/helpers/collection.py", line 265, in async_update_item
    await self.notify_changes(
  File "/usr/src/homeassistant/homeassistant/helpers/collection.py", line 141, in notify_changes
    await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/helpers/collection.py", line 370, in _collection_changed
    for entity in await asyncio.gather(
  File "/usr/src/homeassistant/homeassistant/helpers/collection.py", line 350, in _update_entity
    await entities[change_set.item_id].async_update_config(change_set.item)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/person/__init__.py", line 450, in async_update_config
    self._unsub_track_device = async_track_state_change_event(
  File "/usr/src/homeassistant/homeassistant/helpers/event.py", line 250, in async_track_state_change_event
    entity_callbacks = hass.data.setdefault(TRACK_STATE_CHANGE_CALLBACKS, {})
AttributeError: 'NoneType' object has no attribute 'data'

Additional information

I am also seeing these messages a lot:

2022-01-28 11:43:29 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook fe2e912571b2bf8f42124846cc747d4bdb6e4b6ad3049c1cdff9d2cd492b0ff5 from 192.168.2.66 2022-01-28 11:43:35 WARNING (MainThread) [homeassistant.components.webhook] Received message for unregistered webhook fe2e912571b2bf8f42124846cc747d4bdb6e4b6ad3049c1cdff9d2cd492b0ff5 from 192.168.2.66

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 21 (4 by maintainers)

Most upvoted comments

reset all data and cash at your android HA app & relogin that’ll help

I have done that multiple times along the way, even so far as to trying completely new apps that have never been on my phone. I have not tested on my wife’s phone, for fear of losing her app/person functionality.

Also, I have created an entirely new user, removed app from my phone, rebooted, reinstalled, and signed in with the completely new account, and the same behavior exists. I am thinking this is due to either recent Android 12 update, or the recent Home Assistant update pas like 12.8, at which time none of this was a problem.

My wife’s phone is an older Samsung S10A, and if it would be helpful I am willing to troubleshoot on that. As it stands HA is significantly disabled without my presence tracking.

Yes this is Android, and yes I have Google Play services which is active and updated. This functionality has been working for a year and only stopped working with either the recent Android update or the recent home assistant update.