How do I create a facility with functions?
Facilities allow you to manage physical locations or devices (e.g. door openers) in sawyer and make them controllable via the app. You can set up different functions with their own access rights for each facility.
This is how it works
Open the 'Facilities' section in the dashboard.
Click on 'Add facility' to create a new facility.
Enter a name and a description and select the access level (Public, Logged in or Restricted).
Enter a slug - this is the URL identifier via which the facility can be accessed later.
Now add functions by defining a name (e.g. 'Door opener'), a description and an icon for each function.
Set up the HTTP configuration for each function: Enter the URL, the method (e.g. POST), optional header and body.
Optionally, you can also configure a schedule and webhooks for functions to create automated triggers.