I was able to test it today. It works as expected. Thank you.
One more item. I also included the device into homebridge. For some reason, homebridge homebridge sends setPosition(null) instead of setPosition(0) as you would normally expect. In this case, it throws a java exception. Would it make sense to interpret null as zero in this instance?
That's strange. I have my shades, draperies, and a door controller set up in Homebridge. When I do a close from Home I receive a set of position of 0, and when I do an open in Home I receive a set position 100.
Are you using danTapps' Maker API for Homebridge? What version of Homebridge are you running? I'm running Homebridge 1.2.3 with 0.4.11 of the Homebridge Hubitat Makerapi.
Also, are you running the current Somfy version that has the switch removed? If not, you may want to exclude the switch capabilities and properties using the Homebridge configuration.
The driver has been updated to support Somfy's "My Position." My Position allows you to set a favorite position between fully open and fully closed that can be returned to with high accuracy.
To use this feature, first set the desired position using the Somfy handheld controller (google "Somfy My Position" for instructions). Once the position has been set, go to device Preferences and enter the corresponding percentage in the Somfy My Position field.
To access My Position, you use Stop while the shades are not moving, just like the Somfy handheld controller. Alternatively if Set Position is used with the value set in Preferences, My Position will be used as an optimization for high accuracy.
I have this all working nicely now. I have my awning exported through the Alexa app as well. Does anyone know how to get Alexa to open and close the awning through this driver via the hubitat alexa app?
Can you post a picture of the z-wave controller this works with? I see a couple and am not sure which is the version 2. I have a myLink now in ST, but no one has a driver for it in Hubitat.
I have a copy of the myLink API, which Somfy pulled from their website about a year ago. At a low priority, I have been working on a myLink Hubitat driver. A problem is that Somfy has been changing things up because they want a walled garden, which might make a purely-local driver difficult if Somfy changes the API to prevent it, and a cloud-based version difficult if Somfy wants to prevent it.
Until then, Alexa talks to our drapes using myLink and Hubitat uses Justin Walker’s (@augoisms’s) ZRTSI II driver. Denny Page has an equally good driver that has a few more features added at the request of users in the forum.
I put in an offer on a ZRTSI, if I can get it for a good price, I’ll move to z-wave. I need a virtual ST location to use my Ring Floodlight and Spotlight cams, and to get switches back into my Harmony Remote, but I’d really like to take down my physical ST hub.
I have Hubitat talking directly to MyLink over local LAN connection, details here: Integrate Somfy in Hubitat. The code is all in github but I haven't done a proper release with installations instructions. If I can find a few volunteers to test installation instructions, I'd be happy to package it up.
Thanks for the great drivers! I was nervous to port over my ZRTSII and shades from SmartThings, but your code was perfect. Thank you so much!!
Quick question, I am trying to run a custom action in Rule Machine to access the “stop” functionality. However, I can’t seem to find the shades anywhere under Custom Actions. What device type would they show under there?