Can I create a widget to simulate a dipswitch on SmartLife APP?
Hello everyone. Im new here and I a linux developer with a new mission, make a device compatible with Tuya and make a APP. Im begining at Tuya universe and My doubt is about the Cellphone APP SmartLife.
I need change a dome camera to add a 433Mhz emitter to send code to open doors. our devices are using PT2262 / PT2272 encoder protocol. I saw a TUYA Product what have same funcionality. but I need put this feature inside the dome camera.
I made this solution runs using YOUSEE cheap camera, work, but yousee we cannot put the encoder on app to send to device the command.
My doubt is: If I change the camera and put at SmartLifeAPP an button to open door, courtain... Can I make a widget to Smartlife app with a DIP SWITCH to user put the code used by door or courtain? PT2262 encoder DipSwiths have 8 keys with 3 positions. We made a webpage and a native android with this feature running using yousee camera. but I dont find any documentation to create a widget on smartlife APP development webpage. Can anyone help me to find as solution?
when each key is set, that key generate 2 bits 00, 01 or 10 and combining the 8 keys we can make a code like AAA0F....