Using customize_glob to change switch to light

Is this possible to do with a zwave device?

   "binary_sensor.door*":
      device_class: window

    "switch.double_relay_switch_3":
      device_class: light

The change for the binary sensor works, but it doesn’t have an effect on the switch.

Do I really have to make a new additional device?

Switches only have these device classes:

https://www.home-assistant.io/integrations/switch/#device-class

Yes.

1 Like