For the complete documentation index, see llms.txt. This page is also available as Markdown.

Persistent Storage

There are various ways to store persistent data within your app.

Your app can store a user's settings in various ways. For each usecase, there's a best practice.

Device Settings

Most likely, you'll want to store settings per-device.

For front-end, user-visible settings, use Device Settings.

For back-end, persistent settings, use the Device Store. Refer to Device.getStoreValue and Device.setStoreValue for the documentation.

App Settings

Most app-specific settings can be stored and retrieved through ManagerSettings. This enabled your app to save and retrieve any value that is JSON-serializable. App Settings are saved across app restarts, and are only deleted when your app is uninstalled.

On Homey Pro, a custom App Settings can be created using HTML, CSS and JavaScript.

It is generally discouraged to use custom HTML, because often app settings are better to be stored within a Device Store.

App Userdata

For non-JSON serializable data, e.g. binary files, the /userdata/ folder is writable on Homey Pro.

Last updated

Was this helpful?