Home Assistant Community Add-on: ZeroTier One

Can anyone give me a little guidance on how (or even if) I can send an HTTP POST webhook trigger to my HomeAssistant which is configured to be part of a ZeroTier network?

In the past, I could configure Port-forwarding in my router and with a DDNS service, I could trigger a HomeAssistant webhook Automation to run by sending an HTTP POST request (eg. something like http://myddns.com:8123/api/webhook/<webhook_id>)

However, my current ISP uses CGNAT so my home network is not allocated an external IP address on the internet, so Port Forwarding is useless to me. I’ve got the ZeroTier add-on working in my HomeAssistant and I can access it remotely using the ZeroTier network allocated local IP address from any client that also is part of my ZeroTier network, but I want to know if I can trigger a HomeAssistant webhook Automation using some sort of ZeroTier public URL for my configured ZeroTier network (if that makes sense?)

Basically, I want to run a HomeAssistant Automation from a device like Amazon Alexa by sending a webhook HTTP POST request via my ZeroTier network.

Is this possible?

Hi All, I have a question about routing between zeroteir and physical lan using HA.

I have several tasmota devices and some other devices with a web interface on my LAN, and would like to access them from my phone while away from home.

in the Zeroteir documentation there are instructions on how to setup a raspberry pi to do exactly this, however I don’t want to setup another device just to do this. https://zerotier.atlassian.net/wiki/spaces/SD/pages/224395274/Route+between+ZeroTier+and+Physical+Networks

Is there a way to add rules to iptables in HA? can it be done from the zerotier Addon config?

for those interested… i figured this out and it wasn’t to daunting. I’ve added step by step to the other thread
https://community.home-assistant.io/t/zerotier-one-bridging/132436/4

3 Likes

Hi all

so super wierd issue. I got zerotier working well on the iPad (s) , iPhone etc.

for some weird reason on the Mac it just won’t connect to Home assistant.

The Mac zerotier app says its connected. and the web interface shows the Mac connected

but I cannot connect to my Home assistant not via the Mac app or the browser…again works perfectly on iOS

what am I missing here :slight_smile:

thx

Z

My iphone has problems with zerotier over Wifi, but it works well over 4G. I suspect it has something to do with the ZT+Wifi+Apple combo, not with the zerotier HA-addon.

thx @nilux !

I tried with both wifi and 4/5G…still cant connect

any other things I can try?

best

Z

My brain doesn’t compute with anything apple… i remember trying to print some tickets from my wifes macbook once! i tried until she was ready to leave 3hrs later… she did it in 30seconds. i still dont understand why the print button for the word app is in the start menu for the whole computer

But anyway, I have had a few times where it just wont work, it shows connected but doesn’t allow network access, but disconnecting Zerotier and reconnecting seems to fix the problem.

is it just home assistant you cant access on the remote network? or can you not connect to any devices on the remote network?

1 Like

Noticed my HA instance was inaccessible via ZeroTier, but the host was still showing as ONLINE on the ZeroTier website. I locked in the logs for the addon and it was JUST solid:

recv: Connection reset by peer
recv: Connection reset by peer
recv: Connection reset by peer
recv: Connection reset by peer
recv: Connection reset by peer
recv: Connection reset by peer
recv: Connection reset by peer

so I restarted and now I get:-

[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] zerotier.sh: executing... 
[10:20:40] INFO: ZeroTier node address: x
[10:20:43] INFO: Configuring network: x
[cont-init.d] zerotier.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[10:20:43] INFO: Starting ZeroTier One...
recv: Connection reset by peer

Hi all

I’ve installed and activated Zerotier as addon and installed client on an android phone and I can reach HA.

HA is installed as VM in Proxmox.

How is it possible to see also Proxmox (and all other VMs and LXCs) in that network using Zerotier?

Thanks

Hi,

I lost connection via ZeroTier since last week. The last time I was connecting was on Wednesday 08/03 - with no issue. Yesterday I tried with no success. On ZeroTier panel both nodes are online, but mobile app can’t connect. Today I spotted that in the meanwhile was update of this add-on. Any one has similar issue?
I restarted system several times, installed all system updates - no result. In the log there is nothing at all.

[18:34:10] INFO: Starting ZeroTier One…
s6-rc: info: service legacy-services successfully started

best
Andrzej

I’ve noticed the same behaviour. After update ( v. 0.16.1 ) the component keeps reporting

connect: Operation timed out

Restart seems to resolve the problem but after sono time it disconnect again

In my log appeared there after:

[18:34:10] INFO: Starting ZeroTier One…
s6-rc: info: service legacy-services successfully started
connect: Host is unreachable
connect: Host is unreachable
connect: Host is unreachable
connect: Host is unreachable
connect: Host is unreachable
connect: Host is unreachable

I lost my zerotier connection on Archlinux after the latest upgrade (1.10.5), and had to downgrade to 1.10.4. Maybe it’s related.

Both nodes was version 1.10.4, so it is not that case, probably.

At my side issue solved with next add-on update.
Thank you.

Hi all

This addon is the server or client side of Zerotier?

Thanks

Hello,
I tried setting up remote monitoring and operation of my HAOS using ZeroTier, by following this guide.
Everything went smoothly but I still cannot reach HA, i.e. no reply from the web browser.

Is there anyone who could get ZeroTier working with the latest HAOS?

Home Assistant Configuration:

  • HAOS host: Ubuntu 22.04 amd64 running on a MacBookAir
  • HA Core: 2024.8.2
  • HA Supervisor: 2024.08.0
  • Operating System: 13.1
  • Frontend: 20240809.0
  • ZeroTier One Addon: 0.18.0
  • ZeroTier Client Version: 1.12.2

Phone Configuration:

  • Phone: iPhone 13 128GB
  • ZeroTier App: 1.14.0
  • ZeroTier Client Version: 1.14.0

Mine is working. Only difference to your setup is Android phone, not iphone.

@nickrout
Thanks for the feedback.

Edit 1
I think the problem is related to SSL certification. So I created a self signed certificate like shown in this post.

Then I tried to connect to ZeroTier with an Android phone and a Windows PC and both of them could access HA with just a certificate warning.

So the problem is with my iPhone. A quick google search unearthed many issues between iPhone, SSL and HA but I am still looking for a solution.

Edit 2
By reinstalling the ZeroTier App on my iPhone I could finally access HA while connected to my WiFi network.
However, I lost access as soon as I switched to Mobile internet.

Hi,

I have same kind of problem, did you get it solved?

i have an android phone and everything work like it should, but my wifes iphone (SE20) works when it is on WIFI and local network, but when it’s connected on mobile network with Zerotier, HA companion app is barely working. it keeps on loading very very very long time and sometimes it will get connected to home assistant and some times it throw error about lovelace. When accessing through safari browser, everything works like should up to login screen, after login same thing like with companion app. I think HA version 2024.7.x was last whn companion app was working on iphone.

Here is a short caption from companion app log

2024-09-05 21:10:54.369 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 6)
2024-09-05 21:10:54.370 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 6)
2024-09-05 21:10:54.370 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 6)
2024-09-05 21:10:54.412 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:54.412 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:54.412 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:54.412 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:54.412 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:54.412 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:54.412 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:54.412 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:54.607 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 6)
2024-09-05 21:10:54.618 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:55.367 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 6)
2024-09-05 21:10:55.368 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 6)
2024-09-05 21:10:55.368 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 6)
2024-09-05 21:10:55.368 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 6)
2024-09-05 21:10:55.369 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 6)
2024-09-05 21:10:55.369 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 6)
2024-09-05 21:10:55.369 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 6)
2024-09-05 21:10:55.370 [Info] [hakit-work-queue] [Environment.swift:71] init() > WebSocket: Received: event: for HARequestIdentifier(rawValue: 6)
2024-09-05 21:10:55.410 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:55.410 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:55.411 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:55.411 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:55.411 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:55.411 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:55.411 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson
2024-09-05 21:10:55.411 [Info] [main] [Environment.swift:54] init() > PromiseKit:cauterized-error: missingPerson