I currently do a lot of my monitoring via MQTT for my solar system etc. I currently use MQTT Alert and set up my alerts to ring my phone at top volume until silenced. But I have missed more than one alert because I don’t think the background agent is always active and it doesn’t necessarily start when I reboot the phone. While the application does “monitor” the MQTT connection, it only makes a short sound if it drops, with no followup until you notice that there was a notification and go back into it to figure out why the connection is down.

Does anyone have foolproof way of getting things like security alerts that will always trigger on the phone, without having to check the phone 10 times a day to be sure the application is on and the connection is active?

  • y0kai@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    5 days ago

    for my solar system etc.

    Of course I didn’t just search “self hosted solar system” only to be disappointed it wasn’t about planets lol that would be ridiculous.

  • daniskarma@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    7 days ago

    I selfhost a matrix instance just for myself and my bots. And send myself notifications to the phone client element. I can even trigger a fake VoIP phone call for really important stuff.

    Notifications come through as any other message app notification. And calls do the same.

    In order to get all notifications and not destroy your phone battery I found out that you need to download the google play version as you need google services for notifications.

    • lemonuri@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      6 days ago

      Matrix seems a bit overkill. I think they would be better off with something like gotify.

      Take a look at dontkillmyapp.com to see if your phone provider hinders your messages.

      There is unified push as Google alternative as well, which works with the schildichat matrix client.

  • Matty_r@programming.dev
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 days ago

    I have some alerts like that using Pushover. You can set it to treat high priority alerts like an alarm which bypasses things like do not disturb and silence etc

  • TheButtonJustSpins@infosec.pub
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    8 days ago

    I just get alerts over telegram. They’re just regular notifications, but you could probably set specific notification behavior and sounds for the app?

    Edit: Though that’s not a selfhosted solution. Sometimes it’s a decision between reliability and selfhosted. e.g., I went back to Tailscale from Headscale when I lost connectivity through Headscale and couldn’t figure out how to get it back.

    • Onomatopoeia@lemmy.cafe
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 days ago

      Sometimes it’s a decision between reliability and selfhosted

      This is an excellent point to keep in mind.

      Using something like Telegram for notifications/alerts exposes a minimal amount of info/metadata.

      XMPP could be a useful alternative, since there are numerous hosts/providers available, and it’s a privacy minded community.

    • ikidd@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 days ago

      I can get notification to ntfy, but I’m not sure if the app is certain to blow my phone up until I notice it, which is my goal. Frankly, if I could trigger the Presidential Alert, I would do that.

  • paf@jlai.lu
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 days ago

    I’m using home assistant, with mqtt which acts for many things and I get notification in different way depending the needs. Could be home assistant app or telegram or lighting up some light or sending voice messages to a speaker. All notifications are triggered by automations looking at states. Haven’t done it but automation could be re launched automatically until (for exemple) I press a button or responding to telegram message

    • ikidd@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 days ago

      The application isn’t 100% likely to stay active in the background it seems. I tried to program one myself but there’s a lot of bullshit going on in background apps in Android that I’m not familiar enough with to trust that I can do any better.

      • Ulrich@feddit.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 days ago

        Okay so you didn’t miss the notification, you didn’t receive it at all?

  • sugar_in_your_tea@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 days ago

    If you turn off the battery optimization setting, does it get better?

    I was missing a bunch of alerts for Signal because I downloaded it outside the GPlay store (which handles waking up processes better), and I got much more reliable notifications after disabling that setting. It uses a lot more battery though, but maybe that’s worth it for you.

      • sugar_in_your_tea@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        7 days ago

        Mine is a Pixel running GrapheneOS, and it doesn’t seem to be on your list. My issue is that I’m not using Google Play Services, so I don’t get the benefits that it provides, one of which is managing notifications. So Signal has to manage notifications itself, which means it basically needs to always be running instead of the more typical Android model of being woken up when there’s a notification.

        Or maybe it’s what you linked. Either way, I’d check that and see if it’s an easy fix.

        • mac@lemm.ee
          link
          fedilink
          English
          arrow-up
          1
          ·
          7 days ago

          For signal, you can look into a fork called Molly. I have Molly setup, along with molly-sockets, which allows for notifications via unified push