Sanderhuisman / home-assistant-custom-components

🏡 Custom components for Home-Assistant
https://www.home-assistant.io/
Apache License 2.0
33 stars 12 forks source link

Work with external docker running on different machine? #14

Open miguelarios opened 5 years ago

miguelarios commented 5 years ago

I can't find how to be able to have this look at dockers on another machine. I run Hassio on a VM with a different IP from the unRAID box that runs my dockers (VM and dockers are the same machine but different IP). I don't see how to be able to run component.

ualex73 commented 5 years ago

In principle if you add:

url: tcp://127.0.0.1:1234

That should do the trick, but i haven't tested it.

miguelarios commented 5 years ago

I would imagine that that works. I looked it up but didn’t try it because I was curious about how do you authenticate. I mean if my host has a root and password credentials how do I add those? On Aug 23, 2019, 3:25 AM -0500, Alexander notifications@github.com, wrote:

In principle if you add: url: tcp://127.0.0.1:1234 That should do the trick, but i haven't tested it. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

roblandry commented 5 years ago

I was working on getting tcp support. i have it working however, there is an issue where there are errors on startup. #12 Keep an eye on that issue.

roblandry commented 5 years ago

If you just want to give it a go, and accept there will be errors, however it still seems to function, copy the __init__.py code from the other issue.

miguelarios commented 4 years ago

I will have to try it right now using the deprecated one from here