SOLVED Sensibo Sky on/off not working - what have I done wrong?

I get both the temperature cards and the on-off button. The temperature cards work fine (I can hear the pip from the AC), but nothing happens when I use the on-off button. What have I done wrong? My configuration.yaml looks like this:

Copy to clipboard

climate:
 - platform: sensibo
   api_key: MY-API-KEY
   
switch:
  - platform: template
    switches:
      ac:
        friendly_name: "AC"
        value_template: "{{ is_state('climate.ac', 'cool') or is_state('climate.ac', 'heat') or is_state('climate.ac', 'dry') or is_state('climate.ac', 'heat')}}"
        turn_on:
          service: climate.turn_on
          data:
            entity_id: climate.ac
        turn_off:
          service: climate.turn_off
          data:
            entity_id: climate.ac

I figurer it out. My entity.id was not climate.ac. I changed it and now it works :slight_smile: