Generic thermostat and ESPHome

Hello,

I am using an ESPHome with IR to pilot my heatpump.

When i added it to home assistant, it automaticaly add a thermostat like this:

image

But the temperature don’t work because it cannot use the good sensor.
I want to modify it, but i don’t know where i can.
I try to create a generic thermostat, but i don’t understand how i can’t add all options like ‘cold’, ‘heat’, ‘ventilate’ or other kind of values which are on the screenshot.

Anyone know how i can modify this one?

You need to add a sensor, probably imported from HA, to the temperature sensor of the config.

Basically you need to paste the YAML otherwise we can’t help you further.

I have only this yaml associated to this thermostat:

type: thermostat
entity: climate.esphome_web_d743e4_living_room_ac

Have you read the docs?

Share your ESPHome config.

esphome:
  name: esphome-web-d743e4
  friendly_name: Emetteur IR

esp8266:
  board: nodemcuv2

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "t9Xqyq/pb0WS9xbDfFFHZRMfXVE+reEjMM2draMG0aM="

ota:


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "xxx"
    password: "xxx"

captive_portal:

# Example configuration entry
remote_transmitter:
  pin: D1
  carrier_duty_percent: 50%

climate:
  - platform: heatpumpir
    protocol: hitachi     
    max_temperature: 30
    min_temperature: 16
    horizontal_default: auto
    vertical_default: auto
    name: "Living Room AC"

For this one, i must write this code on the ESP or configuration.yaml of HA?

Your yaml code you have in your esphome code is meant for the configuration.yml for esphome you need to use the code linked above.

If when using the new code you have issues just ask someone will help.