Added functions so the drive will work with Quoya smart curtains using the shade driver.
1) added position command to the percentControl function as this is what Quoya uses.
2) Added mach_operate command to the control function (close/open) and to the status function to show whether the curtains are opened or closed. FZ, ZZ and STOP (uppercase)
3) Fixed a typo in the tuyaFunctiions.percentControl so percent reporting would be saved.
If there is another preferred way to do #1 and #2 please feel free. Here are how the functions of these curtains are reported:
functions: {"mach_operate":{"range":["ZZ","FZ","STOP"],"type":"Enum"},"opposite":{"type":"Boolean"},"position":{"unit":"%","min":0,"max":100,"scale":0,"step":1,"type":"Integer"}}
Added functions so the drive will work with Quoya smart curtains using the shade driver. 1) added position command to the percentControl function as this is what Quoya uses. 2) Added mach_operate command to the control function (close/open) and to the status function to show whether the curtains are opened or closed. FZ, ZZ and STOP (uppercase) 3) Fixed a typo in the tuyaFunctiions.percentControl so percent reporting would be saved.
If there is another preferred way to do #1 and #2 please feel free. Here are how the functions of these curtains are reported: functions: {"mach_operate":{"range":["ZZ","FZ","STOP"],"type":"Enum"},"opposite":{"type":"Boolean"},"position":{"unit":"%","min":0,"max":100,"scale":0,"step":1,"type":"Integer"}}
Here is where the curtains can be purchased: https://smile.amazon.com/gp/product/B07X3XTFWS/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1