iantrich / restriction-card

🔒 Apply restrictions to Lovelace cards
MIT License
270 stars 23 forks source link

Unrestrict the more-info #29

Closed xenz698 closed 4 years ago

xenz698 commented 4 years ago

Is your feature request related to a problem? Please describe. I was using your toggle-lock-entity-row component before. the toggle switch was locked and I can still click on the entity-name to look at the more-info screen. since it's now deprecate, thus I try out this out.

With restriction-card, seems like the restriction was apply not only to the toggle switch, but the whole row.

My use case - I have group entities (2nd floor, 1st floor) which contain each floors light switches. On the main screen, I can see "2nd floor" is ON or OFF with the toggle lock so I won't accidentally turn on/off the whole floor. and when I tap on the entity name, it show individual lights within this group where I can toggle them individually. When needed (eg. at night) I can unlock the lock on the main screen and turn off the whole floor.

I was hoping restriction card can yield the same function since the, now deprecated, toggle lock entity row component serve the purpose really really well.

Describe the solution you'd like Would it be possible to unrestrict the entity name ? or add an option to choose restrict "whole row" or just the "toggle switch" only ?

Describe alternatives you've considered

Additional context a reference to what I mean by entity_name and toggle_switch on the screen

feature_request

iantrich commented 4 years ago

no. That's not how this works. It's a more generic approach to apply to all types. Allowing more-info effectively makes useless as well IMO