Firmware 2.1.9 (configure MQTT sensors with a device)

Sensors read directly from the electricity meter are configured as

{
  "uniq_id": "L1_3c690779cf58",
  "obj_id": "L1_3c690779cf58",
  "name": "Currently L1",
  "dev_cla": "power",
  "stat_t": "currently/one/3c690779cf58/state",
  "unit_of_meas": "W",
  "val_tpl": "{{value_json.L1}}",
  "device": {
    "identifiers": [
      "C1_3c690779cf58"
    ],
    "name": "Currently One 3c690779cf58",
    "model": "Currently One",
    "manufacturer": "Stopgap AB",
    "sw_version": "2.1.9"
  }
}

on topic homeassistant/sensor/L1_f0dc1e79cf58/config.

Appliances are configured as

{
  "uniq_id": "total_wine_cool",
  "obj_id": "total_wine_cool",
  "name": "Wine Cool used",
  "dev_cla": "energy",
  "stat_t": "currently/one/wine_cool/detect",
  "stat_cla": "total_increasing",
  "unit_of_meas": "Wh",
  "val_tpl": "{{value_json.Wh}}",
  "device": {
    "identifiers": [
      "wine_cool"
    ],
    "name": "Wine Cooler",
    "model": "EGnszJqxlbqF18npW2oF",
    "manufacturer": "wine-coolers",
    "sw_version": "1697795233"
  }
}

on topic homeassistant/sensor/total_wine_cool/config.