Skip to content
Discussion options

You must be logged in to vote

The style to use is opacity

e.g.

type: custom:button-card
entity: light.kitchen_lights
layout: icon_name
section_mode: true
grid_options:
  rows: 2
  columns: 12
styles:
  icon:
    - opacity: |
        [[[
          return states['input_number.increment_test'].state / 100
        ]]]
Screen.Recording.2025-09-04.at.7.37.31.am.mov

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dcapslock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #496 on September 03, 2025 21:38.