in addition to the great main post on picture-glance, I needed a way to style the pointer-events: none
first I set it to the ha-card, but that was moot, since I use these picture-element cards to navigate to my rooms… only looked for a way to have the bottom-section icons be non-responsive.
this seems to work as hoped for, posting here for others to help, and if something could be optimized, please do (as always the challenge is in combining several styling aspects, in the case the border on the card. the [[]] originate the decluttering template I use for these Navigating cards):
type: picture-glance
card_mod:
style:
.: |
ha-card {
border: {{'1em solid red' if is_state('[[trigger_id]]','[[trigger_state]]')
else 'none'}};
}
.box: |
.wrapper {
pointer-events: none;
}
full decluttering-card template:
default:
- trigger_state: 'on'
card:
type: picture-glance
card_mod:
style:
.: |
ha-card {
border: {{'1em solid red' if is_state('[[trigger_id]]','[[trigger_state]]')
else 'none'}};
}
.box: |
.wrapper {
pointer-events: none;
}
entity: '[[main_id]]'
# title: '[[title]]'
show_state: true
state_filter:
'off': grayscale(80%)
'unavailable': grayscale(100%)
# area: '[[area]]'
image: /local/images/areas/[[image]]
aspect_ratio: 100%
tap_action: none
hold_action:
action: navigate
navigation_path: /ui-sub-views/[[path]]
double_tap_action:
action: toggle
entities:
'[[entities]]'
the card_mod stops me from requiring this on all cards per entity:
- entities:
- entity: sensor.laundry_sensor_temperature
<<: &none
tap_action: none
hold_action: none
double_tap_action: none
- entity: sensor.laundry_sensor_illuminance
<<: *none
- entity: binary_sensor.back_door
<<: *none
- entity: switch.boiler_bijkeuken
<<: *none
saving a lot of (already anchored) yaml…
2 things needing further exploration: