Entity-filter NOT working with Thermostat Card

Hi. I love the Thermostat Card for Lovelace. BUT, it is a shame it lacks one simple thing - an on/off control. Failing this simple button, I wish it had a long-press function, which at least would take you to a panel that allowed the user to switch the climate entity on or off.

So I figured I would need an implementation that had one row showing a conventional climate entity and then beneath it the cool Thermostat Card. But it is big. So why have it appear all the time? So I’d like it to only show during certain “on” states. But I can’t get that to work.

  - type: vertical-stack
    cards:
      - type: entities
        title: Master Bedroom
        show_header_toggle: false
        entities:
          - climate.parents_ac     # conventional climate entity call
      - type: entity-filter
        entities:
          - climate.parents_ac         
        state_filter: 
          - auto
          - cool
          - dry
          - fan
          - heat
        card:
          type: thermostat     # fails when I opt for thermostat; however, it does work if I use glance for example

Am I misunderstanding something here? Any code refinements would be very welcome! Thanks!

So… the Conditional Card might be what I needed. However it does not seem to allow a list of state conditions for a single entity. So I had to create 5 of these to achieve what I needed to do. Can somebody think of a more elegant method?

      - type: conditional
        conditions:
          - entity: climate.parents_ac         
            state: "auto"
        card:
          type: thermostat
          entity: climate.parents_ac

      - type: conditional
        conditions:
          - entity: climate.parents_ac         
            state: "cool"
        card:
          type: thermostat
          entity: climate.parents_ac

      - type: conditional
        conditions:
          - entity: climate.parents_ac         
            state: "dry"
        card:
          type: thermostat
          entity: climate.parents_ac

      - type: conditional
        conditions:
          - entity: climate.parents_ac         
            state: "fan" 
        card:
          type: thermostat
          entity: climate.parents_ac

      - type: conditional
        conditions:
          - entity: climate.parents_ac         
            state: "heat"
        card:
          type: thermostat
          entity: climate.parents_ac

Hi again. I came up with something a bit more elegant. As you can see from my code my HVAC has these state options - auto, cool, dry, fan + heat. Whilst there is no “on” state, there is an “off” state. So I was able to set a condition based on state_not

      - type: conditional
        conditions:
          - entity: climate.parents_ac         
            state_not: "off"
        card:
          type: thermostat
          entity: climate.parents_ac
1 Like