casperklein / homeassistant-addons

Home Assistant Add-on Repository
23 stars 3 forks source link

FR: make device-type-library-import as option #15

Closed saya6k closed 7 months ago

saya6k commented 7 months ago

Add-on name Netbox

Describe the feature you'd like

Making device type in Netbox is often very time consuming. Netbox Community already supports device-type-library-import script that automatically update community-driven device types. I want to have this as an option.

It can default install all or no vendors depends on choice, but when vendors are defined, device type from specific vendors are installed.

Describe alternatives you've considered Haven't thought about it.

Additional context https://github.com/netbox-community/devicetype-library https://github.com/netbox-community/Device-Type-Library-Import

bertybuttface commented 7 months ago

There is a plugin available that can do this:

https://github.com/Onemind-Services-LLC/netbox-metatype-importer

You can already add custom plugins to this addon, documenting an example of how to use this could close this issue?

casperklein commented 7 months ago

The above mentioned plugin works like charm:

configuration.py ``` PLUGINS = ['netbox_metatype_importer'] PLUGINS_CONFIG = { 'netbox_metatype_importer': { 'github_token': 'change-me' } } ```
requirements.txt ``` netbox-metatype-importer ```

I think it's not worth to re-invent the wheel.