This commit is contained in:
Chris Cochrun 2025-04-01 09:55:47 -05:00
parent dd284d7c78
commit f844580d68

View file

@ -2,7 +2,7 @@ esphome:
name: thermostat name: thermostat
esp32: esp32:
board: upesy_wroom board: esp32dev
framework: framework:
type: arduino type: arduino
@ -14,7 +14,8 @@ api:
password: "" password: ""
ota: ota:
password: "" - platform: esphome
password: ""
wifi: wifi:
ssid: "Cochrun" ssid: "Cochrun"
@ -33,6 +34,11 @@ i2c:
scan: true scan: true
id: bus_a id: bus_a
uart:
tx_pin: GPIO27
rx_pin: GPIO26
baud_rate: 115200
sensor: sensor:
- platform: bme280_i2c - platform: bme280_i2c
temperature: temperature:
@ -40,20 +46,107 @@ sensor:
id: temperature id: temperature
pressure: pressure:
name: "Pressure" name: "Pressure"
id: pressure
humidity: humidity:
name: "Humidity" name: "Humidity"
id: humidity
i2c_id: bus_a i2c_id: bus_a
address: 0x76 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:
- platform: gpio # Switch to turn on/off detection
pin: 15 - platform: dfrobot_sen0395
id: heater 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 - platform: gpio
pin: 16 pin: 16
id: ac id: heater
restore_mode: RESTORE_DEFAULT_OFF
- platform: gpio - platform: gpio
pin: 17 pin: 17
id: ac
restore_mode: RESTORE_DEFAULT_OFF
- platform: gpio
pin: 15
id: fan 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