Make 2 buttons (and 2 entities) in 1 button

There is something wrong with the template you have used in your template switch. Check it. It should be:

switch:
  - platform: template
    switches:
      climatisation:
        value_template: "{{ states('sensor.cupra_born_climatisation_state') in ['heating', 'cooling'] }}"
        turn_on:
          service: button.press
          target:
            entity_id: button.cupra_born_start_climate
        turn_off:
          service: button.press
          target:
            entity_id: button.cupra_born_stop_climate

And you should probably restart after changing it rather than just reloading yaml.

The restart helped!

It now says on, when it’s climatizing.

Thanks a lot for your help!

1 Like