Push Notifications now available!

Please tell me if it’s likely that some IP address pools are blocked?
I get error:
Cannot connect to host mobile-apps.home-assistant.io:443 ssl:None [Connect call failed ('151.101.1.195', 443)]
I tried ping from home (176.114.213.222) and work (176.114.204.65) to mobile-apps.home-assistant.io and it works. But cmd command telnet mobile-apps.home-assistant.io 443 tells me could not open connection to the host on port 443 connect failed
If i use telnet mobile-apps.home-assistant.io 80 - port open…
My friend uses a different provider and everything works for him.

I understand what the problem is, server ip address is blocked by Roskomnadzor =(

That worked for me! Thanks!

Those notifications works great, but I’m wondering if it ever should be possible (on Android) to get actionable notifications?

If not, what is the most easy way to get those by other apps?

Telegram works wonderfully

1 Like

Not yet but when someone builds it we will have it in the Android app. html5 notifications will do it today though.

1 Like

For the life of me I just can’t get the notify.mobile service to appear:

These are my steps:

Open app

Phone is on same wifi as Home Assistant

App says “unable to find home assistant”

Enter address manually: http://192.168.2.109:8123

App says: “Unable to register application. Please check to ensure you have the mobile_app integration enabled on your home assistant instance””

Retry does nothing. However, I close app re-open it and it loads HA lovelace up instantly.

On my laptop, there is no “ notify.mobile_app” service in Developer tools – Services. Only notify.notify

Restart HA.

Still no notify.mobile_app in the services.

It should be noted that when I go to integrations and try to add the mobile app integration, it says: “Aborted - Open the mobile app to set up the integration with Home Assistant. See the docs for a list of compatible apps.”

The exact same behavior as above happens when I use my nabu casa url instead on my local URL. I’ve tried pretty much every version of “open app once” as per the instructions, but still no dice. I’ve logged in on the app and kept it on the “unable to register application” screen and restarted HA there for example. Still same problems.

I have cleared the android app cache, reinstalled it multiple times, but nothing I try gets the notify.mobile service to appear.

App is version 1.4. Hassio on Rpi4 0.104.2

Can anyone help get this working for me?

This was indeed very easy to start using. Thank you! Will be using this until the app gets the needed update.

Push notifications require both a globally available domain and SSL.

1 Like

I also tried the nabu casa URL and got the same results of it not working. But I will now only try the Nabu Casa URL in my testing if anyone here can help point me in the right direction.

I suppose the first stage of problem solving is: should I get the “Unable to register application. Please check to ensure the mobile_app integration enabled on your home assistant instance” error when I first try to correct to my HA instance on the app?

The auto-discovery never worked for me. Using my public domain that’s running over HTTPS worked correctly. Make sure you’re using the same address that you would use in a browser while away from your home network.

Next, if that’s still not working, uninstall and reinstall the application. Potentially some cache storage is messed up.

All of that is being done.

Note, when I get the Unabled to register application error, this appears in my logs:

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 135, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 123, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 50, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/http_api.py", line 80, in post
    DOMAIN, data=data, context={"source": "registration"}
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 109, in async_init
    result = await self._async_handle_step(flow, flow.init_step, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 172, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/config_flow.py", line 47, in async_step_registration
    self.hass, user_input[CONF_USER_ID], devt_entry.entity_id
  File "/usr/src/homeassistant/homeassistant/components/person/__init__.py", line 108, in async_add_user_device_tracker
    if device_tracker_entity_id in device_trackers:
TypeError: argument of type 'NoneType' is not iterable

Does your configuration.yaml file have a section for device_trackers:? If not, try adding that on its own line, restart your HA server, and try again.

When I add

device_trackers:

I get an error when I check my config saying

Component error: device_trackers - Integration 'device_trackers' not found.

So I tried it as device_tracker: and the checking config works. So I restarted, but get the same error I believe

Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
    resp = await task
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
    resp = await handler(request)
  File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 135, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 123, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 50, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/http_api.py", line 80, in post
    DOMAIN, data=data, context={"source": "registration"}
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 109, in async_init
    result = await self._async_handle_step(flow, flow.init_step, data)
  File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 172, in _async_handle_step
    result: Dict = await getattr(flow, method)(user_input)
  File "/usr/src/homeassistant/homeassistant/components/mobile_app/config_flow.py", line 47, in async_step_registration
    self.hass, user_input[CONF_USER_ID], devt_entry.entity_id
  File "/usr/src/homeassistant/homeassistant/components/person/__init__.py", line 108, in async_add_user_device_tracker
    if device_tracker_entity_id in device_trackers:
TypeError: argument of type 'NoneType' is not iterable

Although I notice this example in the HA “person” integration help page.

person:
  - name: Ada
    id: ada6789
    device_trackers:
      - device_tracker.ada

So could that be what you/the error meant?

because it’s device_tracker:

Correct. My previous comment says I inserted device_tracker: into configuration.yaml and the config checker worked, but the original issue persists.

Hopefully someone can help.

Maybe try to add this line to your configuration.yaml, restart HA and reinstall or delete data of the app in the meantime.

mobile_app:

I have that line already. and have wiped the data from the app many times.

Is there any way to look back over previous notifications?

Can there be multiple users on the mobile app ? (Nabucasa)
So you can use push notifications to several users/phones?