Attribute to Enable/Disable a switch or input * in the UI

Add an attribute that can be used to disable a control ( switch or input variable ) in the ui without changing it’s state. It should not be UI specific as it should disable it in all types of UI based on the attribute. Should be an entity attribute.

Every entity can already be disabled in configuration > devices & services

You forgot to vote for your own FR

As far as I understand well you can not set this disable/enable state from an automation as the device is no longer accessible when disabled. This disabled “state” should be part of the device attributes or setable by means of a service…