Climate esphome

Tags: #<Tag:0x00007f780d4f7ec8>

LOAD AN EXAMPLE ESPHOME CLIMATE BANG BANG BUT I RECEIVE ERROR. I DON’T UNDERSTAND WHAT TO DO?

Misspelled heater as heatery (last line). Suggest you use esphome category next time and more details like error message, etc.

Fixed.

I changed the category … but you did not respond well to my request.

i have experience on arduino c ++ files and souliss smathome.

the esphome guide is unclear on how to make projects, or how to manage programming. it is a confusing guide that must surely be revisited. whoever is preparing for a new reality cannot take knowledge for granted

Please have a read of this: How to help us help you - or How to ask a good question

The good news is you can help fix it.

1 Like

then I have an HA on active raspberry with integrated esphome
I created a simple on off switch
now I wanted to create a thermostat and I edited the esphome file to load this example:

but i get error as shown in the image above.

Fix the spelling in your last line. See if that fixes it.

PS you were told this in the second post.

1 Like

I configured a climate bang bang on esphome with nextion display, and I can turn on and off via the touch button.
then in lambda I have a variable that increases and decreases through 2 other touch keys on nextion to set the setpoint from local without use of home assistant, however I can’t import the values of the variable to home assistant.
can someone help me?

this is what I did to turn the climate on and off:

- platform: nextion
    page_id: 0
    component_id: 3
    name: "Nextion beep button"
    id: nextion_beep_button
    on_press:
      then:
       lambda: |-
       if (id(nextion_beep_button).state) {
         if (id(bang_bang_climate).mode){
          auto call = id(bang_bang_climate).make_call();
          call.set_mode("OFF");
          call.perform();
          } else {
          auto call = id(bang_bang_climate).make_call();
          call.set_mode("AUTO");
          call.perform();
          }
         }

Please post your code properly.

#TERMOSTATO BANG BANG CON DISPLAY NEXTION

uart:
  rx_pin: GPIO13 #D7
  tx_pin: GPIO2  #D4
  baud_rate: 9600



display:
  - platform: nextion
    update_interval: 3s
    id: clima_nextion
    lambda: |-
     // Do not wait for ACK - it slows down the process, and has no use
     it.set_wait_for_ack(false);
     if (id(Heating_D3).state){
      it.set_component_text("t0", "acceso");
     }else{
      it.set_component_text("t0", "spento");
     }
     
  
dallas:
  - pin: GPIO5
  #0x0E041623899DFF28

binary_sensor:
  - platform: status
    name: "ESP Smartthermostat Status"
  
  - platform: nextion
    page_id: 0
    component_id: 3
    name: "Nextion beep button"
    id: nextion_beep_button
    on_press:
      then:
       lambda: |-
       if (id(nextion_beep_button).state) {
         if (id(bang_bang_climate).mode){
          auto call = id(bang_bang_climate).make_call();
          call.set_mode("OFF");
          call.perform();
          } else {
          auto call = id(bang_bang_climate).make_call();
          call.set_mode("AUTO");
          call.perform();
          }
         }
         
  - platform: nextion
    page_id: 0
    component_id: 4
    name: "Nextion beep button UP"
    id: nextion_beep_button_UP    
         # In an automation
    on_press:
      then:
       - lambda: |-
          if (id(nextion_beep_button_UP).state) {
            id(bang_bang_climate).target_temperature_high += 0.5;
          } // not function
          
sensor:
  - platform: dallas
    address: 0x0E041623899DFF28
    name: "temp_dallas_1"
    id: temp_dallas_1 
     
switch:
  - platform: gpio
    name: "Heating"
    id: "Heating_D3"
    pin: GPIO15

climate:
  - platform: bang_bang
    sensor: temp_dallas_1 
    name: esp climate
    id: bang_bang_climate
    visual:
      min_temperature: 12 °C
      max_temperature: 25 °C
      temperature_step: 0.1 °C
   
    default_target_temperature_low: 12 °C
    default_target_temperature_high: 22 °C

    heat_action:
      - switch.turn_on: Heating_D3 
      
    idle_action:
      - switch.turn_off: Heating_D3

Please post your code properly.

Maybe you are new here. Edit your post and place 3 backticks before and after your code, the backticks go in a line of their own. See point 11 here How to help us help you - or How to ask a good question

EDIT please don’t ignore that link like you did when @tom_l posted it earlier in the thread!