Working with "sub" states

I have no idea what they’re even called, but for example I have an entity for a thermostat (climate.thermostat) that has multiple attributes or “sub” states.

hvac_modes:
  - cool
  - heat
  - 'off'
min_temp: 45
max_temp: 95
fan_modes:
  - auto
  - circulate
  - 'on'
current_temperature: 70
temperature: 70
target_temp_high: null
target_temp_low: null
fan_mode: circulate
hvac_action: cooling
friendly_name: Thermostat
supported_features: 11

If I wanted to display the thermostat temperature on an OLED display in ESPHome for example what would that “entity_id” look like?
I tried: climate.thermostat.current_temperature, but that doesn’t seem to be it.

You cannot get the attributes to ESP Home directly. You have to create a template sensor for the according attribute and push that to the ESP.