zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

[Feature request]: add an option to assign Home Assistant entity_category from custom converter

Open osnwt opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe

Writing converter for DIY device for Home Assistant, I have not found an option to declare some entities as configuration or setting, etc. It seems to be hardcoded for known cases, but would be nice to have such option for converter, too.

Describe the solution you'd like

Add an option to override entity_category in converters for Home Assistant.

Describe alternatives you've considered

Maybe I missed such an option?

Additional context

N/A

osnwt avatar Dec 25 '23 10:12 osnwt

Thank you for linking this to my feature request, and sorry, I wasn't aware of yours when I opened it. With the latest dev version, you should now be able to do what you like by adding .withCategory('config') or 'diagnostic' to your exposes.

slugzero avatar Jan 09 '24 20:01 slugzero

Thanks, excellent solution. I'd close it as soon as it comes to a released version.

osnwt avatar Jan 09 '24 20:01 osnwt

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days

github-actions[bot] avatar Jul 08 '24 00:07 github-actions[bot]