Skip to content

ilpaolino/homeylocalapi

Repository files navigation

Local API

Local API create a local API server on your Homey.

You can create Endpoints to the app simply by adding a flow card and use it to start a new flow or communicate a variable state in the JSON response.

The Response is always a JSON object.

How to use

  1. Install the app
  2. Set up the app in the settings page and restart it
  3. Create a new flow with the Local API app: remember to add the trigger card
  4. Personalize the flow as you like
  5. End the flow with at least one of the following cards:
    • Respond with ... (remember to add the JSON response)
    • Respond with 200
  6. Save the flow and test it with a browser. The URL is http://homey-ip:<PORT>/endpoint-name

Disclaimer

Don't use this app to expose your Homey to the internet. Its use is intended for local network only.

Future improvements

  • Add Port personalization in settings
  • Add CORS support
  • Add JSON validation
  • Add more methods (PUT, OPTIONS)
  • Add more translations (You can contribute! Write me a message)
  • ... (please suggest)

Thanks to

Donate

If you like this app, please consider a donation to support the development of this app and help me to purchase the new Homey Pro.

Donate

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published