Wood burning boiler

Hi everyone,

We need a opinion about this code. We want to do an automatic heating system with a circulator, what we can overwrite with a simple physical switch. The automatic heating system should turn on the circulator at 55 celsius and turn off at 48 celsius and when we turn the switch in ON state, the circulator should turn on until the switch is in the off position. BUT the code overwrite it with the celsius based rule.

Thanks for help, and sorry for bad english

  name: teszt

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "qKJVefaX914OpcPzNT7uphbcNFcS4HNMuIcohiaunE8="

ota:
  password: "4f9bf9cc986cc2909c350a6713227697"

time:
  - platform: homeassistant
    id: homeassistant_time

web_server:
  version: 2

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Teszt Fallback Hotspot"
    password: "ESw1VneJknhu"

captive_portal:

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO26
      mode: INPUT_PULLUP
    filters:
      - invert:
    name: "Auto/Manual"
    id: auto_manual
    on_state:
      then:
        - switch.turn_on: rele
        - output.turn_on: zold_led
        - output.turn_off: piros_led

spi:
  miso_pin: GPIO19
  clk_pin: GPIO18

sensor:
  - platform: max6675
    name: "Kémény"
    id: kemeny
    cs_pin: GPIO5
    update_interval: 5s
    on_value_range:
        - above: 55
          then:
            - switch.turn_on: rele
            - output.turn_on: zold_led
            - output.turn_off: piros_led
        - below: 48
          then:
            - switch.turn_off: rele
            - output.turn_off: zold_led
            - output.turn_on: piros_led

switch:
  - platform: gpio
    name: "rele"
    id: "rele"
    pin: GPIO27
    inverted: False
    

output:
  - platform: ledc
    id: "zold_led"
    pin: GPIO17

  - platform: ledc
    id: "piros_led"
    pin: GPIO16