Skip to content

Dynamic Opacity for Room SVG Rects when Lights are Toggled - Request for Help #441

Answered by BramWarrick
BramWarrick asked this question in Q&A
Discussion options

You must be logged in to vote

I don’t know how it would look but maybe you could overlay a black polygon over the floorplan and then adjust the opacity to “darken” the image?

This is almost exactly what I've been doing; one gray polygon per room. It works well and I got to this point by following the YouTube videos. I'm sure you know the ones. ;-)

I have a working solution.

This is a little hacky, and I'm sure it can be improved. I've borrowed from posts in the discussion boards, the youtube vids, the examples, and a little bit of setting out to research topics that are rusty or new to me.

To outline what I've done:
Sensors:

outside_brightness:
  friendly_name: "Outside Brightness"
  value_template: >-
    {%- set e…

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@exetico
Comment options

@OzGav
Comment options

@exetico
Comment options

Comment options

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

@OzGav
Comment options

@BramWarrick
Comment options

@OzGav
Comment options

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