I have just migrated to Homey 2.0. I have waited a long time so that ‘all’ problems and bugs where solved.
But unfortunately I ran into a problem. I can’t access the webapi anymore from my mobile phone. I use that to automatically switch on/off my alarm when leaving or coming home.
I know that there is a new bearer token but still can’t acces the webapi.
The web API is just working but you need to be authenticated.
It is still possible by stealing the bearer token but that one is longer and changing periodically.
Other way is using the provided authentication https://developer.athom.com/api/projects
Those URL’s won’t work anymore without authentication. I assume (can’t remember) that they used to work on v1.5 without authentication?
You might want to take a look at this tutorial that uses the HTTP Request Flow Cards app to trigger flows on incoming HTTP requests (even though the tutorial is for iOS, it gives you the info you need to act on incoming HTTP requests, no matter where those requests are coming from).
@anne, Yes i have tried that. but it didn’t work. I have used the long 3 part bearer token in the header. Also tried a slightly differend url that i found somewhere:
https://.homey.athom.com/api/manager/apps/app/net.i-dev.betterlogic// but also with no luck