Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 99113

Use attribute value as variable in Picture Element configuration code

$
0
0

@Maxi1134 wrote:

Hey guys!

Is there a way to Use an attribute value as variable in a Picture Element configuration code?

Basically, I am trying to use the brightness of a light as the opacity percentage of a state_image. In order to accurately reflect the brightness in a room in a 3d plan.

This is what I think it should look like. Although with a valid variable. https://i.imgur.com/uloExUt.png

I also tried using “{{ state_attr(‘light.livingroom_lights’, ‘brightness’) }}”

Thanks for reading!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 99113

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>