Turning a "Light" entity to "Switch" entity


I recently bought a Zigbee switch to control my shower water boiler. This is a dedicated switch, made for boilers (or at least this is how it labaled). However, in HA its recognized as “Light” entity and “Switch”.

Is there a way I can turn it to be a switch, so when I’m asking Assist to turn off or on all the lights in my home it won’t interact with the boiler too?

Would a Switch as X helper do it?

No. Lights cannot be turned into other switches. Only switches can be turned into lights.

They can, use a template switch.

  - platform: template
        value_template: "{{ is_state('light.kingsley_games_room_camera_power', 'on') }}"
          service: light.turn_on
            entity_id: light.kingsley_games_room_camera_power
          service: light.turn_off
            entity_id: light.kingsley_games_room_camera_power

(Kingsley is a dog…)

1 Like

Yes, can be done with the template integration. Not with the “change device type of a switch” integration tho.

It does however solve the O.P’s question.

This script also remove the original “light” entity?, is there a way to do so?

No, you won’t be able to remove it completely but you can hide it and exclude it from voice assistants.

1 Like