ESPhome Mitsubishi HVAC integration with External temp problem

I got my esphome script working as below.
What i now want is to insert de BLE temp sensor in de climate section as the room temperature for my HVAC

I tried a few things but it only corrupts the script and wont work.
Is there someone who knows how to implement this smal part below into my script?

on_value:
then:
- lambda: ‘id(hp).set_remote_temperature(x);’ "

Below here is my working script.

esphome:
  name: esphome-web-6a279c
  friendly_name: ESPHome Web 6a279c

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:
  baud_rate: 0

# Enable Home Assistant API
api:
  encryption:
    key: "---"

ota:
  password: "---"

web_server:
  port: 80

wifi:
  ssid: ---
  password: ---

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esphome-Web-6A279C"
    password: "---"

captive_portal:

esp32_ble_tracker:

ble_client:
  - mac_address: --
    
sensor:
  - platform: atc_mithermometer
    mac_address: "--"
    temperature:
      name: "ATC Temperature"
    humidity:
      name: "ATC Humidity"


external_components:
  - source: github://geoffdavis/esphome-mitsubishiheatpump

climate:
  - platform: mitsubishi_heatpump
    name: "airco esp32"      
    supports:
      mode: [COOL, DRY, HEAT, FAN_ONLY]
      fan_mode: [AUTO, LOW, MEDIUM, HIGH]
      swing_mode: ["OFF", "VERTICAL"]
    visual:
      min_temperature: 15
      max_temperature: 31
      temperature_step: 0.5

Please edit your post to include the yaml inside preformatted text tags (shown as </> on the posting toolbar).

I think i did what your asking for.

You are using a custom component, so may be better asking the author of that. Normally for example an IR climate component you simply add a sensor:

sensor:
  - platform: atc_mithermometer
    mac_address: "--"
    temperature:
      name: "ATC Temperature"
      id: atc_temperature
    humidity:
      name: "ATC Humidity"
      id: atc_humidity

climate:
  - platform: mitsubishi_heatpump
    name: "airco esp32"
    sensor: atc_temperature

You need to add

id: hp

to your climate. It’s also recommended to add

filters:
  - heartbeat: 10s

So

sensor:

  • platform: homeassistant
    name: “Temperature Sensor From Home Assistant”
    entity_id: sensor.hp_ble_1543_temperature
    on_value:
    then:
    - lambda: ‘id(hp).set_remote_temperature(x);’
    filters:
    • heartbeat: 10s

and

climate:

  • platform: mitsubishi_heatpump
    name: “Lounge heat pump”
    id: hp