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.
Any help would be appreciated. Thanks.