haveachin / infrared

An ultra lightweight minecraft reverse proxy and idle placeholder
https://infrared.dev
GNU Affero General Public License v3.0
749 stars 60 forks source link

Home Assistant Addon support #19

Open FeikoJoosten opened 3 years ago

FeikoJoosten commented 3 years ago

Hi, I recently found out about this project and I was wondering if someone would care to add support for adding this project as an addon to home assistant.

Here's an example on how this could potentially be done.

I would've loved to do this myself, but I have 0 knowledge regarding docker.

If this isn't something anyone is interested in then that's fine as well feel free to close this issue is that's the case.

MB175 commented 3 years ago

@FeikoJoosten Nice idea, we already feature callback urls. I for example using them in nodeRed to trigger several things, sometimes lamps, sometimes notifications.

What do you exactly looking for as features of the addon, what function exactly you hoping for.

FeikoJoosten commented 3 years ago

Addons in HomeAssistant (HA) are basically just running dockerfiles, but without the user doing any work in something like portainer.

Prefferably I’d be able to just add this project as an addon. Configure the addon using a similar structure you’re currently doing. Then be able to start/stop the addon using HA.

Edit: Glad you like the idea!

MB175 commented 3 years ago

I get the point, we are going to think about it. Is there an easy way to mange Docker networks in HomeAssist, because thats a key mechanic which needs to be configured in order to provide infrared with a workable environment

FeikoJoosten commented 3 years ago

I think so. I mean, I’m also running things like nginx proxy manager haha. But I’m certain the people in the home assistant discord are capable of providing much better answers than me.

FeikoJoosten commented 3 years ago

@MB175 Alright, I gave it a shot, but I don't know enough about docker and setting up addons for home assistant to do this myself unfortunately. Together with my work I don't have enough time to do this myself. 😞 If you want to close this request, feel free to do so.

MB175 commented 3 years ago

@FeikoJoosten Right now its a work week, dont be sad i might take a look at it on a weekend. My main problem right now is i have no Home Assistent Test environment.

FeikoJoosten commented 3 years ago

Ah same here regarding the work week hehe. From what I saw on the home assistant docs you should be able to create a local docker environment for home assistant. See https://developers.home-assistant.io/docs/add-ons/testing