Graphing outside temperature from Mitsubishi minisplit

I am using HomeAssisant OS 16.2 on a Raspi 4

I am using the YAML from echavet:

I have the

    outside_air_temperature_sensor:
      name: Outside Air Temp
      disabled_by_default: false

This is working, I can see it in the message log. Despite the “sensor” name in the YAML though, it doesn’t show up as a home assistant sensor in the developer tools → State

I would appreciate some help figuring out how to turn that into a value that I can graph using the history graph card. I would also like to setup a notification once it gets close to the min temp that my unit can operate at although I am sure I can figure that part out if I can get some help turning it into a value in home assistant.

Did you add the ESP to HA in the ESPHome integration?
Can you see the sensor there?

Its not listed in there. I thought that it would be a state within the climate control because it a is a sub of that:

climate:
  - platform: cn105
    id: hp
    name: "${friendly_name}"
    # Various optional sensors, not all sensors are supported by all heatpumps
    outside_air_temperature_sensor:
      name: Outside Air Temp
      disabled_by_default: false

I asked ChatGPT and it said to break it out as a separate sensor within the YAML like this:

sensor:
  - platform: cn105
    type: outside_air_temperature
    name: "Outside Air Temperature"

I am a little hesitant to experiment with something like my heat controls during winter but if I don’t get a response here that is what I am going to try next.

Does that temperature come as an attribute in the climate entity in HA?
If so, you can use a template sensor on the HA side.

No. These are the attributes that it gives me:

hvac_modes: off, cool, heat, fan_only, dry, auto
min_temp: 50
max_temp: 88
target_temp_step: 1
fan_modes: auto, low, medium, high, middle, quiet
swing_modes: off, both, vertical, horizontal
current_temperature: 67
temperature: 68
fan_mode: auto
hvac_action: off
swing_mode: off
icon: mdi:heat-pump
friendly_name: Down Wall Minisplit Down Wall Minisplit
supported_features: 425

I figured it out. Apparently when sensors are inside a climate block, Home Assistant hides them by default unless you manually enable it.

  1. Settings → Devices & Services → Devices tab
  2. Search for and Open the device
  3. Find Sensors
  4. Click +X disabled entities
  5. Pick Outside Air Temp
  6. Click the settings icon
  7. Click Enable