Esp32 BLE as a temperature sensor, NO proxy

the goal: Use esp32 lolin wemos BLE board, transmit temperature readings in the device name (or as the payload if using server) using BLE (no WiFi !!!, NO proxy!!), go into deep sleep, wake up, advertise with the current temp in the name, go into deep sleep.
Any idea, how to make the device appear in the entity / states of HA? The board appears in the HA bluetooth/broadcast monitor under it’s MAC address.
However by no means I can get any further from this point…created template sensor but it does not link with the device…
any help very much appreciated

This is an experiment I did to publish some values in BLE through the BTHome protocol.

Majority of code I got from someone, but I don’t rembmer who/where.

esp32_ble_server:
  id: ble
  manufacturer_data: [0x4C, 0, 0x23, 77, 0xF0]    

interval:
  - interval: 5s
    startup_delay: 1s
    then:
      - lambda: |-
          // Get weights in decigrams
          int w1 = (int)roundf(id(smart_scale_hx711_value_1).state / 10.0);
          int w2 = (int)roundf(id(smart_scale_hx711_value_2).state / 10.0);
          int w3 = (int)roundf(id(smart_scale_hx711_value_3).state / 10.0);
          // Create points to enable little endian conversion
          uint8_t *pW1 = (uint8_t*)&w1;
          uint8_t *pW2 = (uint8_t*)&w2;
          uint8_t *pW3 = (uint8_t*)&w3;

          // Create and send BTHome payload
          std::vector<uint8_t> service_data = {
            0xD2, 0xFC,                         // BTHome UUID
            0x40,                               // BTHome Device Information
            0x06,                               // Mass (kg) type; 0.01 factor
            pW1[0], pW1[1],   // Actual mesurement (little endian)
            0x06,                               // Mass (kg) type; 0.01 factor
            pW2[0], pW2[1],   // Actual mesurement (little endian)
            0x06,                               // Mass (kg) type; 0.01 factor
            pW3[0], pW3[1],   // Actual mesurement (little endian)
          };
          esphome::esp32_ble::global_ble->advertising_set_service_data(service_data);
          ESP_LOGD("BThome", "Sent Weight 1: %i", w1);
          ESP_LOGD("BThome", "Hex Weight 1:  0x%02X%02X", pW1[0], pW1[1]);