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

Комментарии • 68

  • @user-mt5po9ne1k
    @user-mt5po9ne1k 10 месяцев назад +1

    That was perfect. Feels odd to see home assistance outside the local network. 🤣🤣. As always, thank you, it was the perfect guide.

  • @theshawfam20
    @theshawfam20 Год назад +1

    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

  • @Ronin-xa
    @Ronin-xa Год назад +3

    I want just to say this is really amazing clear video , thank you so much , keep on the good work !

    • @Ronin-xa
      @Ronin-xa Год назад

      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

  • @chrishunter932
    @chrishunter932 7 месяцев назад

    Brilliant, clear tutorial. Even as a complete beginner I got it to work. Thank you

  • @ashwansaini
    @ashwansaini 8 месяцев назад

    It worked for me flawlessly, the steps were easy and there was no problem. Awesome work.

  • @conicio
    @conicio Год назад +3

    This is the only tutorial that worked for me. Awesome!! Thanks a lot

  • @laureatemedc33
    @laureatemedc33 10 месяцев назад

    Thanks for the video, it helped a lot here, it solved my problem. Hugs from this side of the world, Brazil.

  • @nicolasraby2967
    @nicolasraby2967 Год назад +1

    wow so smooth, fastest most efficient tutorial i have followed. got a sub buddy

  • @shivaanmaharajh2581
    @shivaanmaharajh2581 Год назад +1

    Wow! Finally, a detailed tutorial that worked. Thank you

  • @lemd49
    @lemd49 2 месяца назад

    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

  • @AsyrafAkira
    @AsyrafAkira Год назад +3

    Hi, what if i have multiple HA on different houses? is it possible to connect one domain with multiple HA ?

  •  5 месяцев назад

    Thanks a lot for this....very easy to follow.

  • @lisboa231
    @lisboa231 9 месяцев назад

    Thank you very much. It worked perfectly for me. Only I'm unsure how sure this process is.

  • @jeansebastienlessard9754
    @jeansebastienlessard9754 Год назад

    Hi, your tutorial is excellent! Great job!

  • @joes_drone
    @joes_drone 9 месяцев назад

    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

  • @federicoaffif2894
    @federicoaffif2894 Год назад

    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

    • @HassAssistant
      @HassAssistant  Год назад +1

      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 :)

  • @khandoor7228
    @khandoor7228 Год назад

    really digging your channel!

  • @TheNikesh85
    @TheNikesh85 4 месяца назад

    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.

    • @HassAssistant
      @HassAssistant  4 месяца назад

      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

    • @TheNikesh85
      @TheNikesh85 3 месяца назад

      @@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?

    • @TheNikesh85
      @TheNikesh85 3 месяца назад

      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.

  • @KrispKiwi
    @KrispKiwi 4 месяца назад

    I notice this doesn't appear to create an SSL cert like the duckdns addon does

  • @NikiFail
    @NikiFail 4 месяца назад

    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?

  • @krayzieegg7294
    @krayzieegg7294 Год назад

    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

  • @Purpleglace
    @Purpleglace 10 месяцев назад +1

    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?

    • @mbharath003
      @mbharath003 8 месяцев назад

      i am getting the same thing. Did you manage to solve this ?

    • @MsNightBird
      @MsNightBird 7 месяцев назад

      getting the same (or just different wording) "This site can’t be reached".
      Have you been lucky in resolving the issue?

  • @balogh0dominik
    @balogh0dominik Год назад

    What is the reason I can't open my homeassitant through my domain on the same network with wifi, only on 4g?

  • @mbharath003
    @mbharath003 8 месяцев назад

    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"

  • @hanssmeets7424
    @hanssmeets7424 Год назад

    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

    • @HassAssistant
      @HassAssistant  Год назад

      Please check the video again. You need to add the GitHub repository in to Home Assistant.

  • @leecurcio6132
    @leecurcio6132 Год назад

    My automation won't work remotely. Why? Is there something different that needs to be done for the automation in remote?

    • @HassAssistant
      @HassAssistant  Год назад

      guess it depends on what the automation is doing, but in general all automation processes run locally.

  • @coastersteve
    @coastersteve 11 месяцев назад

    Do you have to install and configure NGIX SSL proxy?

  • @tedev
    @tedev Год назад

    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?

    • @HassAssistant
      @HassAssistant  Год назад

      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

  • @ice_ryda
    @ice_ryda 6 месяцев назад

    How can I do this with Home assistant core on ubuntu. I can't install addons via HACs

    • @HassAssistant
      @HassAssistant  6 месяцев назад

      You will need the Supervisor.
      What is your setup?

    • @ice_ryda
      @ice_ryda 6 месяцев назад

      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

    • @ice_ryda
      @ice_ryda 6 месяцев назад

      @@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.

  • @fjph8826
    @fjph8826 9 месяцев назад

    Will this also work with a duckdns domain?

  • @johnreese7986
    @johnreese7986 Год назад

    Did you configure port forwarding on your router for this to work? if not how does it work without it?

    • @HassAssistant
      @HassAssistant  Год назад +1

      Yes. External 8123 port forwarded to internal 8123

  • @CXSORIOUS
    @CXSORIOUS 10 дней назад

    Thank You

  • @SniperxNL
    @SniperxNL Год назад

    After 2 days mine connection stop working. Logs are okay. Maby any idear why

    • @HassAssistant
      @HassAssistant  Год назад

      Worst case scenario, just uninstall the cloudflare addon and try again, worth changing the tunnel name too.

  • @dablet
    @dablet 10 месяцев назад

    any idea on how to get https?
    i see yours is not secured at all

    • @HassAssistant
      @HassAssistant  10 месяцев назад

      This is how. Https doesn't show straight away for whatever reason.

  • @DouglasGarda
    @DouglasGarda Год назад

    Deu certo, obrigado :D

  • @JKTechSi
    @JKTechSi Год назад

    Domain is so cheap only for 1st year. then it will be normal price ;)

    • @ukcIip
      @ukcIip 6 месяцев назад

      but at £10 a year can you really complain?

  • @Dr.AshishVerma
    @Dr.AshishVerma Год назад

    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?

    • @HassAssistant
      @HassAssistant  Год назад

      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

    • @Dr.AshishVerma
      @Dr.AshishVerma Год назад +1

      @@HassAssistant thanks for the quick reply, much appreciated

    • @mbharath003
      @mbharath003 8 месяцев назад

      did you manage to get this working? worked after 24 hrs? @@Dr.AshishVerma

  • @stenekholm
    @stenekholm Год назад

    I dont have the "studio code server" option in my menu?

    • @HassAssistant
      @HassAssistant  Год назад +1

      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

    • @stenekholm
      @stenekholm Год назад +1

      Thank you very much for your great RUclips !, it now works flawlessly!!

  • @mameroo2000
    @mameroo2000 Год назад

    For some reason, it failed to install cloudflared add on. Is there any other repository link for cloudflared

    • @HassAssistant
      @HassAssistant  Год назад

      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

    • @mameroo2000
      @mameroo2000 Год назад

      @HassAssistant I'm new to HA and this is my first add on.

  • @tolgamumcu34
    @tolgamumcu34 Год назад

    what is this ip address 172.30.33.0
    and did you do modem forwarding?
    Thanks.

    • @HassAssistant
      @HassAssistant  Год назад

      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.

    • @ludikludik6623
      @ludikludik6623 9 месяцев назад

      @@HassAssistant what If I am not using docker? Has something need to be added in Configuration at all?

  • @azdenhelius4918
    @azdenhelius4918 3 месяца назад

    the edge certidicate is active , but it redirects me into IONOS , the domain provider

    • @HassAssistant
      @HassAssistant  3 месяца назад

      Might just take time for changes to take effect. Check it out again tomorrow