A non-admin user still can open some entity either from Settings->Entities (or from “Search”) & play with switches etc.
So, we may try to protect dashboards only (in some extent).
If you wish to disable a possibility to change switches from dashboards (sometimes it is easier than creating ANOTHER dashboards for other users) - you may try these alternatives:
- card-mod to disable toggle buttons for particular users (here) - this is an example for Entities card, but same approach may be used for buttons;
- restriction-card (here)
Also, you may create all switches (for all users incl. you) “not toggleable”:
and then you will have to use more-info for toggling them, but it works only for Entities card.
P.S.
I do not think this is correct - wildcards not allowed:
trigger:
- platform: state
entity_id: switch.*
Try with smth like this (you will have to list all your 100500 switches):
- platform: state
entity_id:
- switch.test_switch_1
- switch.test_switch_2
- switch.test_switch_3
- switch.test_switch_4
- switch.test_switch_5
- switch.test_switch_6