Disable dimmer control on light entity - or - change light entity to switch entity?

Is there any way to change a light entity to show up as a switch entity, or disable the dimmer capability on a particular entity?

For context: I have a zwave dimmer that I’ve configured via attributes to function as a simple on/off switch (dimmer is disabled; minimum brightness is same as max).

The “problem” is HA is showing this as a light entity, and the dimmer control is coming through. This is confusing for the family because in HomeKit it shows a dimmer control, which suggests the light can be adjusted…but it can’t.

I’ve been trying to see if there is any way to change the entity type. In the documentation I saw something similar to this:

switch:
  - platform: light
    name: Kitchen Lights - Front
    entity_id: light.z_wave_dimmer_switch_1
  - platform: light
    name: Kitchen Lights - Central
    entity_id: light.z_wave_dimmer_switch_2

But the configuration check failed with this error:

Platform error switch.light - No module named ‘homeassistant.components.light.switch’
Platform error switch.light - No module named ‘homeassistant.components.light.switch’

I’m assuming I misunderstood the instructions and maybe can’t switch types this way? Any thoughts?

You can convert a switch to a light but not a light to a switch.

Unless there is something new that I missed.

1 Like

Bummer - ok thanks for the response

I guess feature request as these light switches support limiting capabilities for some situations, but if home assistant can’t limit the UI it creates confusion

You can create a switch from template. Then you could include the template switch and exclude the light from HomeKit, if it has that capability.

1 Like

Thank you! I’ll give this a try