Android Widget Service Tile Raise temperature by one °C

Hi Forum,

I have a Midea Climate (Air con) Entity and I would like to add a “Raise Target Temperature by 1 degree (C)”

So I added a Home assistant widget:
Service: climate.set_temperature
Entity: climate.123456789_climate
HVAC Mode: cool

But what do I have to enter in the Temperature field to raise the Target temperature by one °C ?

I tried entering:

{{(state_attr('climate.123456789_climate' , 'temperature')|round(0)) + 1 }}

But this didn’t work.

Besides adding an Icon, what else do I have to fill in ?

Thanks in advance

Sklerotraficon

:thinking:Script

alias: Temp+1
sequence:
  - service: climate.set_temperature
    data:
      temperature: "{{ state_attr('climate.123456789_climate', 'temperature') + 1 }}"
    target:
      entity_id: climate.123456789_climate
mode: single

Phone, run widget “Temp+1”

1 Like

@krskrab

So I have to add a script (via Terminal) ?

It is not possible to add it in the Android Widget ?

Thanks for hints

My Test:
HA
New script


yaml

Phone, add new HA widget (script.dominik_tem1)

When you click on the phone screen icon.
HA raises the temperature by 1 degree.

Thanks @krskrab

When adding the script, what sequence did you choose (I couldn’t quite see it in your screenshot):

That’s what I can choose from (it’s German but maybe you can point it out to me)

Thanks again

I assume it’s the 3rd from the top …

So when using the Service YAML Editor, I get an error: Key malformed: invalid slug climate.153931627939877_climate (try climate_153931627939877_climate)

The value climate.153931627939877_climate is the entityID of the Midea AC.

Thank you for your support

Ok got it working using the YAML editor straight (without entering any data in the form) after creating the script on the top right three dot menu…

Thanky you @krskrab for pointing me in the right direction!

1 Like

In the Android widget if a field is missing you just need to manually add it. A script was not really necessary here but it works and it’s reusable.