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