Skip to content
Discussion options

You must be logged in to vote

Climate card is a weird one and maybe should be better documented.

When the state_color is on:

  • heating mode=off - > color off
  • heating mode=on - > color om

When the switch state_color is off:

  • heating action=off - > color off
  • heating action=on - > color on

For your code you're using .bubble-button-background this is not supported for the climate card. It should be .bubble-color-background.

  .bubble-icon {
    color: ${state === 'off' ? 'grey' : '#FE6F23'} !important;
  }
  
  .bubble-color-background{
    opacity: 0.5 !important;
    background-color: ${state === 'off' ? 'grey' : 'red'} !important;
  }
  
  .bubble-sub-button-1 {
    background-color: #6B231E !important;
  }
  
  *{ 
…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by darki79
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment