So forgive me if I’m missing the obvious, but I can’t seem to find details about property values and what they do. Maybe it’s specific groovy, but I’ve search google to no end.
For example, lets that the input item. We have name, title, type, required, description, etc that can be set. I’ve only managed to decipher much of this from examples, but where can I find more information about other properties, or values that can be set. What other types are there?
Same question for page and the list goes on. I just can’t seem to find details. Another one I need help with is href on a section. What are the possible states? Can I set to my own html page?
Just would like to be pointed in the right direction.
API documentation has been an issue since ST’s beginnings. My advice is to look at the smart apps others have built that implement what you’re trying to do. Some copy & paste action into your app will help. Honestly, it’s how I learned, aside from looking at the official ST app’s code that rolled out with the system’s start.
I have been and are still struggling with this. I have started to document some of this as I go along. If you send me your e-mail address by PM, I will e-mail you a copy.
Thanks, been there done that. It’s only marginally helpful. It doesn’t seem to be kept up to date. Would be nice if the community was able to edit easily. Perhaps ST would allow some active members to be contributors to the github repo?
I undersand wanting to get your product out there, but when you’re selling a product that pitches the ability for people to write their own apps, don’t you think you’d want the documentation ready when the product launches? Sorry if this post seems negative but I’ve been struggling to write my on app as well and have no success without A LOT of help from the community. Needless to say I am frustrated as well.
It’s about time they hired a document writer. This is vital stuff. On the flip-side, given how many apps we’ve all created with the zero or poor documentation, it gives a good example of how easy it can be to write apps for ST. So there is that.
I just started writing my first app this weeked, and at this point I am quite frustrated by exactly the same thing as the OP. I’ve been a professional developer for 15+ years (C, C++, C#, Java), currently doing embedded development in C#.
I’m having the hardest time with the simplest things. Maybe someone can specifically help me with what I want to do: I want to see in code whether a switch is currently on or off:
Some hacking resulted in switch1.currentSwitch, which seemed to work. I log.debug’ed “$switch1.supportedAttributes” to get “[power, switch]”, combined with the “reference” document currentAttributename. So at least this provides some path forward to investigate the API.
The next question is - I want to flash the light 3 times, with a second or two on/off. The light flashes, but it’s pretty much random what the period is, and whether it finally stays on or off:
Does anyone know the correct syntax and options for the “buttons” input would be nice to be able to fire a process from a click instead of sending the user to a next page just to activate a feature…