Please help me write eshome code

I am writing this post because I do not understand something.
I am in the process of making a panel that is supposed to display the status of some entities from my Homeassistant and it works for me.
The problem arose when I want to control the integrated Gree air conditioning. My panel is based on esp32 and ili9341 display and the software is esphome.
According to the eshome documentation, in order to be able to control the air conditioning device, you need to create a climate component. After writing a platform with the name taken from homeassistant, I get the error “Platform not found: ‘climate.c69a3408’.”

I use the same name to create a sensor that displays the set temperature and it works fine.

Blockquote

#Import external klima salon
- platform: homeassistant
id: klima_S
entity_id: climate.c69a3408
attribute: temperature
internal: true

Please explain what to do so that I can set my air conditioning with my esp.
I’m sorry for my English

There is no way to import Home Assistant climate entities into ESPHome.

You can import sensors, binary sensors, text sensors and time from Home Assistant, but not climate devices.

These are the only ESPHome climate components available: ESPHome — ESPHome

Thank you for your answer !
So there is no way to change the value or operating mode of my climate remotely using esphome?

I use TTGO lcd. I only set the temperature. I get the temperatures from the homeassistant and use the buttons to call the service homeassistant. List of call services: Climate - Home Assistant Please excuse my English :slight_smile:

sensor:
  - platform: homeassistant
    id: aktual_temperature
    entity_id: climate.obyvak
    attribute: current_temperature
  
  - platform: homeassistant
    id: set_temperature
    entity_id: climate.obyvak
    attribute: temperature

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO0
      inverted: true
      mode:
        input: true
        pullup: true
    id: button_temp_down
    on_press:
      - homeassistant.service:
          service: climate.set_temperature
          data:
            entity_id: climate.obyvak
            temperature: !lambda |-
                  return id(set_temperature).state - 0.5;
      - component.update: display_lcd
              
  - platform: gpio
    pin:
      number: GPIO35
      inverted: true
    id: button_temp_up
    on_press:
      - homeassistant.service:
          service: climate.set_temperature
          data:
            entity_id: climate.obyvak
            temperature: !lambda |-
                  return id(set_temperature).state + 0.5;
      - component.update: display_lcd
1 Like

Yes, you can use any home assistant service. Native API Component — ESPHome

Thank you friends. You helped me fill my knowledge gaps.

1 Like