Push notifications do not get through

As a realtive newbee I am still setting up and connecting devices. Most seems to work but push notification do not come through. A (test) flow with a message runs fine as far as the flowchart shows. Notification setting on my phone allowed and in the Homey app as well. In the account settings no phone number is shown but I suppose Homey directs to the phone on which the app has been installed. Trying sending messages to the other user I made does not work either. Thanks for a tip to make the messages work…

1 Like

Maybe you can share screenshots of what you’ve done so far (flow) and where you’re looking for the result on your phone’s timeline … “Homey timeline” …

Are notifications in the Homey app on your phone actually enabled?

As a double check: No available flows in iOS widget - #13 by SunBeech

Somebody is not reading the whole post…?

Hi Ruurd, thanks for responding. Here some screenshots of a (test) flow the timeline and the notification settings



On the contrary :grinning_face:. As I had a similar issue when I set up my Homey. Hence my suggestion.

1 Like

Hi Sunbeech, thnx for the suggestion . Followed the steps as suggested in the link.At step 4 (tapping Homey pro on the account page) no question comes up but app return to the Home page. The same after logging out and in again. Does not seem to solve it.

1 Like

Did you also run the flowcard in your flow directly? …


Hi Ruurd,
Yes testing results in a check. No error messages whatsoever…

Please test with homeyscript

[replace USERNAME with a valid username]

// Enhanced Push Notification Function
async function sendPush(sMessage = '', sUser = 'USERNAME', sPriority = 'normal', bShow = false) {
  if (bShow) {
    try {

      let aUsers = Object.values(await Homey.users.getUsers());
      const oTargetUser = aUsers.find(u => u.name.toLowerCase().includes(sUser.toLowerCase()));

      if (!oTargetUser) {
        log(`ERROR :: `, `User not found: ${sUser}`);
        return false;
      }

      await Homey.flow.runFlowCardAction({
        uri: 'homey:manager:mobile',
        id: 'homey:manager:mobile:push_text',
        args: {
          user: {
            athomId: oTargetUser.athomId,
            id: oTargetUser.id
          },
          text: sMessage,
          priority: sPriority // Optional priority parameter
        },
      });

      return true;
    } catch (oError) {
      log(`ERROR :: `, `Push notification error: ${oError.message}`);
      return false;
    }
  }
}

log(await sendPush(`Test Message`, `USERNAME`, `normal`, true));

Hi Ruurd, thnx again for advise. But as mentioned I am a newbee. Homey script was unknown to me. So I installed it but I do not know how to proceed or what to command in order to test the flow with Homeyscript. Need to be taken by the hand I’m afraid.

.


from this point.

Add (+) a script named sendPush. Paste the script above in this new file, at the end of the script rename USERNAME in a valid username, and run “> Test” …

Share the output

Hi Ruurd,
Hope I did it right (typed my username ONLY in the last line) and this is what it results in (no message coming in on my phone) or timeline of the app:

This means we have not found the cause … It might be a network related problem.
What is left:

Summary Table: Troubleshooting Steps

Step Action
Check notification settings Ensure Homey app notifications are enabled and not restricted by OS features
Reboot devices Restart both Homey and your phone
Reinstall app Uninstall and reinstall the Homey app
Review script parameters Provide both athomId and id for user in push notification scripts, we did this!
Avoid flooding Insert delays between notifications to prevent rate-limiting or timeline lockout
Test on another device Try sending to a different phone or user

If nothing above helps, please contact Homey Support:

App or Homey Platform Bugs

  • Occasionally, timeline or push notifications stop working due to bugs in Homey’s firmware or app. Checking the Homey status page or community forums for ongoing incidents can help2511.
  • If you suspect a bug, contact Athom support.

Additional:

run the script (getUsers) below to check the users and usernames:

try {
  // Attempt to fetch all users
  const users = await Homey.users.getUsers();

  // Check if users object is valid and non-empty
  if (!users || Object.keys(users).length === 0) {
    const msg = 'No users found on this Homey.';
    console.log(msg);
    return msg;
  }

  // Prepare output
  let output = 'Available Homey Users:\n';
  Object.values(users).forEach(user => {
    // Check for required properties and handle missing ones
    const name = user.name || 'N/A';
    const id = user.id || 'N/A';
    const athomId = user.athomId || 'N/A';
    const email = user.email || 'N/A';
    output += `\n- Name: ${name}\n  id: ${id}\n  athomId: ${athomId}\n  Email: ${email}\n`;
    console.log(`User found: Name="${name}", id="${id}", athomId="${athomId}", Email="${email}"`);
  });

  return output;

} catch (err) {
  // Log and return error details
  const errorMsg = `Error fetching users: ${err && err.message ? err.message : err}`;
  console.error(errorMsg);
  return errorMsg;
}

HI Ruurd,
Notification settings in the app on the phone: settings checked, they are the same as in the Eufy app from which I do receive push notifications.
Reset Homey bridge (disconnected/reconnected) completed
Restart I phone completed.
Changed the test flow to notifiy my partner instead of me: no notifications on that phone too.
Overflow seems unlikely: there is only one testflow sending notifications.

But did not yet delete app and reinstalled it (last step). Just to make sure: If I do so will the connected devices and the filed flows remain available after re-installing?

Thnaks for spending time on my issue…

Check Athom/Homey support first! Yes it is possible to disconnect devices, flows will remain but are no longer functional due to lost devices.
You did everything you could, so the issue now lies with support.

Did you switch phones recently?
Maybe the notifications are getting sent to your previous phone.
If true,
Previous phone: uninstall Homey app
Current phone: log out from Homey app, restart phone and log in to Homey app

Hi Peter,
Thanks for the suggestion. But no since the first installation of Homey no phone switch. And notifications have not worked also since the beginning. So it is not something that stopped working. I never did.

One last question: do you know how to reach out to Athom? The site suggests Athom is not open to loook into indivudual demands and refer to the community!

You have to create a support ticket here

  1. Describe the problem.
  2. Provide all the effort you have made.