Emergency help needed

We still cannot help if you don’t post your code properly. I can’t help any more.

  • alias: Turn off your air conditioner automatically
    initial_state: true
    trigger:
    platform: numeric_state
    entity_id: switch.bedroom_airconditioner
    value_template: “{{ state.attributes.current_temperature }}”
    below: 22
    condition:
    condition: state
    entity_id: switch.bedroom_airconditioner
    state: ‘on’
    action:

    • service: switch.turn_off
      entity_id: switch.bedrood_airconditioner
  • alias: Turn on your air conditioner automatically
    initial_state: true
    trigger:
    platform: numeric_state
    entity_id: switch.bedroom_airconditioner
    value_template: “{{ state.attributes.current_temperature }}”
    above: 24
    condition:
    condition: state
    entity_id: switch.bedroom_airconditioner
    state: ‘off’
    action:

    • service: switch.turn_on
      entity_id: switch.bedrood_airconditioner

How difficult is it to copy your code here in the forum, highlight the qhole text and press this sign at the top </> ???

Everyone, I understand your frustrations but please don’t get upset and belittle him. Just move on. In time OP will figure this out and we can help when that happens.

6 Likes

@Sami1 take a look here https://www.home-assistant.io/integrations/climate/

I think you are (effectively) asking how to set the various parameters in your climate component.

Use the services listed on that page to set those parameters.

As far as using services in the action: of your automation, see https://www.home-assistant.io/docs/automation/action/. You could probably also use a scene, but I haven’t tried that with a climate component.

1 Like