Set up localtuya vacuum

So I’m trying to set up my vacuum to use local tuya.
I have gotten lt installed via HACS but I am not sure how to add the vacuum…
I enter my hotst ip and my device lokal key (yes it’s correct) but when I press submit I get passed on to a list…

How do I map these fields?

Device specification Attribute:

{
  "result": {
    "category": "sd",
    "functions": [
      {
        "code": "power",
        "dp_id": 1,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "power_go",
        "dp_id": 2,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "mode",
        "dp_id": 3,
        "type": "Enum",
        "values": "{
			"range": [
				"standby",
				"random",
				"smart",
				"wall_follow",
				"mop",
				"spiral",
				"left_spiral",
				"right_spiral",
				"right_bow",
				"left_bow",
				"partial_bow",
				"chargego"
			]
		}"
      },
      {
        "code": "seek",
        "dp_id": 13,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "reset_map",
        "dp_id": 129,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "device_info",
        "dp_id": 132,
        "type": "Raw",
        "values": "{}"
      }
    ],
    "status": [
      {
        "code": "power",
        "dp_id": 1,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "power_go",
        "dp_id": 2,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "mode",
        "dp_id": 3,
        "type": "Enum",
        "values": "{
			"range": [
				"standby",
				"random",
				"smart",
				"wall_follow",
				"mop",
				"spiral",
				"left_spiral",
				"right_spiral",
				"right_bow",
				"left_bow",
				"partial_bow",
				"chargego"
			]
		}"
      },
      {
        "code": "seek",
        "dp_id": 13,
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "total_clean_time",
        "dp_id": 116,
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":0,\"max\":2147483647,\"scale\":0,\"step\":1}"
      },
      {
        "code": "total_clean_area",
        "dp_id": 117,
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":0,\"max\":2147483647,\"scale\":0,\"step\":1}"
      },
      {
        "code": "clean_count",
        "dp_id": 118,
        "type": "Integer",
        "values": "{\"unit\":\"\",\"min\":0,\"max\":2147483647,\"scale\":0,\"step\":1}"
      },
      {
        "code": "device_info",
        "dp_id": 132,
        "type": "Raw",
        "values": "{}"
      }
    ]
  },
  "success": true,
  "t": 16....70,
  "tid": "9d......f6"
}

instruction set suppported by device:

{
  "result": {
    "category": "sd",
    "functions": [
      {
        "code": "power",
        "desc": "power",
        "name": "power",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "power_go",
        "desc": "power go",
        "name": "power go",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "mode",
        "desc": "mode",
        "name": "mode",
        "type": "Enum",
        "values": "{
			"range": [
				"standby",
				"random",
				"smart",
				"wall_follow",
				"mop",
				"spiral",
				"left_spiral",
				"right_spiral",
				"right_bow",
				"left_bow",
				"partial_bow",
				"chargego"
			]
		}"
      },
      {
        "code": "seek",
        "desc": "seek",
        "name": "seek",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "reset_map",
        "desc": "reset map",
        "name": "reset map",
        "type": "Boolean",
        "values": "{}"
      },
      {
        "code": "device_info",
        "desc": "device info",
        "name": "device info",
        "type": "Raw",
        "values": "{}"
      }
    ]
  },
  "success": true,
  "t": 16.....16,
  "tid": "d8....5d"
}
1 Like

For my part i could get status but can send command for now when the vacuum is in iddle state (base)

the following iot api explorer links cloud help
“Get Device Specification” in General devices management : Tuya Smart Developer Center

also Tuya Smart Developer Center>
image