Thermostat card turned off when there’s a power outage

When ever there is a loss of power and Home Assistant reboots it turns off the basic thermostat card. I have to go in a turn on the card again. I’m using Esphome on an esp32 which the temperature sensor and relays are connected to. The relays are connected to my hvac. What you for any help. New to Home Assistant and this is the only thing I have connected and running on Home Assistant. I want to do more with it but can’t get past the first hurdle.

I believe it’s the ESP device that reboots that makes the card switch off. Not the other way around.
You need to give us more details about the configuration for us to help you.
What code do you have in ESP-Home, what code do you have in HA, any automations?

No… not images…

Then what do you want

And it didn’t even show the climate component.

The config text formatted correctly for the forum. All of it.

See: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

I read that but how do I post my esphome configurations

In the place you made the screen shot, copy all the text and paste it here. Then format it correctly.

I don’t know if it because I’m using apple os but I can not paste it

Use a computer.
Phones does not work great with the ESP-Home editor.

Im using a Mac book pro

You can copy and paste on a Mac. Command C to copy. Command V to paste.

That doesn’t work either

esphome:

name: ac-thermostat

esp8266:

board: d1_mini

Enable logging

logger:

Enable Home Assistant API

api:

encryption:

key: "

ota:

password: "

wifi:

ssid: !secret wifi_ssid

password: !secret wifi_password

Enable fallback hotspot (captive portal) in case wifi connection fails

ap:

ssid: “Ac-Thermostat Fallback Hotspot”

password: “dpW9xUvghNvi”

mqtt:

broker: 192.168.1.134

username: mqtt

password: 427sohc

sensor:

  • platform: dht

pin: D7

temperature:

name: “Living Room Temperature”

id: livingroom_temp

humidity:

name: “Living Room Humidity”

id: livingroom_humity

update_interval: 60s

switch:

  • platform: gpio

pin: 05

name: “Heat”

id: Heat

  • platform: gpio

pin: 04

name: “AC”

id: “AC”

climate:

  • platform: thermostat

visual:

min_temperature: 10 °C

max_temperature: 37.7°C

temperature_step: 1 °C

name: “Home Climate Controller”

sensor: livingroom_temp

min_cooling_off_time: 300s

min_cooling_run_time: 150s

min_heating_off_time: 300s

min_heating_run_time: 150s

min_idle_time: 30s

cool_action:

  • switch.turn_on: AC

heat_action:

  • switch.turn_on: Heat

idle_action:

  • switch.turn_off: AC

  • switch.turn_off: Heat

default_preset: Home

preset:

  • name: Home

default_target_temperature_low: 25 °C

default_target_temperature_high: 26 °C

captive_portal: esphome:

name: ac-thermostat

esp8266:

board: d1_mini

Enable logging

logger:

Enable Home Assistant API

api:

encryption:

key: “4y82IechJYhah/Dpa3FavqQkxZG7kvg2jZA8pNYZr2s=”

ota:

password: “1dd0f806a587ddc1fa1f9b045984e848”

wifi:

ssid: !secret wifi_ssid

password: !secret wifi_password

Enable fallback hotspot (captive portal) in case wifi connection fails

ap:

ssid: “Ac-Thermostat Fallback Hotspot”

password: “dpW9xUvghNvi”

mqtt:

broker: 192.168.1.134

username: mqtt

password: 427sohc

sensor:

  • platform: dht

pin: D7

temperature:

name: “Living Room Temperature”

id: livingroom_temp

humidity:

name: “Living Room Humidity”

id: livingroom_humity

update_interval: 60s

switch:

  • platform: gpio

pin: 05

name: “Heat”

id: Heat

  • platform: gpio

pin: 04

name: “AC”

id: “AC”

climate:

  • platform: thermostat

visual:

min_temperature: 10 °C

max_temperature: 37.7°C

temperature_step: 1 °C

name: “Home Climate Controller”

sensor: livingroom_temp

min_cooling_off_time: 300s

min_cooling_run_time: 150s

min_heating_off_time: 300s

min_heating_run_time: 150s

min_idle_time: 30s

cool_action:

  • switch.turn_on: AC

heat_action:

  • switch.turn_on: Heat

idle_action:

  • switch.turn_off: AC

  • switch.turn_off: Heat

default_preset: Home

preset:

  • name: Home

default_target_temperature_low: 25 °C

default_target_temperature_high: 26 °C

captive_portal: esphome:

name: ac-thermostat

esp8266:

board: d1_mini

Enable logging

logger:

Enable Home Assistant API

api:

encryption:

key: "

ota:

password:

Blockquote

wifi:

ssid: !secret wifi_ssid

password: !secret wifi_password

Enable fallback hotspot (captive portal) in case wifi connection fails

ap:

ssid: “Ac-Thermostat Fallback Hotspot”

password: “dpW9xUvghNvi”

mqtt:

broker: 192.168.1.134

username: mqtt

password: 427sohc

sensor:

  • platform: dht

pin: D7

temperature:

name: “Living Room Temperature”

id: livingroom_temp

humidity:

name: “Living Room Humidity”

id: livingroom_humity

update_interval: 60s

switch:

  • platform: gpio

pin: 05

name: “Heat”

id: Heat

  • platform: gpio

pin: 04

name: “AC”

id: “AC”

climate:

  • platform: thermostat

visual:

min_temperature: 10 °C

max_temperature: 37.7°C

temperature_step: 1 °C

name: “Home Climate Controller”

sensor: livingroom_temp

min_cooling_off_time: 300s

min_cooling_run_time: 150s

min_heating_off_time: 300s

min_heating_run_time: 150s

min_idle_time: 30s

cool_action:

  • switch.turn_on: AC

heat_action:

  • switch.turn_on: Heat

idle_action:

  • switch.turn_off: AC

  • switch.turn_off: Heat

default_preset: Home

preset:

  • name: Home

default_target_temperature_low: 25 °C

default_target_temperature_high: 26 °C

captive_portal:

Please go back to read the link in post 6 and format the code for posting on the forum.

I don’t know how to format the code for posting on this forum

esphome:

name: ac-thermostat

esp8266:

board: d1_mini

# Enable logging

logger:

# Enable Home Assistant API

api:

encryption:

key: 

ota:

password: 

wifi:

ssid: !secret wifi_ssid

password: !secret wifi_password

# Enable fallback hotspot (captive portal) in case wifi connection fails

ap:

ssid: "Ac-Thermostat Fallback Hotspot"

password: "dpW9xUvghNvi"

mqtt:

broker: 192.168.1.134

username:

password: 

sensor:

- platform: dht

pin: D7

temperature:

name: "Living Room Temperature"

id: livingroom_temp

humidity:

name: "Living Room Humidity"

id: livingroom_humity

update_interval: 60s

switch:

- platform: gpio

pin: 05

name: "Heat"

id: Heat

- platform: gpio

pin: 04

name: "AC"

id: "AC"

climate:

- platform: thermostat

visual:

min_temperature: 10 °C

max_temperature: 37.7°C

temperature_step: 1 °C

name: "Home Climate Controller"

sensor: livingroom_temp

min_cooling_off_time: 300s

min_cooling_run_time: 150s

min_heating_off_time: 300s

min_heating_run_time: 150s

min_idle_time: 30s

cool_action:

- switch.turn_on: AC

heat_action:

- switch.turn_on: Heat

idle_action:

- switch.turn_off: AC

- switch.turn_off: Heat

default_preset: Home

preset:

- name: Home

default_target_temperature_low: 25 °C

default_target_temperature_high: 26 °C

captive_portal:

This is not the copy of the ESP-Home editor.
You just copied from the forum post above.

As the page linked to in post 6 says:

im sorry I don’t understand why can’t I jus copy and past right here like ever other form I have used.

1 Like

Because the yaml you use to configure is HIGHLY sensitive to case and type of and amount of indent. We MUST see what you did to tell why you’re broken.

We’re all willing to help but don’t want to run you off in the weeds because of a missed space. That’s why they’re being so demanding about the formatting. It really does matter.