I have zigbee2mgtt and home assistant in use. I have paired multiple door sense via zigbess, some of them are used on windows, some of them on doors. Now i am trying to override in configuration.yaml file the device_class from door to window but it is not working as expected. I found this documentation for exposing a switch as a light, and this works:
devices:
'0x12345678':
friendly_name: my_switch
homeassistant:
switch:
type: light
object_id: light
light:
name: null
value_template: null
state_value_template: '{{ value_json.state }}'
I tried an analogue approach to change door to window, but it has no effect. Is that even possible? If so, what would be the yaml config for it?
