Need help building hvac automation

Hi all
I have this entity for hvac
I need to build an automation that starts hvac at a set temp and stops it when the room reach another temp
Could someone help me ?

hvac_modes:
  - cool
  - heat
  - dry
  - fan_only
  - 'off'
min_temp: 16
max_temp: 30
target_temp_step: 1
fan_modes:
  - quiet
  - low
  - medium
  - high
  - auto
  - strong
swing_modes:
  - stopped
  - rangeFull
current_temperature: 25.4
temperature: 24
current_humidity: 62
fan_mode: auto
swing_mode: stopped
battery: null
friendly_name: Camera da letto
supported_features: 41

This post helped me out a great deal in setting up my AC unit.

I made this automation…I’m beginner
But it seems not working

- id: '1623770650847'
  alias: HC on
  description: ''
  trigger:
  - platform: state
    entity_id: climate.camera_da_letto
    attribute: current_temperature
    to: '26'
    for: '1'
  condition:
  - condition: and
    conditions:
    - condition: time
      after: 00:30:00
      before: 08:30:00
    - condition: or
      conditions:
      - condition: zone
        entity_id: device_tracker.d2_d8_7a_f6_86_59
        zone: zone.home
      - condition: zone
        entity_id: device_tracker.06_da_cd_d5_7d_f6
        zone: zone.home
  action:
  - service: climate.turn_on
    target:
      entity_id: climate.camera_da_letto
  mode: single
- id: '1623771404064'
  alias: HC off
  description: ''
  trigger:
  - platform: state
    entity_id: climate.camera_da_letto
    attribute: current_temperature
    to: '24'
    for: '1'
  condition:
  - condition: and
    conditions:
    - condition: time
      after: 00:30:00
      before: 08:30:00
    - condition: or
      conditions:
      - condition: zone
        entity_id: device_tracker.d2_d8_7a_f6_86_59
        zone: zone.home
      - condition: zone
        entity_id: device_tracker.06_da_cd_d5_7d_f6
        zone: zone.home
  action:
  - service: climate.turn_off
    target:
      entity_id: climate.camera_da_letto
  mode: single

What is not working? You have a lot of conditions going on. Why don’t you start out with the basic and see if it does trigger. Remove all the conditions. Also the for in the trigger is wrong.

Either use this

for: '00:01:00'

or this

for:
  minutes: 1

Looking at the trigger entity, I think it should be a numeric_state.

- id: '1623770650847'
  alias: HC on
  description: ''
  trigger:
  - platform: numeric_state
    entity_id: climate.camera_da_letto
    attribute: current_temperature
    above: 25
    for:
      minutes: 1

I made this but it’s not working

- id: '1623771404064'
  alias: HC off
  description: ''
  trigger:
  - platform: state
    entity_id: climate.camera_da_letto
    attribute: current_temperature
    to: '24'
    for:
      minutes: 1
  condition:
  - condition: and
    conditions:
    - condition: time
      after: 00:30:00
      before: 08:30:00
    - condition: or
      conditions:
      - condition: zone
        entity_id: device_tracker.d2_d8_7a_f6_86_59
        zone: zone.home
      - condition: zone
        entity_id: device_tracker.06_da_cd_d5_7d_f6
        zone: zone.home
  action:
  - service: climate.turn_off
    target:
      entity_id: climate.camera_da_letto
  mode: single

Now I will try this

- id: '1623771404064'
  alias: HC off
  description: ''
  trigger:
  - platform: numeric_state
    entity_id: climate.camera_da_letto
    attribute: current_temperature
    below: '24'
    for:
      minutes: 1
    action:
  - service: climate.turn_off
    target:
      entity_id: climate.camera_da_letto
  mode: single