diff --git a/hvac.yml b/hvac.yml index 0bea176..5a45d72 100644 --- a/hvac.yml +++ b/hvac.yml @@ -20,6 +20,10 @@ ota: wifi: ssid: "Cochrun" password: "GreasyChicken784" + manual_ip: + static_ip: 192.168.1.124 + gateway: 192.168.1.1 + subnet: 255.255.255.0 # Enable fallback hotspot (captive portal) in case wifi connection fails ap: @@ -27,7 +31,11 @@ wifi: password: "RUfAhbEfZmOU" captive_portal: - + +web_server: + port: 80 + version: 3 + switch: - platform: gpio name: heat diff --git a/thermostat.yml b/thermostat.yml index 5f54977..d465844 100644 --- a/thermostat.yml +++ b/thermostat.yml @@ -75,6 +75,12 @@ wifi: captive_portal: +web_server: + port: 80 + version: 3 + +http_request: + i2c: - id: bus_a sda: GPIO08 @@ -279,35 +285,51 @@ climate: 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_fanning_off_time: 10s - min_fanning_run_time: 10s - min_idle_time: 30s + min_cooling_off_time: 120s + min_cooling_run_time: 120s + min_heating_off_time: 120s + min_heating_run_time: 120s + min_fanning_off_time: 120s + min_fanning_run_time: 120s + min_idle_time: 300s + cool_deadband: 0.2 °F + cool_overrun: 0.5 °F + heat_deadband: 0.2 °F + heat_overrun: 0.5 °F cool_action: - - switch.turn_off: heater - - switch.turn_on: ac - - switch.turn_on: fan + - http_request.post: + url: http://192.168.1.124/switch/heater/turn_off + - http_request.post: + url: http://192.168.1.124/switch/ac/turn_on + - http_request.post: + url: http://192.168.1.124/switch/fan/turn_on heat_action: - - switch.turn_off: ac - - switch.turn_on: heater - - switch.turn_on: fan + - http_request.post: + url: http://192.168.1.124/switch/ac/turn_off + - http_request.post: + url: http://192.168.1.124/switch/heater/turn_on + - http_request.post: + url: http://192.168.1.124/switch/fan/turn_on idle_action: - - switch.turn_off: ac - - switch.turn_off: heater - - switch.turn_off: fan + - http_request.post: + url: http://192.168.1.124/switch/ac/turn_off + - http_request.post: + url: http://192.168.1.124/switch/heater/turn_off + - http_request.post: + url: http://192.168.1.124/switch/fan/turn_off fan_only_action: - - switch.turn_off: ac - - switch.turn_off: heater - - switch.turn_on: fan + - http_request.post: + url: http://192.168.1.124/switch/ac/turn_off + - http_request.post: + url: http://192.168.1.124/switch/heater/turn_off + - http_request.post: + url: http://192.168.1.124/switch/fan/turn_on - lambda: !lambda ESP_LOGD("fan", "DA FAN"); default_preset: Home preset: - name: Home default_target_temperature_low: 67 °F - default_target_temperature_high: 78 °F + default_target_temperature_high: 79 °F - name: Summer default_target_temperature_low: 60 °F default_target_temperature_high: 77 °F