esphome: name: thermostat esp32: board: esp32dev framework: type: arduino # Enable logging logger: # Enable Home Assistant API api: password: "" ota: - platform: esphome password: "" wifi: ssid: "Cochrun" password: "GreasyChicken784" # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Thermostat Fallback Hotspot" password: "RUfAhbEfZmOU" captive_portal: i2c: sda: GPIO21 scl: GPIO22 scan: true id: bus_a uart: tx_pin: GPIO27 rx_pin: GPIO26 baud_rate: 115200 sensor: - platform: bme280_i2c temperature: name: "Temperature" id: temperature pressure: name: "Pressure" id: pressure humidity: name: "Humidity" id: humidity i2c_id: bus_a address: 0x76 dfrobot_sen0395: binary_sensor: # Information coming from uart bus - platform: dfrobot_sen0395 name: Mmwave UART # on_...: # - dfrobot_sen0395.settings: # factory_reset: true # detection_segments: # # Define between one and four segments # - [0cm, 3m] # - [5.1m, 6.6m] # output_latency: # delay_after_detect: 0s # delay_after_disappear: 0s # sensitivity: 7 # Information coming from dedicated gpio (IO2) - platform: gpio name: Mmwave GPIO device_class: motion pin: number: GPIO25 mode: INPUT_PULLDOWN switch: # Switch to turn on/off detection - platform: dfrobot_sen0395 type: sensor_active name: Mmwave Active - platform: dfrobot_sen0395 type: presence_via_uart name: Mmwave UART active restore_mode: always_on - platform: dfrobot_sen0395 type: turn_on_led name: Mmwave Led restore_mode: always_on icon: "mdi:led-on" - platform: dfrobot_sen0395 type: start_after_boot name: Mmwave Start restore_mode: always_on - platform: gpio pin: 16 id: heater restore_mode: RESTORE_DEFAULT_OFF - platform: gpio pin: 17 id: ac restore_mode: RESTORE_DEFAULT_OFF - platform: gpio pin: 15 id: fan restore_mode: RESTORE_DEFAULT_OFF climate: - platform: thermostat name: "Thermostat" sensor: temperature humidity_sensor: humidity min_cooling_off_time: 10s min_cooling_run_time: 10s min_heating_off_time: 10s min_heating_run_time: 10s min_idle_time: 30s cool_action: - switch.turn_off: heater - switch.turn_on: ac - switch.turn_on: fan heat_action: - switch.turn_off: ac - switch.turn_on: heater - switch.turn_on: fan idle_action: - switch.turn_off: ac - switch.turn_off: heater - switch.turn_off: fan default_preset: Home preset: - name: Home default_target_temperature_low: 67 °F default_target_temperature_high: 76 °F # display: # - platform: ili9xxx # model: ili9486 # dc_pin: GPIOXX # reset_pin: GPIOXX # invert_colors: false # show_test_card: true