If then else struggle

If/Then is a type of automation action. On their own, actions don’t do anything. How are you triggering your automation? Please
show your workings (Community Guidlines #9)

Numeric State triggers can accept the entity id of number helpers (input_number entities), number and sensor entities that contain a numeric value in the above and below thresholds.

trigger:
  - platform: numeric_state
    entity_id: climate.your_aircon
    attribute: temperature
    above: sensor.current_temperature
condition: []
action:
  - service: climate.turn_on
    data: []
    target:
      entity_id: climate.your_aircon

This is a basic sketch since you have provided very little information about your entities and setup. Depending on how you have your entities configured and the specifics of what you want to do, you may also be interested in these other options:

1 Like