The light switch platform lets you control an existing switch, allowing you to use a switch like a light in Home Assistant.
In Home Assistant’s world, a wall plug is a switch. This platform allows you to expose this switch as a light source, allowing you to add, e.g., the wall plug controlling your Christmas Tree, to be part of a light group.
To enable this platform in your installation, add the following to your
light: - platform: switch name: Christmas Tree Lights entity_id: switch.christmas_tree_lights
A light switch only supports turning on/off a light.
Suggest an edit to this page, or provide/view feedback for this page.