A Home Assistant Switch is no longer just a switch

Disclosure: This post contains affiliate links. If you click through and make a purchase, I will earn a commission, at no additional cost to you. Read my full disclosure here.

With the release of Home Assistant Core 2022.4, the way you interact with switches in your smart home is about to change. Using the Switch as X helper, you have the power to customize what each switch does, whether it's controlling a light, a fan, or a cover. No longer will all switches be treated the same by Home Assistant. Instead, you can decide exactly what function each switch serves in your home automation system.

A Philips Hue smart switch, which isn't plugged in to the wall and doesn't have anything plugged into it.
A smart switch has been nothing more than a switch to Home Assistant

This enhanced functionality is expected to be well-received within the Home Assistant community. Using this helper, you can, for example, change an entity titled switch.living_room_light to light.living_room. Home Assistant will treat that light like it would any other. You can easily use it in automations and scripts, and you will be able to display it in light-specific Dashboard cards.

You have two options to convert a switch into any of the available options. You can create a new helper and simply select the Switch as X option. Alternatively, you have the same options presented to you, whenever you open the switch entity's settings. Once updated, the original switch entity will be hidden. What won't be hidden is the new entity Home Assistant has just created for you. This will show up as the option you selected.

A screenshot showing how to set up a helper in Home Assistant to convert a switch.
A screenshot of Home Assistant showing how to convert a switch in the entity's settings.
A screenshot of Home Assistant showing a switch that has been converted to a light.
A portrait photo oif Liam Alexander Colman, the author, creator, and owner of Home Assistant Guide wearing a suit.

About Liam Alexander Colman

is an experienced Home Assistant user who has been utilizing the platform for a variety of projects over an extended period. His journey began with a Raspberry Pi, which quickly grew to three Raspberry Pis and eventually a full-fledged server. Liam's current operating system of choice is Unraid, with Home Assistant comfortably running in a Docker container.
With a deep understanding of the intricacies of Home Assistant, Liam has an impressive setup, consisting of various Zigbee devices, and seamless integrations with existing products such as his Android TV box. For those interested in learning more about Liam's experience with Home Assistant, he shares his insights on how he first started using the platform and his subsequent journey.

Leave a comment

Share to...