Tasmota automatic id

hi, i wanna know if there is some way i can configure the device name to i.e:
lights-%id%

where %id% will be the mac address or hostname or something unique to the device… any help will be appreciated

In the tasmota console, under configuration, configure other

thanks but i want something like electricity%id% where %id% will be the mac address or something not electricity2…3…4…5. manually.

what i want is to put the device id

You can find the deviceid here :
image

So it is just a matter of entering it once in the field in my previous answer.

NOPE! it just shows the text DVES_%06X

Under configuration → configure mqtt