I’ve been using HA for some time and I am now needing more from Lovelace but I don’t really understand how to create custom cards.
I want to create a custom card that overlays a padlock on top of an entity (much like what thomasloven did with his toggle-lock-entity-row).
The difference is that the lock should be linked to the state of an “interlock” entity. If the interlock entity state is “on”, the entity shown should have the padlock overlay and no action should be triggered when it is clicked. When the interlock entity is “off”, the entity shown should behave normally. When the interlock entity is toggled, the padlock should be faded on or off.
The point of this card is to show that the control of a shown entity if controlled by an interlock entity.
I have been trying to modify thomasloven’s toggle-lock-entity-row code to make it work without any success.
It’s a great idea for a card and I hope you get the help you need. I’m no use unfortunately.
I was going to move this to the development category but it will get more exposure here and someone may come up with a way to do it with existing cards.
Maybe using card-mod’s style and tap action functions in combination with card-templater?