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

Package for Home Assistant (HassIO) #1336

Open
DentonGentry opened this issue Feb 14, 2021 · 8 comments
Open

Package for Home Assistant (HassIO) #1336

DentonGentry opened this issue Feb 14, 2021 · 8 comments

Comments

@DentonGentry
Copy link
Contributor

@DentonGentry DentonGentry commented Feb 14, 2021

Is your feature request related to a problem? Please describe.

Though https://www.home-assistant.io/ runs on what appears to be Debian, neither deb nor apt are present and all add-on functionality is expected to be done via Home Assistant plugins.

Describe the solution you'd like

It would be great to have Tailscale support as a HassIO plug-in for Home Assistant.

Describe alternatives you've considered

Though possible to run on a separate base system like Ubuntu or a standard Debian, installing Home Assistant is challenging and using their VM images is appealing for that reason.

Additional context

There is a community supported Wireguard plugin for Home Assistant, demonstrating how a Tailscale plugin might work:

@bradfitz
Copy link
Member

@bradfitz bradfitz commented Feb 15, 2021

Took me too long to find docs, so a link:
https://developers.home-assistant.io/docs/add-ons/tutorial/

@bradfitz
Copy link
Member

@bradfitz bradfitz commented Feb 15, 2021

And https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config contains:

privileged ... Privilege for access to hardware/system. Available access: NET_ADMIN, SYS_ADMIN, SYS_RAWIO, SYS_TIME, SYS_NICE, SYS_RESOURCE, SYS_PTRACE, SYS_MODULE or DAC_READ_SEARCH

and

full_access .... Give full access to hardware like the privileged mode in Docker. Works only for not protected add-ons.

Between the two of them, should be able to do all the right tun stuff.

@rubiojr
Copy link

@rubiojr rubiojr commented Feb 16, 2021

https://github.com/tsujamin/hass-addons worked for me, including the unmerged PR to bump Tailscale to 1.4.4

@DentonGentry
Copy link
Contributor Author

@DentonGentry DentonGentry commented Feb 17, 2021

Thanks! I hadn't found that add-on. I've installed 1.2.10 using https://github.com/tsujamin/hass-addons
It seems like it is working. I'll try forking the repository and applying the 1.4.4 PR next.

@mlangenberg
Copy link

@mlangenberg mlangenberg commented Mar 8, 2021

Update: My rPi froze again, even with Tailscale disabled. So it probably has to do with an earlier Home Assistant update I did on the same day as installing Tailscale.

I used https://github.com/ClayKaiser/hass-addons for a few weeks, and while the setup was a breeze, I am experiencing stability issues on my rPi running Home Assistant OS.

Without any known reason, the rPi just stops working. No automations run, no remotes work anymore. It does respond to ping, but the web interface, and SSH server (both on port 22 and 22222) don't accept any connections.

I need to power cycle to get it to work again. This setup ran for years without issues, so it's pretty weird. I did update Home Assistant Core and OS, before installing Tailscale, so maybe that's the cause.

For now I disabled Tailscale to see if it runs stable for a week. Reporting this here for people to find with similar issues.

@colemickens
Copy link

@colemickens colemickens commented Mar 17, 2021

@mlangenberg Do you use their supervisor setup? I had my dad install tailscale via deb, and then later found that the Pi's configuration (due to supervisor?) was causing dhcpcd to trash, aggressively re-leasing many times per second. Eventually the Pi just falls over. I'm not sure what exactly is the cause of the thrashing. But now I'm mentioning it since it sounds like you might have a similar issue. (journalctl --follow was enough to see it)

@mlangenberg
Copy link

@mlangenberg mlangenberg commented Apr 6, 2021

No it's actually home-assistant/core#47928, so totally unrelated.

@jseadragon
Copy link

@jseadragon jseadragon commented May 2, 2021

Is someone actively working on this? If not, I might be able to help out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
6 participants