Mileseey Lasers of the Smart Life Generation

Mileseey's newer lasers, for example the D5T, the D9 Pro, the DP20 Pro and the S50, no longer use the simple Bluetooth protocol of the older Mileseey models. They are built to pair with the Smart Life app, and they talk only to the app that paired them through an encrypted connection. ImageMeter can pair with these lasers directly. No Smart Life app, no account and no internet connection are needed.

The general steps of selecting and connecting a device are the same as for every other laser, see Connecting devices. Which models are supported is listed under Supported devices.

How the pairing key works

Out of the box, the laser is unpaired. The first app that connects to it pairs with it, and from then on the laser talks only to that app using a key that is stored in the laser. When ImageMeter pairs with the laser, it creates a new pairing key of six characters.

A laser paired with ImageMeter can still be found and added by the Smart Life app. But once you connect it to the Smart Life app, it will take the laser over, install a new key and the laser becomes unavailable to ImageMeter until you recover its key again (option 3 below).

Three ways to connect, depending on the laser

Which way applies depends on whether the laser has ever been added to the Smart Life app.

1. A new laser, not yet used with Smart Life

This is the easy case, and the reason to connect a new laser to ImageMeter without ever adding it to Smart Life.

  1. Switch the laser on. Its Bluetooth must be enabled; most models show a Bluetooth symbol on the display.
  2. In the ImageMeter settings, open the Bluetooth section and start the device scan. The laser appears as Mileseey with its model name, for example Mileseey D5/D5T (Tuya). If the model cannot be told from the scan, it appears as Mileseey generic (Tuya).
  3. If the laser only appeared as Mileseey generic you can set the Bluetooth protocol to your exact device.
  4. Connect by pressing the Bluetooth icon on the main screen. ImageMeter asks you to confirm that the laser is to be paired. Confirm, and the pairing key is shown. Write it down!
  5. From now on, the laser connects like any other device.

2. A laser that is already in the Smart Life app

First try to release it from Smart Life, so it becomes an unpaired laser again and option 1 applies. In the Smart Life app:

  1. Open the laser in the app.
  2. Tap the pencil at the top right to open its settings.
  3. Scroll to the bottom and choose Remove Device. When asked, pick Disconnect and wipe data (or Restore factory defaults if that is offered). A plain Disconnect is not enough; it leaves the laser paired.
  4. Then connect the laser in ImageMeter as in option 1.

3. Recover the key from your Tuya account

If the laser cannot be released from Smart Life, it is not lost: the pairing key was created by the Tuya cloud when Smart Life paired the laser, and you can read it back from your own Tuya account. ImageMeter does the reading for you. In the "enter the key" dialog it offers Look up the key from my Tuya account; you enter two values from a Tuya developer project and the app fetches the key and fills it in.

Setting up that project is the fiddly part, but you do it only once:

  1. Go to iot.tuya.com and create an account. This is Tuya's developer platform, separate from the Smart Life app login.
  2. Open Cloud → Development → Create Cloud Project. Give it any name, choose the "Smart Home" development method, and the data center that matches your region. After it is created, the project's Overview page shows an Access ID (also called Client ID) and an Access Secret (Client Secret). These are the two values ImageMeter asks for.
  3. Open the project's Devices tab, then Link App Account → Add App Account. A QR code appears. In the Smart Life app on your phone, open the Me tab, tap the scan icon at the top right, and scan the code. Your lasers then belong to the project.
  4. Under Service API, make sure IoT Core is authorized for the project.

With the project set up, open ImageMeter's "Look up the key" dialog, choose the same data center, and enter the Access ID and the Access Secret. The Access Secret stays on your device and is sent only to Tuya, never to ImageMeter. ImageMeter keeps the Access ID and data center for next time, but not the secret.

Using the laser on a second device, or after reinstalling

When ImageMeter connects to a laser that is already paired with ImageMeter on another device, it asks for the pairing key. Enter the key that was shown on the first device. ImageMeter checks the key with the laser; if the laser does not accept it, the dialog asks again. You can also read the key from the Bluetooth settings of the first device.

The same dialog appears for a laser that is paired with the Smart Life app. Since the Smart Life app does not show you the key, you have to use the "Look up the key from my Tuya account" button, see option 3 above.