Similar problem here. I have a Jafanda Air Purifier (aka, “fan”, to save typing).
It comes with it’s own app, but on a hunch, I installed Tuya Smart, added the fan and tada, exactly the same appearance. The Jafanda app is just a stripped down rebranded Tuya app.
I installed local Tuya and added the fan using information obtained from the Tuya IoT developer platform (local_key). I then did a Properties Query and got a lot of the DPs.
With this info, I’m able to add many of the entities. Some escape me though. For example, in the app, there is a “Mode” option; Manual, Auto and Sleep. And in the properties printout, I see
"code": "mode",
"custom_name": "",
"dp_id": 3,
"time": 1740026705944,
"type": "enum",
"value": "manual"
But I’m not sure how to get this into a drop down list.
Also, there’s a (soft) power button on the unit and a property
"code": "switch",
"custom_name": "",
"dp_id": 1,
"time": 1740022625466,
"type": "bool",
"value": true
but the HACS “Edit a Device” page does not allow me to input a DP of 1.
Any help most appreciated! Pseudo code a pointer to some docs or …