We have recently had outdoor motorised blinds installed that use motors by a company called Alpha (here). I bought a wifi controller for them that arrived in the mail a couple of days ago - a Neo Smart Controller (here). I've set it up and it works really well through their native app and our Google Homes. My next step is to add them to HE. The controller uses a really simple API that uses http GET calls with a half dozen commands. I'm really only interested in four commands - open/close/stop/favourite. I found the HE community driver httpGetSwitch and have it successfully opening and closing the blinds but I'm missing the 'close' and 'favourite' commands as that device handler is only two-state. @anon61068208 has been very helpful but I don't want to burden him solely with helping me, so I'm reaching out to the wider community.
I'm a complete noob at building custom device handlers. What's the easiest way to add the two additional commands (stop/favourite) to the two-state driver above?
But the 'switch' capability doesn't support the setLevel() command, right? So I need to change/add the 'switchLevel' capability to use it?
Sorry mate. You're talking to a novice, so you might have a level of assumed knowledge that I simply don't possess. Think "Dummies Guide" here. Feel free to state what some might consider rudimentary knowledge. I've spent a fair amount of time scouring these and the ST forums and I've got to say, it's not simple to get started. I'm doing the best I can.
Ok thanks. I don't (yet) understand how that'll work but I'll keep searching. Since each of the open/close/stop/favourite commands have their own discrete GET message (the favourite position is defined using the app then you just send the GET call to the controller to send it to the predefined favourite position), I was hoping I could use the doorControl capability (which has open/close commands) and adding the stop/favourite commands. I saw something similar to that in another driver here that added commands for setting colours to the switch capability. I may be completely off-track here.
Ah ok. Don't know if it works yet. It's been an evolving bit of code as I trawl the forums looking for inspiration. If you think I've got it about right, I'll give it a try tonight and see what happens.