Skip to content

Color light overlay... #51

Answered by pkozul
narrcom asked this question in Q&A
Feb 10, 2021 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

@narrcom

Yes, there is a way. Can you try this?

In your SVG file, assign an id to each of the gradient's stops you'd like to control from floorplan (i.e. id="light_gradient_color_0"):

    <radialGradient id="grad1" cx="50%" cy="50%" r="50%" fx="50%" fy="50%">
      <stop id="light_gradient_color_0" offset="0%" style="stop-color:rgb(0,0,255);stop-opacity:1" />
      <stop id="light_gradient_color_1" offset="100%" style="stop-color:rgb(255,255,255);stop-opacity:0" />
    </radialGradient>	 

Then, in your floorplan config, you can simply control the style of the stop, since it can be referenced by its id (i.e. element: light_gradient_color_0).

    - entity: light.office
      tap_action:
  …

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@narrcom
Comment options

Comment options

You must be logged in to vote
1 reply
@narrcom
Comment options

Comment options

You must be logged in to vote
4 replies
@narrcom
Comment options

@pkozul
Comment options

pkozul Feb 11, 2021
Collaborator

@narrcom
Comment options

@pkozul
Comment options

pkozul Feb 11, 2021
Collaborator

Answer selected by narrcom
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