Edit zigbee.db

hi all,

i have a device that has had domain of light. but it’s actually a switch.

I can’t change the domain in the device itself (says i have to keep it as is)

I can’t edit the zigbee.db in file editor - how do you edit a light to become a switch?

Thank you

Under Settings/Devices & services/ Helpers.
There is a helper for that.

thanks. doesn’t that create an additional virtual device?

i forgot to say I was looking at Zigbee Home Automation - Home Assistant

did this and reset HA but it’s still a light. not sure if i have to do something else

Ya that may not work for ZHA. I’m not that familiar with ZHA, I’ve have Z2M.

Sorry I think I’m wrong on that.

solved it as i wasn’t including the endpoint ID

Either way will work, however as noted the way documentation for the ZHA integration will not create an additional virtual device https://www.home-assistant.io/integrations/zha#modifying-the-device-type

But if the manufacturer has set to wrong device type in the firmware then a better long-term solution would be to add a new device handler to ZHA Device Handlers library for a custom quirk for that device as that would solve it for everyone adding the same device in the future, (if so suggest report it as a new device request to ZHA Device Handlers), see → https://www.home-assistant.io/integrations/zha#zha-exception-and-deviation-handling