Is it possible to put on Climate Target temperture controller in Picture elements card?

I am making a picture element card (custom ui).So I want to install an AC temperature controller that can be up button and down button.Is it Possible?

  - type: state-icon
    entity: climate.living_ac
    title: Climate
    tap_action:
      action: call-service
      service: climate.set_temperature
      temperature: "{ states('climate.living_ac.temperature') + 1 }"

I was trying to like this. But no luck.
I’m super noob and japanese(Poor English skill). So too Complicate for me.

Please Help!

I think you’re looking for something like this:

  - type: state-icon
    entity: climate.living_ac
    title: Climate
    tap_action:
      action: call-service
      service: climate.set_temperature
      temperature: "{{ state_attr('climate.living_ac','temperature') + 1 }}"
  1. You can’t template anything in lovelace (without a custom card, you don’t have a custom card).
  2. Your service data is missing, which temperature should be under. But that won’t work because of 1.

You need to create a script that performs the action:

script:
  increase_temp:
    sequence:
      - service: climate.set_temperature
        data_template:
          entity_id: climate.living_ac
          temperature: "{{ state_attr('climate.living_ac','temperature') + 1 }}"

Then in lovelace

  - type: state-icon
    entity: climate.living_ac
    title: Climate
    tap_action:
      action: call-service
      service: script.increase_temp
3 Likes