hi to all,
i have the need to control my ac climate, and i wat to rise(or fall) the setpoint temperture by one degree.
i thought a solution could be to update the setpoint temperature in this way:
heat_up:
alias: heat_up
sequence:
- data:
entity_id: climate.ac_corridoio
temperature: ----idont know wat to put here------
service: climate.set_temperature
in the line “----idont know wat to put here------” i really tried everything but nothing worked. basically i need to use the actual value of the setpoint temperature and add (or subtract ) 1 unit.
maybe there is another way to solve the problem, but for now i’m stucked.
thaks for your time,
cheers
heat_up:
alias: heat_up
sequence:
- data_template:
entity_id: climate.ac_corridoio
temperature: "{{ states('climate.ac_corridoio')|int + 1 }}"
service: climate.set_temperature
hi mf_social
thanks for replying
unfortunately the code does not work ![:worried: :worried:](https://community.home-assistant.io/images/emoji/twitter/worried.png?v=9)
one question: the climate has multiple “things” (i apologize but i dont know the proper names yet) like temperature, operation mode, max_temp, min_temp. maybe is necessary to be more specific?
for sure i know that if i put a number (like 19) in the place of “----idont know wat to put here------” everything works. i just need to compose the number somehow
1 Like
i mean specific like:
climate.ac_corridoio.temperature
is it possible to somehow debug this and see the actual “number” i’m witing?
heat_up:
alias: heat_up
sequence:
- data_template:
entity_id: climate.ac_corridoio
temperature: "{{ state_attr('climate.ac_corridoio' , 'temperature')|int + 1 }}"
service: climate.set_temperature
?
Other than that you’ll have to show me what the attributes for climate.ac_corridoio are.
1 Like
sorry it doesn’t work ![:pensive: :pensive:](https://community.home-assistant.io/images/emoji/twitter/pensive.png?v=9)
btw it seems like we writed soething correct since “temperature” is an attribute
this ac is controlled used smartIR btw, can it be a problem?
Define ‘doesn’t work’ - any errors when the script executes?
i have this UI:
![Immagine](https://community-assets.home-assistant.io/original/3X/c/d/cd2a02ce105852d8de1a5097674dbbcc88c60948.png)
when i execute “set_to_19c” the temperature behind “Off” changes do 19 istantateously
when i execute “heat_up” the temperature does not change.
i dont see any popup notification with errors.
but if there is any other way to understand the error, just tell me.
set_to_19c:
alias: set_to_19c
sequence:
- data:
entity_id: climate.ac_corridoio
temperature: 19
service: climate.set_temperature
heat_up:
alias: heat_up
sequence:
- data:
entity_id: climate.ac_corridoio
temperature: "{{ state_attr('climate.ac_corridoio' , 'temperature')|int + 1 }}"
service: climate.set_temperature
btw thankyou very much for the support!
stop stop stop!!!
i made a mistake coping the code !!
it works !!!![:partying_face: :partying_face:](https://community.home-assistant.io/images/emoji/twitter/partying_face.png?v=9)
![:partying_face: :partying_face:](https://community.home-assistant.io/images/emoji/twitter/partying_face.png?v=9)
![:partying_face: :partying_face:](https://community.home-assistant.io/images/emoji/twitter/partying_face.png?v=9)
![:partying_face: :partying_face:](https://community.home-assistant.io/images/emoji/twitter/partying_face.png?v=9)
![:partying_face: :partying_face:](https://community.home-assistant.io/images/emoji/twitter/partying_face.png?v=9)
![:partying_face: :partying_face:](https://community.home-assistant.io/images/emoji/twitter/partying_face.png?v=9)
thankyou very very much !!
1 Like
i mean the last code works!
Yeah, you missed the data_template bit.
Glad it’s working ![:+1: :+1:](https://community.home-assistant.io/images/emoji/twitter/+1.png?v=9)