Conditional card stays visible

  - type: "custom:stack-in-card"
    cards:
      - type: vertical-stack
        cards:
          - type: conditional
            conditions:
              - entity: nput_number.electriciteit_opbrengst_januari
                state_not: '0'
            card:
              type: custom:stack-in-card
              keep:
                margin: false
                box_shadow: false
                background: false
              cards:              
                - type: horizontal-stack
                  cards:
                    - type: custom:mushroom-template-card
                      primary: Januari
                    - type: custom:mushroom-entity-card
                      entity: input_number.electriciteit_verbruik_januari
                      icon: mdi:arrow-down-thin
                      icon_color: 219, 76, 64
                      name: " "
                      tap_action: ""
                      card_mod:
                        style: |
                          mushroom-shape-icon {
                              --icon-symbol-size: 15px;
                              --icon-size: 20px;
                          }
                    - type: custom:mushroom-entity-card
                      entity: input_number.electriciteit_opbrengst_januari
                      icon: mdi:arrow-up-thin
                      icon_color: 11,252,3
                      name: " "
                      tap_action: " "
                      card_mod:
                        style: |
                          mushroom-shape-icon {
                              --icon-symbol-size: 15px;
                              --icon-size: 20px;
                          }
```If the value is zero, i don't want to see the card. What is wrong here ?

There is no need to post loads of unrelated code.
The easiest way to test smth - make it as small as possible, like one standard Entities card inside a conditional card.
Long code distracts YOU from an obvious typo:

            conditions:
              - entity: nput_number...... <----------------- HERE
                state_not: '0'
1 Like