fighting with slider-entity-row, to conditionally hide the toggle, or make it not respond to pointer…
this works nicely
- type: custom:slider-entity-row
toggle: true
entity: light.my_light
name: Name
colorize: true
attribute: color_temp
card_mod:
style:
hui-generic-entity-row: |
ha-entity-toggle {
display: {{'none' if is_state(config.entity,'off')}};
}
however, I can not replace the display, with pointer-events. the toggle remains responsive.
Ive also tried several other syntaxes like:
card_mod:
style:
hui-generic-entity-row:
ha-entity-toggle:
$: |
ha-switch {
display: none;
}
which also works, However, same story for the pointer-events. As a matter of fact, in Inspector there is no way to get the pointer to remain dead. the top level ha-entity-toggle has pointer-events: auto set so I figured overriding it with !important might work. However, in neither syntax this helps.
Anyone that has the fix for this?