Can a custom component set to load/start on demand instead of on startup?

So I have a XAP800 mic controller I use as multiroom audio.

To use it I have this custom component (GitHub - jslove/xap_controller: Home Assistant platform to use a Gentner / Clearone XAP unit as an audio matrix) that works flawlessly, but only if the xap800 device is powered when homeassistant starts (or restarts).

I’m an exOpenHab user, and there i was able to turn the device ON with a smart plug only when needed, while if I do it in homeassistant with that custom component, entities won’t show up unless the device was ON when HA starts.

Is there any way to fix this? like loading the custom component (that has a “connect” section in it) after I turn on the device?

Any help will be very appreciated.

Dynamic load. No.

Reload the offending config after your device is on… Possibly :

Note what Frenk says a few posts after. You should not have to reload an integration. It’s a sign of a badly behind integration. You may want to work with the developer on that.

Hi Nathan thanks for your answer.
Apparently User AishaRey pointed me to the right direction so I can get rid of the custom component and make serial connection myself, so there will be no need to perform a potentially risky component reload.
Thanks for your time, even thou I’m not using your solution, thanks to you I learned something new.

1 Like