Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esphome integration to homeassistant #3

Closed
undefinedTea opened this issue Sep 29, 2021 · 4 comments
Closed

esphome integration to homeassistant #3

undefinedTea opened this issue Sep 29, 2021 · 4 comments
Labels
question Further information is requested

Comments

@undefinedTea
Copy link

Hei,
Really great repository! Thanks a bunch for making this information available, since it can be difficult to find docker and traefik based implementations these days.

Anyhow, I was wondering if you could explain the esphome integration to homeassistant somewhat...
To clarify, I have no issue at all to run the container, but I am just wondering how do I get to a 'supervisor like experience' from there? i.e. what happens on the homeassistant interface after the container is brought up?

Thanks again for your great work!

@bachya
Copy link
Owner

bachya commented Sep 29, 2021

Hi! Thank you for your kind words. Can you explain a little more what you're looking for? I'm not sure what you mean by "supervisor like experience."

@undefinedTea
Copy link
Author

Sure. So when you run HomeAssistant OS for instance you get their supervisor, right - which let's you install things like and mqtt broker and esphome for example. When you do that you get a esphome dashboard inside homeassistant if you know what i mean.
My understanding is that it should be possible to get the same functionality with a docker version of homeassistant and esphome (both of which you have here), but how is that achieved? Like what do you configure in homeassistant after the containers are up to get the esphome dashboard there where you can OTA flash and all that there if that makes sense?

Maybe I am still explaining this poorly, but this is the end result I am hoping to achieve somehow if it is possible: https://esphome.io/guides/getting_started_hassio.html / https://youtu.be/7R30c-H8Rro?t=203

@bachya bachya added the question Further information is requested label Sep 29, 2021
@bachya
Copy link
Owner

bachya commented Sep 29, 2021

Got it! Thanks for the clarity. So, the goal is to have HASS and ESPHome as separate Docker containers, but have the ESPHome dashboard as an icon you can click in the HASS interface:

CleanShot 2021-09-29 at 11 14 40

Here's the process I followed:

  1. Create a HASS container, an ESPHome container, and a Traefik container to act as the proxy in front of them.
  2. Notice how I've defined the USERNAME and PASSWORD environment variables for the ESPHome configuration. This is crucial: since Traefik is now ostensibly exposing your ESPHome to the world, we want to have credentials to protect it.
  3. I add an iFrame panel to show ESPHome in the HASS UI (here). Note that this file is included in configuration.yaml.

This effectively replicates the HASS OS experience with one slight difference: the ESPHome dashboard is accessible as-is through the URL defined in Traefik. This is either a benefit or a drawback, depending on your thinking, but either way, something to be aware of.

@undefinedTea
Copy link
Author

awesome, thanks for this! i was looking at master which did not have the env variables or labels on the container or maybe i just missed them, but it all makes sense now. closing 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants