FYI: Fixing the Hostname Format for Dreame L10s Ultra (Valetudo)

Hey folks,

Just sharing a quick tip (mostly for my future self after the next update breaks things again :sweat_smile:), but hopefully useful to others too.

I had a cryptic hostname showing up for my Dreame L10s Ultra running Valetudo, which was making things messy in my Unifi UDM-Pro.

Here’s how I fixed it:


Steps:

  1. SSH into the robot
    (Assuming you’ve already done this when flashing Valetudo — there are plenty of guides out there.)

  2. Check which config file is being used:
    Run:

    cat /data/config/ava/iot.flag
    
    • If it contains dmiot, then it uses:
      /etc/dmio/device.conf
    • Otherwise, it uses:
      /etc/miio/device.conf
  3. Edit the config file:
    Open the correct file with:

    vi /etc/dmio/device.conf
    

    or

    vi /etc/miio/device.conf
    
  4. Find the line starting with model= and change it to something readable.
    Important: Dots (.) will be replaced by underscores (_) in the hostname generated by your network equipment.


Example from my L10s Ultra:

  • Original line:

    model=dreame.vacuum.r2228o
    

    → Resulted in a hostname like:
    dreame_vacuum_r2228o_MAC:Address

  • New line:

    model=Valetudo.L10sUltra.DreameVac
    

    → Hostname becomes:
    Valetudo_L10sUltra_DreameVac

Much cleaner and easier to recognize on the network!


I know this involves Valetudo (which is technically outside the HA ecosystem), but since many of us use it with Home Assistant, I figured it was worth sharing here.

Cheers! :wave:

Manny

1 Like

BTW, if some one happens to know how to change the auto generated System ID, I’d appreciate some hints.

You can change the system ID by adding an environment variable.

I won’t call out the variable name or how to set it because of the disclaimer in the code: