@Ildar_Gabdullin That looks wonderfull!
At first I could not reproduce your example in my situation…
Then I think I had a lot of problems, because I had multiple shutter-cards to test in my View, and at first I was using a non supported Theme.
And I noticed, the configuration for one card influences the other cards in the same dashboard view.
So I deleted all other cards in this test view and now it is working… This is great!
But there is something peculiar with the shutter-card.
When I have a single shutter-card in a view, it works perfectly. But since I have 4 screens, I wanted to create 4 shutter-cards in one view.
But that does however not work. I created the following Verticat Stack card with 2 shutter cards. And then all buttons are not wotking and the blinds can’t be draged either…
The code of the single, working shutter-card:
type: custom:shutter-card
title: Screens example Ildar_Gabdullin
card_mod:
style: |
.sc-shutter-buttons,
.sc-shutter-selector {
{% if is_state('binary_sensor.raam_sensor_keuken_1_contact','on') %}
pointer-events: none;
color: var(--disabled-color);
{% endif %}
}
entities:
- entity: cover.screen_1
name: Screen (1) Keuken
With this picture:
And this is the code of the other card in the same view:
type: vertical-stack
cards:
- type: custom:shutter-card
title: Screens voorzijde huis
card_mod:
style: |
.sc-shutter-buttons,
.sc-shutter-selector {
{% if is_state('binary_sensor.raam_sensor_keuken_1_contact','on') %}
pointer-events: none;
color: var(--disabled-color);
{% endif %}
}
entities:
- entity: cover.screen_1
name: Screen (1) Keuken
buttons_position: left
title_position: top
- type: custom:shutter-card
card_mod:
style: |
.sc-shutter-buttons,
.sc-shutter-selector {
{% if is_state('binary_sensor.raam_sensor_werkkamer_am_1_contact','on') %}
pointer-events: none;
color: var(--disabled-color);
{% endif %}
}
entities:
- entity: cover.screen_2
name: Screen (2) wk Anne-MArie
buttons_position: left
title_position: top
And this is the corresponding picture:
You can see that the buttons are disabled.
But also if I create a second shutter card, a duplicate from the working card and change the windo-sensor then in both card the buttons are disabled… I have no idea why this is hapening.
Perhaps there is indeed something wierd with this card?
I really would like to thank you very much for you patience and persistence with me and my issue!
Kind regards, Bert