Use the Change Device Type helper to make a light appear and behave as a switch. For example, a smart plug controlling a lamp will change from a lightbulb icon with a brightness slider to a simple on/off toggle switch.
How do you change a light to a switch?
The most direct way to change the behavior of an entity is through the Helpers menu. This creates a new "virtual" entity that mirrors the state of the original light but presents it to the system as a switch. This is useful when you have a device that Home Assistant identifies as a light, but you prefer the interface of a switch for your dashboard or automation logic.
- Navigate to Settings > Devices & Services.
- Select the Helpers tab at the top of the page.
- Click the Create Helper button in the bottom right corner.
- Choose Change device type from the list of available helpers.
- Select the light entity you wish to convert from the dropdown menu.
- Choose Switch as the new device type.
- Give the new entity a name, such as "Living Room Lamp Switch," and save it.
Labels and menu names may differ slightly depending on your version of the software. Once saved, Home Assistant creates a new entity ID. You will use this new switch entity in your dashboards and scripts instead of the original light entity. The original light entity remains in the system, but you can hide it from your primary views to avoid confusion.
Why does a light need to be a switch?
Some devices are categorized as lights by the manufacturer or the integration, but they function better as switches in a home layout. A smart plug used for a coffee machine or a fan might be detected as a light if the plug has a "power-on behavior" set to light mode. Converting it to a switch removes the brightness and color controls that do not apply to a simple power plug.
Using a switch instead of a light also simplifies the user interface. A light entity often triggers a pop-up window with a color wheel and a dimming slider when clicked. If the device is not actually dimmable, this pop-up is an unnecessary step. A switch entity performs a single action: it toggles the power. This creates a faster, more intentional interaction when you are managing your home environment.
This conversion is also helpful for automation triggers. Some blueprints or third-party scripts specifically look for switch entities. By creating a switch version of your light, you ensure compatibility with these tools without having to rewrite the underlying code of the integration.
What happens to the original light entity?
The original light entity is not deleted or replaced. The Change Device Type helper acts as a wrapper. When you flip the new switch to "on," the helper sends a command to the original light entity to turn on. When you turn the switch "off," the light entity follows suit. They are linked in real-time.
Because both entities exist, you may see duplicates in your entity list. To keep your workspace calm and organized, you should manage the visibility of the original entity. You can do this by clicking on the original light entity, going to Settings, and selecting "Hidden" under the visibility options. This ensures that when you search for devices or add them to a room, only the switch version appears.
If you decide you want the brightness controls back, you can simply delete the helper entity. Deleting the helper does not affect the original light device or its connection to your hub. The original entity will remain exactly as it was before you created the switch.
Where do people run into trouble?
A common issue occurs when users try to use the original entity in a dashboard while expecting it to behave like the new switch. If you add the original light to a card, you will still see the light-specific controls. You must explicitly replace the entity ID on your dashboard card with the new helper entity ID to see the switch behavior.
Another point of confusion is the synchronization of states. While the state usually updates instantly, some integrations have a slight delay. If you turn the light on using a physical wall switch, the helper entity might take a second to reflect that change. This is a limitation of the hardware communication, not the helper itself.
Some users attempt to use the "Customize" section in the configuration YAML file to change the device_class. While this can change the icon, it does not change the fundamental way the entity is handled by the system. The helper method is the preferred approach because it changes the entity's functional type, not just its visual label.
How to tell if you should use a switch or a light?
Deciding between a switch and a light depends on the physical nature of the device and how you interact with it. Use a switch when the device only has two states: on and off. Use a light when the device has variable states, such as brightness levels, color temperature, or RGB colors.
Follow these rules of thumb to decide:
- If the device is a smart plug controlling a non-light appliance, use a switch.
- If the device is a dimmable bulb, keep it as a light to retain control over the atmosphere.
- If the device is a simple on/off relay for a light fixture, a switch is often more efficient for the dashboard.
- If you find yourself clicking a device and then immediately closing the brightness slider without using it, change it to a switch.
Can I change a switch back to a light?
Yes, the process is identical. You create a Change Device Type helper, select the switch entity, and choose Light as the new type. This is useful if you replace a simple bulb with a smart dimmable bulb but want to keep the same entity name in your automations.
Will this change affect my voice assistants?
Voice assistants often categorize devices based on their type. If you change a light to a switch, your voice assistant may no longer group it under "Turn off all the lights." To fix this, you can manually assign the new switch to a "Room" or "Area" within the voice assistant's own app settings to ensure it still responds to group commands.
Does this use more system resources?
Creating a helper entity uses a negligible amount of memory. Even in a home with 100 or more helpers, the impact on system performance is typically unnoticeable. The benefit of a cleaner interface and simpler automations outweighs the minimal resource use.