This is a first attempt to get the SLIDE automatic curtains working in Fibaro.
The main instructions of the scene and API can be retrieved from Github and are included in the readme attached to this skill as well: https://github.com/gabordewit/SLIDE
If you want to know what SLIDE is about checkout their website: https://slide.store/
To get your Fibaro skill up and running head over to the scene section and create yourself a new scene and past the slide_scene.lua code in the advanced section of the editor. Name your scene and use a notepad to list the scene ID. Next head over to the parts of the code that you need to adjust to suit your situation and your credentials.:
-- set userdata for SLIDE api including URL.
userName = "INSERT YOUR OWN EMAIL HERE - YES THE QUOTES NEED TO STAY BEFORE AND AFTER"
password = "INSERT YOUR OWN PASSWORD HERE - YES THE QUOTES NEED TO STAY BEFORE AND AFTER"
slideApiUrl = "https://api.goslide.io/api"
When the userdata has been set and you want to get going, head over to devices and import the example VFIB file to get the basics behind the way in which the virtual device calls the scene and how the device itself is dynamically provisioned. For this to work it's important to do a dry run on the scene (instructions in the readme in the zip and on github) and to create three global variables in the panel section of Fibaro. Just create blank ones for the first two - they will be filled by the scene- but insert the scene id for the newly create code in the variable for Slidescene.
The following variables needs to be created to comply to the scene's storing syntax:
The variables will hold your slide's information and filled by the Fibaro skill, if you're curious what the data that is in there contains head over to the Scene's Lua code so you can see what's in there (and which other features are possible).
Further details are listed in the readme included in the zip.