LocalTuya lost with my fan config

Hello,

we have KlassFan Wifi Fan at home. I am trying to make it works with LocalTuya but i am completly lost on my config.
If somebody can help me it would be very nice !

I am able to set up integration but when i want to configure my fans i don’t understand what to do.
I had downloaded “Get Device Specification Attribute” from API, i think it is a good start :slight_smile: :

{
  "result": {
    "category": "fs",
    "functions": [
      {
        "code": "switch",
        "dp_id": 1,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "mode",
        "dp_id": 2,
        "type": "Enum",
        "values": "{\"range\":[\"normal\",\"sleep\",\"nature\"]}"
      },
      {
        "code": "fan_speed",
        "dp_id": 3,
        "type": "Enum",
        "values": "{\"range\":[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\"]}"
      },
      {
        "code": "fan_direction",
        "dp_id": 8,
        "type": "Enum",
        "values": "{\"range\":[\"forward\",\"reverse\"]}"
      },
      {
        "code": "light",
        "dp_id": 15,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "bright_value",
        "dp_id": 16,
        "type": "Integer",
        "values": "{\"min\":0,\"max\":100,\"scale\":0,\"step\":1}"
      },
      {
        "code": "temp_value",
        "dp_id": 17,
        "type": "Integer",
        "values": "{\"min\":0,\"max\":100,\"scale\":0,\"step\":1}"
      },
      {
        "code": "countdown_set",
        "dp_id": 22,
        "type": "Enum",
        "values": "{\"range\":[\"cancel\",\"1h\",\"2h\",\"4h\",\"8h\"]}"
      }
    ],
    "status": [
      {
        "code": "switch",
        "dp_id": 1,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "mode",
        "dp_id": 2,
        "type": "Enum",
        "values": "{\"range\":[\"normal\",\"sleep\",\"nature\"]}"
      },
      {
        "code": "fan_speed",
        "dp_id": 3,
        "type": "Enum",
        "values": "{\"range\":[\"1\",\"2\",\"3\",\"4\",\"5\",\"6\"]}"
      },
      {
        "code": "fan_direction",
        "dp_id": 8,
        "type": "Enum",
        "values": "{\"range\":[\"forward\",\"reverse\"]}"
      },
      {
        "code": "light",
        "dp_id": 15,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "bright_value",
        "dp_id": 16,
        "type": "Integer",
        "values": "{\"min\":0,\"max\":100,\"scale\":0,\"step\":1}"
      },
      {
        "code": "temp_value",
        "dp_id": 17,
        "type": "Integer",
        "values": "{\"min\":0,\"max\":100,\"scale\":0,\"step\":1}"
      },
      {
        "code": "countdown_set",
        "dp_id": 22,
        "type": "Enum",
        "values": "{\"range\":[\"cancel\",\"1h\",\"2h\",\"4h\",\"8h\"]}"
      }
    ]
  },
  "success": true,
  "t": 1659018959933,
  "tid": "994db76d0e8211edbe0212a0ae1c36b7"
}

Thank you for help and excuse me for my bad english, i am french.

For localtuya…not being really local, you need to setup a ‘project’ with Tuya, when connectig the devices via the app you would then see your devices show up in that project and you can collect the id and local-key, where you able to do this already?
With the ID (e.g. also via the app) and the local-key, plus the IP the device got on your network, you can add this device to HA

Yes i can get those id and localkey, i am able to add my device but note to configure it correctly.

I am lost with UI, i cannot change values easily. someone seems to use YAML config but i don’t know how to do.

OK, you are quite ahead so this is already a good start. I do not have any fans but plugs and switches and what I noticed is that the options to manage/control differ on how you add the device. So you may re-add it as a different type. I cannot assist via possibly (?) adding options via the ‘project’…no knowledge on that front