Smart thermostat

Hi,
I’m following this guide to create my own smart termostat.

the guide shows how to start up the furnance at a certain time.
Is there a way to set up home assistant to turn on the furnance when the temp is below 19.5°C and turn it off when the temp is above 20.5°C?

Thanks.

Is there someone who can suggest me some tips to create a DIY termostat using Home Assistant and an ESP controller? Thanks!

I’ve not watched the video but you could probably do this with automation if you have a sensor that detects temperature, something like this:

- alias: Turn on heating
  trigger:
    platform: numeric_state
    entity_id: sensor.living_room_temperature
    below: '19'
  condition:
  - condition: state
    entity_id: sensor.living_room_thermostat_hvac_state
    state: 'off'
  action:
    service: climate.set_operation_mode
    data:
      entity_id: climate.living_room
      temperature: '21'
      operation_mode: 'heating'

- alias: Turn off heating
  trigger:
    platform: numeric_state
    entity_id: sensor.living_room_temperature
    below: '21.5'
  condition:
  - condition: state
    entity_id: sensor.living_room_thermostat_hvac_state
    state: 'heating'
  action:
    service: climate.set_operation_mode
    data:
      entity_id: climate.living_room
      operation_mode: 'off'

The Generic Thermostat compnent that Dr ZZss uses does exactly what you want already. https://www.home-assistant.io/components/climate.generic_thermostat/

See at about 8:20 in the video.

Ok thank you guys