Switch as X
The Switch as X integrations lets you convert any Home Assistant switch into a Home Assistant Light, Cover, Fan, Lock, or Siren.
In Home Assistant’s world, a wall plug is a switch. And while that is correct for a wall plug in general, those plugs are often used with e.g, a light fixture or a fan. General-purpose relays are similar, as they are sometimes used for things like locks or garage doors.
Using the Switch as X integration, you can convert those switches into the entity types that best matches your use case.
Configuration
Adding Switch as X to your Home Assistant instance can be done via the user interface, by using this My button:
If the above My button doesn’t work, you can also perform the following steps manually:
-
Browse to your Home Assistant instance.
-
In the sidebar, select Settings.
-
From the configuration menu, select Devices & Services.
-
In top of the screen, select the tab: Helpers.
-
In the bottom right, select the Create helper button.
-
From the list, search and select Switch as X.
-
Follow the instructions on screen to complete the setup.
Switch as X from the existing entity
Where compatible, Switch as X will appear on entity properties. A list of entities can be found in Settings -> Devices & Services -> Entities.