fix incorrect post of heater

This commit is contained in:
Chris Cochrun 2025-10-20 10:41:19 -05:00
parent 26ffa6372a
commit 36851677a5
4 changed files with 20 additions and 8 deletions

View file

@ -45,7 +45,7 @@ switch:
output: true
input: false
inverted: false
id: heater
id: heat
restore_mode: RESTORE_DEFAULT_OFF
- platform: gpio
name: ac

View file

@ -18,6 +18,11 @@ ota:
wifi:
ssid: "Cochrun"
password: "GreasyChicken784"
manual_ip:
static_ip: 192.168.1.125
gateway: 192.168.1.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
@ -26,6 +31,13 @@ wifi:
captive_portal:
# web_server:
# port: 80
# version: 3
# http_request:
# verify_ssl: false
i2c:
sda: GPIO4
scl: GPIO5

View file

@ -36,9 +36,9 @@ switch:
output: true
input: false
inverted: false
id: heater
id: heat
- platform: gpio
name: cool
name: ac
pin:
number: 4
mode:

View file

@ -18,7 +18,7 @@ esp32:
flash_size: 8MB
framework:
type: esp-idf
version: latest
version: recommended
sdkconfig_options:
CONFIG_IDF_TARGET: "esp32s3"
CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240: y
@ -298,7 +298,7 @@ climate:
heat_overrun: 0.5 °F
cool_action:
- http_request.post:
url: http://192.168.1.124/switch/heater/turn_off
url: http://192.168.1.124/switch/heat/turn_off
- http_request.post:
url: http://192.168.1.124/switch/ac/turn_on
- http_request.post:
@ -307,21 +307,21 @@ climate:
- 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
url: http://192.168.1.124/switch/heat/turn_on
- http_request.post:
url: http://192.168.1.124/switch/fan/turn_on
idle_action:
- 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
url: http://192.168.1.124/switch/heat/turn_off
- http_request.post:
url: http://192.168.1.124/switch/fan/turn_off
fan_only_action:
- 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
url: http://192.168.1.124/switch/heat/turn_off
- http_request.post:
url: http://192.168.1.124/switch/fan/turn_on
- lambda: !lambda ESP_LOGD("fan", "DA FAN");