Emergency help needed

I need help with below script syntax of home assistant software. I tried (my scripts are on comment box) but stuck on the condition. I need a trigger, condition, and action) for On and Off. .

Scenario ---- ""it should turn On the AC climate.stuen with the following setting —hvac_modes:cool ,temperature: 22 ,fan_mode: 5, swing_mode: 2, vane_horizontal: 1,left vane_vertical: 2 2 — turn off

i tried this -----------but its not matching my need

input_slider:
desired_temperature:
name: Desired temperature
initial: 23
min: 22
max: 24
step: 1
icon: mdi:thermometer

automation old temperature_high:
alias: Full cooling
trigger:
platform: time
minutes: ‘/05’
seconds: 00
condition:
condition: template
value_template: ‘{{ states.sensor.YOUR_TEMPERATURE_SENSOR.state | float - states.input_slider.desired_temperature.state | float > 1 }}’
action:

  • service: switch.turn_on
    entity_id: switch.YOUR_POWERFUL_MODE_SWITCH

automation old temperature_normal:
alias: Gentle cooling
trigger:
platform: time
minutes: ‘/05’
seconds: 00
condition:
condition: template
value_template: ‘{{ states.sensor.temperature.state | float - states.input_slider.desired_temperature.state | float < 1 }}’
condition:
condition: template
value_template: ‘{{ states.sensor.YOUR_TEMPERATURE_SENSOR.state | float - states.input_slider.desired_temperature.state | float > -1 }}’
action:

  • service: switch.turn_on
    entity_id: switch.YOUR_QUIET_MODE_SWITCH

automation old temperature_cold:
alias: Stop the cooling
trigger:
platform: time
minutes: ‘/05’
seconds: 00
condition:
condition: template
value_template: ‘{{ states.sensor.YOUR_TEMPERATURE_SENSOR.state | float - states.input_slider.stue_temperatur.state | float < -1 }}’
action:

  • service: switch.turn_on
    entity_id: switch.YOUR_AC_OFF_SWITCH

i also tried this… but its not fulfilling my need

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.bedroom_airconditioner

anybody ?can help?

  1. Don’t bump your thread after such a short time.

  2. post your code properly

  3. Fix your subject - it tells us nothing and implies something is urgent, when it isn’t.

  4. In general read this How to help us help you - or How to ask a good question

5 Likes
  1. post your code properly

If I could post it properly then I was supposed to not seeking help from you here.

  1. subject is for seeking attention and my need is written on description.

Sometimes, urgent needs do not match standards. hope you consider this.

In general read this How to help us help you - or How to ask a good question

1 Like

i am not seeking help from home assistant . I am not seeking customer care. I am looking for support to my need. I draw something and shared here. those who are helpful minded and can support me willingly . But those who do not understand and copying , pasting rules here will receive a big thank you from me . but situation is same , i need help from experts. Thanks a lot for your time in my post.

However, when many people read the title, and then read the body, they’ll ignore the post because it looks like you’re just using the title to get attention.

Without marking up your code as code, nobody can tell what the problems may be. It’s literally unreadable.

5 Likes

No one can support unformatted non-indented code. I am trying to help you getting help, but you seem immune to assistance. Stop being an ass.

3 Likes

? “automation old temperature_cold”
:
action:
-
entity_id: switch.YOUR_AC_OFF_SWITCH
service: switch.turn_on
alias: “Stop the cooling”
condition:
condition: template
value_template: “{{ states.sensor.YOUR_TEMPERATURE_SENSOR.state | float - states.input_slider.stue_temperatur.state | float < -1 }}”
trigger:
minutes: /05
platform: time
seconds: 0
? “automation old temperature_high”
:
action:
-
entity_id: switch.YOUR_POWERFUL_MODE_SWITCH
service: switch.turn_on
alias: “Full cooling”
condition:
condition: template
value_template: “{{ states.sensor.YOUR_TEMPERATURE_SENSOR.state | float - states.input_slider.desired_temperature.state | float > 1 }}”
trigger:
minutes: /05
platform: time
seconds: 0
? “automation old temperature_normal”
:
action:
-
entity_id: switch.YOUR_QUIET_MODE_SWITCH
service: switch.turn_on
alias: “Gentle cooling”
condition:
condition: template
value_template: “{{ states.sensor.YOUR_TEMPERATURE_SENSOR.state | float - states.input_slider.desired_temperature.state | float > -1 }}”
trigger:
minutes: /05
platform: time
seconds: 0
input_slider:
desired_temperature:
icon: “mdi:thermometer”
initial: 23
max: 24
min: 22
name: “Desired temperature”
step: 1

Three backticks ( ``` ) above and below the YAML sections.

1 Like

Please read this before making another post, especially section 11.

:one::one: Format it properly

Spacing is critical in YAML, and if you just throw the code on the page then it’ll look ugly and nobody will know if the problem is because of spacing. We need you to use code blocks and appropriate markup.

For example, this is easy to read and it is obvious if the spacing is correct:

# Turn off lights when everybody leaves the house
  - alias: 'Rule 2 - Away Mode'
    trigger:
      platform: state
      entity_id: group.all_devices
      to: 'not_home'
    action:
      service: light.turn_off
      entity_id: group.all_lights

This however, not so much:

Turn off lights when everybody leaves the house

  • alias: ‘Rule 2 - Away Mode’
    trigger:
    platform: state
    entity_id: group.all_devices
    to: ‘not_home’
    action:
    service: light.turn_off
    entity_id: group.all_lights

Full details are in that link , but in brief you wrap your block in three backticks (```), like this:

# Turn off lights when everybody leaves the house
  - alias: 'Rule 2 - Away Mode'
    trigger:
      platform: state
      entity_id: group.all_devices
      to: 'not_home'
    action:
      service: light.turn_off
      entity_id: group.all_lights

? “automation old temperature_cold”
:
action:
-
entity_id: switch.YOUR_AC_OFF_SWITCH
service: switch.turn_on
alias: “Stop the cooling”
condition:
condition: template
value_template: “{{ states.sensor.YOUR_TEMPERATURE_SENSOR.state | float - states.input_slider.stue_temperatur.state | float < -1 }}”
trigger:
minutes: /05
platform: time
seconds: 0
? “automation old temperature_high”
:
action:
-
entity_id: switch.YOUR_POWERFUL_MODE_SWITCH
service: switch.turn_on
alias: “Full cooling”
condition:
condition: template
value_template: “{{ states.sensor.YOUR_TEMPERATURE_SENSOR.state | float - states.input_slider.desired_temperature.state | float > 1 }}”
trigger:
minutes: /05
platform: time
seconds: 0
? “automation old temperature_normal”
:
action:
-
entity_id: switch.YOUR_QUIET_MODE_SWITCH
service: switch.turn_on
alias: “Gentle cooling”
condition:
condition: template
value_template: “{{ states.sensor.YOUR_TEMPERATURE_SENSOR.state | float - states.input_slider.desired_temperature.state | float > -1 }}”
trigger:
minutes: /05
platform: time
seconds: 0
input_slider:
desired_temperature:
icon: “mdi:thermometer”
initial: 23
max: 24
min: 22
name: “Desired temperature”
step: 1

Just damn well stop this idiocy.

than show your brilliance .

You have been shown how to post your logs and directed to the instructions at least 3 times. You ignore us each time. You are frustrating beyond belief.

READ
THE
POST

I reiterate that is is hard to help when you haven’t formatted your code properly, but all entity id’s are lower case in home assistant, so there are multiple errors of that nature in your code.

thank you . i will correct it. this is still draft version.

“it should turn On the AC climate.stuen with the following setting —hvac_modes:cool ,temperature: 22 ,fan_mode: 5, swing_mode: 2, vane_horizontal: 1,left vane_vertical: 2 2 — turn off”--------------i have to add this requirements in my script. but i am not understanding how to these conditions correctly.