Closed DubhAd closed 6 years ago
Maybe avoid nesting as it makes it a bit unreadable
state_image:
- image: /local/living_room_day.png
match:
sun.sun: above_horizon
- image: /local/living_room_night_on.png
match:
sun.sun: below_horizon
group.living.room: on
- image: /local/living_room_night_off.png
match:
sun.sun: below_horizon
group.living.room: off
Imo this is too much and we try to implement something like a template engine here
I agree with c727. We should try to keep the configuration simple. If we don't, we will also kill any possibility for a UI.
Yep, if you need something complex use a template sensor
There are a number of times it would be useful to nest the state images, to allow different images for (say) day and night, and lights on or off, without having to resort to input_selects and automations.
Like you can nest the horizontal and vertical stacks, something like: