Deep Links in the Homey Mobile App

I was just wondering if anyone figured out if the homey app allows deep links? Meaning opening a specific section (e.g. Home, Devices, Flows) or even a specific entity (e.g. a certain device) when clicking on a link.

I was able to find out that the “url scheme” used by homey simply is “homey://” but I have tried a few different things and none of them seem to do anything besides opening the app.

  • Following the same url logic as the webapp:
    homey://homeys/<my-homey-id>/devices
  • Following the same logic as the api
    homey://devices/device
  • Just the root path
    homey://devices
  • Following using the id of something directly
    homey://<my-device-id>

Reason I’m trying to figure this out is because using Scriptable, I was able to create a pretty nice custom widget for iOS. And I would want to be able to link to a specific device if I press on the according section of the widget.

3 Likes

You can use webhooks for this. But I’m not sure if you’re looking for something else.

This works if I for example would want to run a flow or change the state of a device. But what I actually want to do is open a specific device in the app via a link:

Ah, I see!

It isn’t possible, opening a device isn’t part of the Homey API (that the mobile app or Web app use), but is an internal function of the mobile app and web app themselves, and aren’t even the same for both of them.

Sure it’s possible: you can navigate to a device in the mobile app, so it’s also possible to implement a custom URL scheme so external apps/widgets can link to it. This has nothing to do with the Homey API but with the mobile app internals.

1 Like

Then feel free to give the actual solution, not just “that it is possible”, already said it wasn’t part of the API though.

Custom URL schemes need to be implemented by the app developer. So Athom.

1 Like

So you are saying it isn’t possible, currently :wink: I believe that is what I said too.

I guess I missed the word “currently” in your answer :man_shrugging:t3:

1 Like

i’m not seeing Athom implementing it, so the “currently” is pretty much “never going to happen”.

The thing is they might even have at least partially implemented deep links to some part of the app, but without them documenting it or somebody by accident figuring out what their url format is there is no good way to know besides decompiling the app and hunting through the code.

As a bit of a fun finding, there is already quite a lot code relating to dashboards in the app :smiley: