Patch for alpha10 to add Chacon/DIO window cover support

I have patched lolodomo’s code to add cover window support.

lolodomo: If you are interested you can contact me, I think I’ll add some features to your code :wink:

As I have not added any buttons in the parameters to add a new Chacon cover window, you need to manualy edit an already existing button like this:
device_file = D_WindowCovering1.xml
altid = WC/L/0xxxxxx/0x

The way to handle the “Stop” commands looks very … weird ! Isn’t it something specific to your model ?
You cannot manage the level ? Only open / close ?

As you said, what is missing is the UI stuff to convert a AC switch into a AC windows cover. You have done only half of the work :wink:

I will integrate that for the next version.

Yeah this is my first patch as i only have a vera for few days :slight_smile:
About the weird part, this is because chacon/DIO window cover works like this:
press up to go up
press up again to stop (or wait 3 minutes to auto stop)
press down to go down even if it’s stopped or going up

so to be sure it’s stopped, i need to do an up / down cycle to be sure it’s going down then pressing down again to stop it.

Because there is no way to ask “go 40%”, i will probably do another patch in the future with time variable (time to go up, time to go down, time to start moving) to allow this kind of things. I will be weird too but it’s the only things i can do with this.

Thanks !

Code (slightly updated) is now committed in the trunk.
Please tell me if something is wrong.
Thank you for you contrib.