my first time trying to create button-cards. In this card the background and icon should change color based on the value. current value is 66 but the card doesn’t seem to respond. not sure what I’m missing.
- type: custom:button-card
entity: 'sensor.thermostat_ground_indoor_temp'
icon: 'mdi:fan'
aspect_ratio: 1.2/1
name: therm buttn
title: my title
show_units: true
show_state: true
styles:
card:
- filter: opacity(90%)
- height: 100px
name:
- font-size: 12px
- color: white
state:
- value: 60
opertor: '>='
styles:
card:
- background-color: red
- filter: opacity(100%)
- height: 100px
icon:
- color: green
name:
- color: white
state:
- color: black
- value: 50
opertor: '>='
styles:
card:
- background-color: blue
- filter: opacity(100%)
- height: 100px
icon:
- color: white
name:
- color: white
state:
- color: black