updates
This commit is contained in:
parent
dd284d7c78
commit
f844580d68
1 changed files with 99 additions and 6 deletions
105
thermostat.yml
105
thermostat.yml
|
@ -2,7 +2,7 @@ esphome:
|
|||
name: thermostat
|
||||
|
||||
esp32:
|
||||
board: upesy_wroom
|
||||
board: esp32dev
|
||||
framework:
|
||||
type: arduino
|
||||
|
||||
|
@ -14,7 +14,8 @@ api:
|
|||
password: ""
|
||||
|
||||
ota:
|
||||
password: ""
|
||||
- platform: esphome
|
||||
password: ""
|
||||
|
||||
wifi:
|
||||
ssid: "Cochrun"
|
||||
|
@ -33,6 +34,11 @@ i2c:
|
|||
scan: true
|
||||
id: bus_a
|
||||
|
||||
uart:
|
||||
tx_pin: GPIO27
|
||||
rx_pin: GPIO26
|
||||
baud_rate: 115200
|
||||
|
||||
sensor:
|
||||
- platform: bme280_i2c
|
||||
temperature:
|
||||
|
@ -40,20 +46,107 @@ sensor:
|
|||
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:
|
||||
- platform: gpio
|
||||
pin: 15
|
||||
id: heater
|
||||
# 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: ac
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue