Home Assistant Remote Access Using Cloudflare
HTML-код
- Опубликовано: 5 сен 2024
- Home Assistant Remote Access Using Cloudflare is a simple and secure way to remotely access your home automation system from anywhere in the world. By connecting your Home Assistant to Cloudflare. In this video I will be purchasing a new domain, transfer the domain to cloudflare and linking cloudflare to home assistant using a secure tunnel.
LINKS:
GoDaddy: www.godaddy.com/
Google Domains: domains.google/
Cloudflare: www.cloudflare...
Cloudflare Addon: github.com/bre...
Cloudflare Addon Repo: github.com/bre...
CODE:
Configuration.yaml: pastecode.io/s...
Visit my website at hassassistant.com.
Thank you for watching, please LIKE and SUBSCRIBE and hit the NOTIFICATION button so you're updated on future content.
Hope you found this tutorial helpful!
____ DEVICES! _____________________________________________________________________________________________________
CONBEE STICK (ENABLES ZIGBEE DEVICES TO CONNECT TO HOME ASSISTANT):
UK: amzn.to/3X5QH3E
US: amzn.to/3p2EFeY
OUTDOORLED STRIP (REQUIRES TUYA ZIGBEE HUB OR CONBEE STICK AND PI)
GLOBAL LINK: s.click.aliexp...
AQARA ZIGBEE MOTION SENSORS AND DOOR SENSORS (REQUIRES AQARA HUB OR CONBEE STICK & PI):
UK: amzn.to/465Qq55
US: amzn.to/42CTJxx
AQARA LIGHT BULB E27 (REQUIRES AQARA HUB OR CONBEE STICK & PI):
UK: amzn.to/460ed6m
AQARA LIGHT SWITCH (REQUIRES AQARA HUB OR CONBEE STICK & PI):
UK: amzn.to/3N60UJ0
US: amzn.to/3CLvbYV
AQARA BATTERY REMOTE LIGHT SWITCH (REQUIRES AQARA HUB OR CONBEE STICK & PI):
UK: amzn.to/3p5JpR1
US: amzn.to/43Xdf8X
BUY A RASPBERRY PI HERE (TO HOST HOME ASSISTANT):
UK: amzn.to/3p6NN27
US: amzn.to/3CqwhJl
BROADLINK RM4 PRO (TO CONTROL INFRARED DEVICES SUCH AS TV & RF DEVICES SUCH AS PROJECTOR SCREENS)
UK: amzn.to/3pbfaYN
US: amzn.to/3PbZPSp
ZIGBEE PLUG SOCKET (REQUIRES ZIGBEE HUB SUCH AS HUBITAT OR SMARTTHINGS):
UK: amzn.to/3P86VHJ
US: amzn.to/43VpGSO
ZIGBEE SPOTLIGHTS & RGB REMOTE
UK: amzn.to/3p1ml5Q
US: amzn.to/3CLwd7f
ROBOROCK ROBOVACS
UK: amzn.to/3NairPY
US: amzn.to/3CtutPO
4K HORIZON PRO PROJECTOR IN THE BEDROOM
UK: amzn.to/3NskbWb
US: amzn.to/42DpbMi
AMAZON ECHO 4TH GENERATION:
UK: amzn.to/43SYDaG
US: amzn.to/3p3Ddc9
ECHO SHOW 10
UK: amzn.to/3N7Q9FX
US: amzn.to/3NqVUjw
That was perfect. Feels odd to see home assistance outside the local network. 🤣🤣. As always, thank you, it was the perfect guide.
Perfect! Worked like a charm. Been trying for over a year to achieve this and finally got it working. Though had to pay AUD 1.60 for a year, but that's a small price to pay for the benefit of remote access. Thanks you
I want just to say this is really amazing clear video , thank you so much , keep on the good work !
I have a quick question, for some reason i can't connect from outside my network , i keep getting 403: forbidden ! and the app Unable to connect to home assistant retrying ... Using namecheap domain name with clouddfare...Thanks
Brilliant, clear tutorial. Even as a complete beginner I got it to work. Thank you
It worked for me flawlessly, the steps were easy and there was no problem. Awesome work.
This is the only tutorial that worked for me. Awesome!! Thanks a lot
Thanks for the video, it helped a lot here, it solved my problem. Hugs from this side of the world, Brazil.
wow so smooth, fastest most efficient tutorial i have followed. got a sub buddy
Wow! Finally, a detailed tutorial that worked. Thank you
Very complete video many thanks
One question: since moving to HA remote w cloudflare I lost my functionality with TTS for example no longer receive the notification on my google nest device etc
Hi, what if i have multiple HA on different houses? is it possible to connect one domain with multiple HA ?
Thanks a lot for this....very easy to follow.
Thank you very much. It worked perfectly for me. Only I'm unsure how sure this process is.
Hi, your tutorial is excellent! Great job!
Hi, Thank you for the tutorial, very good and simple video to follow.. I have already set my HA up to use Cloudflare as i was revently hit by the CG-NAT terror.. all is fine Internally, but i was wondering if you could help with my camera feeds as its doing my head in. I'm using Frigate, the cameras are set in Frigate to use the in-built go2rtc which then re-streams for detection, recording and dashboard live view.. all this is working well however, since i moved to the cloudflare tunnel oppose to port forwarding on my FW, the live camera views no longer work in "realtime" when i'm not connected to my LAN. (they used to on port forwarding) i've managed to get them sort of working using the "frigate" cards (opose to the picture at a glance cards) but they aren't exactly "Live" (they are pretty much static images that refresh every 5 - 10 seconds or so) would you have any idea how i can fix this so that my camera views are "Realtime" outside of my network like they used to be? Many thanks in advance. Joe
congratulations excellent channel I would like if one day you can make a video how to integrate google home or alexa with this method thank you very much
i will be posting a method on how to create alexa ctionable notifications and have home assistant entities appear in alexa devices soon. watch this space :)
really digging your channel!
You did not explain the settings changes on the Companion app to access HA remotely. Otherwise, a quick and easy tutorial. Thanks for the video.
Easiest way to get this done 100% correctly, delete the app, re-download and put in your new external address being used for Home Assistant
@@HassAssistant not working... I can get into the HA Login page, and until the 2FA, after that I get the error code 403. There must be some settings with cloudfare that need to be adjusted.. any ideas?
I figured it out. I had opened up cloudfare's zero trust tunnel with some strict restrictions. Loosened them all and now it's working.
I notice this doesn't appear to create an SSL cert like the duckdns addon does
hey, would that also work for a lte router with a non public ip (subip) or do i have to setup a reverse ssh tunnel?
im getting error: login blocked: user cannot authenticate remotely.. i did everything right from another tutorial the only thing i didnt is setting up an ssl. im using namecheap, cloudflare, home assistant vm. i didnt buy the ssl in cloudflare because im not sure if namecheap have one with the domain for free and i didnt do any lets encrypt stuff with the same reason and also im not sure how to do it. what did i miss? do i have to delete anything from HA or add something. im guessing its an ssl and if it is can you point me to the direction where i can learn how to do that. would really appreciate the help. thanks
i finally figured it out: people->your account->un ticked can only log in from local network.
thanks you
Hey, thanks for the video, i have followed your steps and my SSL certificate is active but i still get "Hmm. We’re having trouble finding that site." what am i missing?
i am getting the same thing. Did you manage to solve this ?
getting the same (or just different wording) "This site can’t be reached".
Have you been lucky in resolving the issue?
What is the reason I can't open my homeassitant through my domain on the same network with wifi, only on 4g?
I did exactly these steps. I am seeing the following error in the logs and the URL also redirects to godaddy when i try to access my Godaddy URL. "- ERR Request failed error="Unable to reach the origin service."
Can anyone help here?
Edit: After the final step in this video, it took about an hour to become active. The error will/should get replaced by "Registered tunnel connection connIndex"
Nice tutorial, but when i look in my HA cloudflare is and integration, not an addon? If i look at the addon store and search for it, it will not return and addon? Om on a Pi , and have the latest version of HA
Please check the video again. You need to add the GitHub repository in to Home Assistant.
My automation won't work remotely. Why? Is there something different that needs to be done for the automation in remote?
guess it depends on what the automation is doing, but in general all automation processes run locally.
Do you have to install and configure NGIX SSL proxy?
thank you for the video man. good tutorials are coming up but!!!! where is the security in that?
anyone who knows the domain name can start attacking home assistant?
You of course have the initial login to home assistant. You could block all incoming traffic apart from devices you specify. You have options, this is of course just the base step to getting up and running
How can I do this with Home assistant core on ubuntu. I can't install addons via HACs
You will need the Supervisor.
What is your setup?
Home Assistant 2023.7.1
Frontend 20230705.1 - latest. I'm new to homeassistant but I'm running it on a odroid running ubuntu, with very limited knowledge of linux. @@HassAssistant
@@HassAssistant I was able to get the tunnel set up with an Ubuntu installed my status on cloud flare is healthy. I can navigate to a 400 bad request page but I'm stuck at configuring the home assistant yaml file in Ubuntu. I think that's the fix. I feel I'm one step away.
Will this also work with a duckdns domain?
Did you configure port forwarding on your router for this to work? if not how does it work without it?
Yes. External 8123 port forwarded to internal 8123
Thank You
After 2 days mine connection stop working. Logs are okay. Maby any idear why
Worst case scenario, just uninstall the cloudflare addon and try again, worth changing the tunnel name too.
any idea on how to get https?
i see yours is not secured at all
This is how. Https doesn't show straight away for whatever reason.
Deu certo, obrigado :D
Domain is so cheap only for 1st year. then it will be normal price ;)
but at £10 a year can you really complain?
Thanks for a great video, i did exactly this. My cloudflare logs shows everything is running but i cant log in my address gives error. DNS_PROBE_FINISHED_NXDOMAIN. I have double checked cloudflare has certificate is active with a backup certificate too but still the domain wont open. Any suggestions please?
It may be the case your domain hasn't moved over to Cloudflare yet. If you're still having issues after 24hours, I'd suggest contacting one of the Cloudflare team or check out the forums. Any issues I've had generally have been found in forums with a solution
@@HassAssistant thanks for the quick reply, much appreciated
did you manage to get this working? worked after 24 hrs? @@Dr.AshishVerma
I dont have the "studio code server" option in my menu?
Studio code server can be installed on the add-ons page within home assistant. No repo URL is needed. Or the file editor adding works too
Thank you very much for your great RUclips !, it now works flawlessly!!
For some reason, it failed to install cloudflared add on. Is there any other repository link for cloudflared
No this will be the one you need.
I'd first be checking if you can install any other add-ons or if it is just this one. Post an logs in here too if you can get any
@HassAssistant I'm new to HA and this is my first add on.
what is this ip address 172.30.33.0
and did you do modem forwarding?
Thanks.
The Cloudflare add-on will run within the internal Docker network, which is 172.30.33.0/24. Therefore, the connections from this network need to be answered by Home Assistant, which is defined in the code-block we used on this video.
@@HassAssistant what If I am not using docker? Has something need to be added in Configuration at all?
the edge certidicate is active , but it redirects me into IONOS , the domain provider
Might just take time for changes to take effect. Check it out again tomorrow