Change device type of a switch

The Change device type of a switch helper integrations lets you convert any Home Assistant switch into a Home Assistant Light, Cover, Fan, Lock, Siren, or Valve.

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 Change device type of a switch helper integration, you can convert those switches into the entity types that best matches your use case.

配置

要将 Switch as X helper 添加到您的 Home Assistant 实例中,请使用此 My 按钮:

手动配置步骤

如果上述 My 按钮不起作用,您也可以手动执行以下步骤:

  • 浏览到您的 Home Assistant 实例。

  • 转到 设置 > 设备与服务

  • 在屏幕顶部,选择标签:Helpers

  • 在右下角,选择 创建助手 按钮。

  • 从列表中选择 Switch as X

  • 按照屏幕上的说明完成设置。

Switch entity

The switch entity you want to convert into something else.

Type

The type of entity you want the switch to become.

Change device type of a switch from the existing entity

Where compatible, Change device type of a switch will appear on entity properties. A list of entities can be found in Settings > Devices & services > Entities.

Entity properties example