Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Help about MediaWiki
FUTO
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Introduction to a Self Managed Life: a 13 hour & 28 minute presentation by FUTO software
(section)
Main Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Step 5: Get Instant Camera Alerts On Your Phone == Now you have a camera you can see when you log into it, but don’t you want to get an alert if some weirdo is walking through your backyard? Home Assistant and Frigate can talk to each other to make this happen. Home Assistant needs two things: * To receive communication from Frigate * A client and a broker that understand that communication. We are going to go over how to set all of this up – and use a handy extension that allows us to avoid miserable YAML files for setting this all up, that is simple, point, and click. <span id="switch-gears-go-back-to-home-assistant"></span> ==== 5.1 Switch gears & go back to Home Assistant ==== # Open web browser # Go to http://192.168.1.7:8123 or http://homeassistant.home.arpa:8123 <gallery mode="packed-hover" heights=250 widths=400 perrow=2> File:lu55028jxdtp_tmp_73352a27.png File:lu55028jxdtp_tmp_fc4eb41f.png File:lu55028jxdtp_tmp_12b8030b.png File:lu55028jxdtp_tmp_deda9e79.png File:lu55028jxdtp_tmp_598cb682.png File:lu55028jxdtp_tmp_68982d5e.png File:lu55028jxdtp_tmp_d991780a.png File:lu55028jxdtp_tmp_b201bbe8.png File:lu55028jxdtp_tmp_272b62c8.png File:lu55028jxdtp_tmp_16db9dd9.png File:lu55028jxdtp_tmp_50c0fdd2.png File:lu55028jxdtp_tmp_f69d8e0e.png File:lu55028jxdtp_tmp_88fe4866.png File:lu55028jxdtp_tmp_ee1dcb43.png File:lu55028jxdtp_tmp_904be7b9.png File:lu55028jxdtp_tmp_21da8192.png File:lu55028jxdtp_tmp_55120826.png File:lu55028jxdtp_tmp_7c2ff154.png File:lu55028jxdtp_tmp_b0c46153.png File:lu55028jxdtp_tmp_44a26f8c.png File:lu55028jxdtp_tmp_e003f8b9.png File:lu55028jxdtp_tmp_78a73239.png File:lu55028jxdtp_tmp_aff05f0f.png File:lu55028jxdtp_tmp_cf418dfc.png File:lu55028jxdtp_tmp_584df2f7.png File:lu55028jxdtp_tmp_e3b61efd.png File:lu55028jxdtp_tmp_8749f406.png File:lu55028jxdtp_tmp_99985c72.png </gallery> <span id="download-and-install-hacs"></span> ==== 5.2 Download and Install HACS ==== # '''Download HACS (Home Assistant Community Store):''' #* Go to [https://www.hacs.xyz/docs/use/download/download/ HACS → Download] on their website. #* Click onto the '''OS/supervised''' version, as that’s the version of Home Assistant we have installed. # '''Open the HACS Add-on Repository:''' #* Click the link provided to add the HACS repository to your Home Assistant instance. It’ll ask you to '''Add missing'''. # '''Enter Home Assistant URL:''' #* It will ask for your Home Assistant link. #* By default, Home Assistant may attempt to use <code>homeassistant.local:8123</code>, which will fail. #* If you are following this guide’s setup, use one of the following URLs: #** Local Domain: <code>http://homeassistant.home.arpa:8123</code> #** Direct IP: <code>http://192.168.5.4:8123</code> #* Replace these with your actual Home Assistant domain or IP address if different. # '''Install HACS:''' #* Follow the prompts to install HACS in Home Assistant. #* ''BE PATIENT!'' Click on the LOGS tab and wait for it to be '''''DONE!!!''''' before you try to start adding things, or nothing will work. # '''Restart Home Assistant:''' #* After installation, restart your Home Assistant instance for the changes to take effect. #* Go to settings → system → power button icon in the upper right-hand corner, click the power button, and click “restart home assistant.” '''''DO NOT DO THIS UNTIL THE LOGS TAB FOR HACS SAYS EVERYTHING IS DONE''''' # '''Clear your browser cache, cookies, etc.''' # '''Log back into Home Assistant.''' # '''Go to Settings → Devices & Services → Add Integration & Search for HACS''' #* If it doesn’t show up, do not pass go, do not collect $200 – re-follow the instructions [https://www.hacs.xyz/docs/use/download/download/ here] and [https://www.hacs.xyz/docs/use/configuration/basic/#setting-up-the-hacs-integration here]. Clear your browser cache/cookies, choose the option to reboot Home Assistant rather than restart Home Assistant when you go to settings → system → power button icon in the upper right-hand corner, clear cache/cookies in the browser, go to settings → addons → get HACS → CLICK START. # '''Go to logs''' <ul> <li><p>''Wait! Don’t be impatient!'' Wait for it to be done. You will see the following at the end of the log when it is done:</p> <pre>INFO: Installation complete. INFO: Remember to restart Home Assistant before you configure it. s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped</pre></li></ul> <ol start="10" style="list-style-type: decimal;"> <li><p>'''Add Integration Properly:'''</p> <ul> <li><p>Go to '''Settings –> Devices → Devices & Integrations → Add Integration''' & search for HACS.</p></li> <li><p>Check the boxes.</p></li> <li><p>Click submit.</p></li> <li><p>It will ask you to open a link to log into GitHub, and insert a code. Click it.</p></li> <li><p>Go to GitHub. If you lack an account, make one. If you have a GitHub account, log in.</p></li> <li><p>Enter code.</p></li> <li><p>Authorize HACS.</p></li> <li><p>Add HACS to an “area.”</p></li> <li><p>Click finish.</p></li> <li><p>Next step!</p></li></ul> </li></ol> <gallery mode="packed-hover" heights=250 widths=400 perrow=2> File:lu55028jxdtp_tmp_4a627a28.png File:lu55028jxdtp_tmp_6e463f1.png File:lu55028jxdtp_tmp_25f1321.png File:lu55028jxdtp_tmp_bd48c948.png File:lu55028jxdtp_tmp_7d0028c9.png File:lu55028jxdtp_tmp_136e049.png File:lu55028jxdtp_tmp_ce8689b1.png File:lu55028jxdtp_tmp_c6badc81.png File:lu55028jxdtp_tmp_d4c54e09.png File:lu55028jxdtp_tmp_69f853e4.png File:lu55028jxdtp_tmp_c6c7c21e.png File:lu55028jxdtp_tmp_d892307f.png File:lu55028jxdtp_tmp_e2f2eaf6.png File:lu55028jxdtp_tmp_b15f4ff6.png File:lu55028jxdtp_tmp_f2ef1560.png File:lu55028jxdtp_tmp_408094f6.png </gallery> <span id="add-frigate-add-ons-to-home-assistant"></span> ==== 5.3 Add Frigate Add-ons to Home Assistant ==== # Visit [http://homeassistant.home.arpa:8123/hacs/repository/311536795 '''Frigate Home Assistant Add-ons page'''] # '''Log back into Home Assistant when it prompts you to.''' # '''Add Frigate Repository:''' #* Click the bright blue '''“Add-on repository to my Home Assistant”''' button. # '''Download and Install Frigate:''' #* You’ll see two buttons. One is a blue button that says “Open with Home Assistant Store,” and the other is for downloading the add-on. #* '''Important:''' The blue button in the middle refreshes the page without installing anything. #* To download and install Frigate, make sure to click the Download button at the bottom. # '''Access Home Assistant Again:''' #* You’ll be prompted again to enter your Home Assistant domain with <code>:8123</code>. #* Remember, the default URL <code>homeassistant.local:8123</code> won’t work. HomeAssistant assumes you’re using a standard router where the domain is <code>.local</code> - but with pfsense, it is <code>.home.arpa</code> Use one of the following: #** '''Local Domain:''' [http://homeassistant.home.arpa:8123/ http://homeassistant.home.arpa:8123] #** '''Direct IP:''' [http://192.168.5.4:8123/ http://192.168.5.4:8123] # Click '''“Download”''' in the lower left corner. # Continue with installing, wait for it to install — it should be quick. # Go to '''Home Assistant Settings''' in the lower left corner. # It will say '''“1 repair, restart required”''' with the little Frigate logo at the top, or just '''restart required''' at the top. # Click this, follow prompts, and restart Home Assistant. <span id="add-frigate-integration"></span> ==== 5.4 Add Frigate Integration ==== <ol style="list-style-type: decimal;"> <li><p>'''Add Frigate integration to Home Assistant'''</p> <ol style="list-style-type: lower-alpha;"> <li><p>Go to '''Settings''' in the Home Assistant menu.</p></li> <li><p>Navigate to '''Devices & Integrations'''.</p></li> <li><p>Click Add Integration, and search for Frigate in the list. Follow the prompts to add it.</p></li></ol> </li> <li><p>'''Enter Frigate URL:'''</p> <ol style="list-style-type: lower-alpha;"> <li>The URL will be the IP address you chose for the server you installed Frigate on, or its hostname: in my case <code>http://192.168.5.2:5000</code>, OR [http://happycloud.home.arpa:5000/ http://happycloud.home.arpa:5000] with the examples I have provided.</li></ol> </li> <li><p>Once Frigate is integrated, you’ll be asked to assign cameras to specific areas within Home Assistant. Select the appropriate areas for your cameras.</p></li></ol> <gallery mode="packed-hover" heights=250 widths=400 perrow=2> File:lu55028jxdtp_tmp_11421791.png File:lu55028jxdtp_tmp_b46921b6.png File:lu55028jxdtp_tmp_20eefd9e.png File:lu55028jxdtp_tmp_240785dd.png File:lu55028jxdtp_tmp_21cd7be8.png File:lu55028jxdtp_tmp_63ccf803.png File:lu55028jxdtp_tmp_6c42c4c.png File:lu55028jxdtp_tmp_a1ab324e.png File:lu55028jxdtp_tmp_37888578.png File:lu55028jxdtp_tmp_4d8907f9.png File:lu55028jxdtp_tmp_61ecad83.png File:lu55028jxdtp_tmp_20c1c405.png </gallery> <span id="configure-mosquito-broker-mqtt-in-that-order"></span> ==== 5.5: Configure Mosquito Broker & MQTT (in that order) ==== # '''Check if MQTT Broker (Mosquitto) is Installed:''' Go to '''Settings > Add-ons''' and find the blue '''add-on Store button''' at the bottom right. # '''Look for Mosquitto Broker.''' # '''Click Install.''' # Once installed, start the add-on and make sure Start on Boot is enabled, and hit start. # '''Configure MQTT Broker in Home Assistant:''' #* Go to '''Settings > Devices & Services > Add Integration'''. #* Search for '''MQTT''' and select it. Go into MQTT by clicking it and add it. # '''Autoconfigure Prompt:''' #* It should prompt you to autoconfigure it with the mosquito broker you just installed. #* Remember the order – install mosquito broker from addons FIRST, THEN install MQTT from '''Settings > Devices & Services > Add Integration''', or MQTT may not auto-configure itself the same way. #** Broker: <code>core-mosquitto</code> (since Mosquitto is running on Home Assistant OS). This will auto configure by default. #** Don’t worry if the MQTT thing has no working configure buttons, those are as optional as the JTAG connector on a MacBook motherboard. #** Port: 1883 (default MQTT port). This will auto configure by default. #** Username and Password: Mosquitto broker allows Home Assistant users to log in so you don’t have to worry about this. When we enter this information into Frigate, we will be using the username & password we use to log into home assistant. <gallery mode="packed-hover" heights=250 widths=400 perrow=2> File:lu55028jxdtp_tmp_ca1b97c5.png File:lu55028jxdtp_tmp_b6564f8b.png File:lu55028jxdtp_tmp_c414c9.png File:lu55028jxdtp_tmp_21dbe66b.png File:lu55028jxdtp_tmp_1008176c.png File:lu55028jxdtp_tmp_a1f44605.png </gallery> <span id="set-up-frigate-mobile-app-notifications"></span> ==== 5.6 Set Up Frigate Mobile App Notifications ==== * '''Download Notification Blueprint:''' ** Go to the [https://community.home-assistant.io/t/frigate-mobile-app-notifications-2-0/559732 Frigate Mobile App Notifications] 2.0 page. ** Follow the instructions on this page to download the notification blueprint into your Home Assistant. * '''You need this unless you want to be in hell writing YAML files yourself. You don’t want to do that, right? I thought so.''' <gallery mode="packed-hover" heights=250 widths=400 perrow=2> File:lu55028jxdtp_tmp_cf0e970f.png File:lu55028jxdtp_tmp_b21d7dac.png File:lu55028jxdtp_tmp_34426308.png File:lu55028jxdtp_tmp_3ddaeebf.png File:lu55028jxdtp_tmp_240dc338.png File:lu55028jxdtp_tmp_bed46eef.png File:lu55028jxdtp_tmp_ab6084f9.png File:lu55028jxdtp_tmp_837df932.png File:lu55028jxdtp_tmp_6e9bae11.png File:lu55028jxdtp_tmp_d45994a6.png File:lu55028jxdtp_tmp_a8dc04b5.png File:lu55028jxdtp_tmp_bd7663b7.png File:lu55028jxdtp_tmp_e21b65cd.png File:lu55028jxdtp_tmp_cf25be7a.png File:lu55028jxdtp_tmp_7ad3f32e.png </gallery> <span id="configure-automations-for-camera-and-notifications"></span> ==== 5.7 Configure Automations for Camera and Notifications ==== <ol style="list-style-type: decimal;"> <li><p>'''Access Automation Editor:'''</p> <ul> <li>Go to your automation editor at: <code>http://192.168.5.4:8123/config/automation/dashboard</code></li></ul> </li> <li><p>'''Use Frigate Notifications Blueprint:'''</p> <ul> <li>Click '''“Blueprints”''' at the top right.</li> <li>Click '''“Frigate Notifications”''' which is what you want.</li></ul> </li> <li><p>'''Configure Automation:'''</p> <ul> <li><p>Here you scroll down to choose your camera, and your mobile device, the name of the automation, etc.</p></li> <li><p>Most important thing to get right is the name of the camera & the mobile device, everything else you can customize and it’s not for me to tell you how to.</p> <blockquote><p>'''NOTE:''' If your mobile device does not show up, log into Home Assistant on your phone and add it as a device to Home Assistant. It will prompt you to do this by default when you first set up the app. Then go back here and redo this step (you will have to close out of the window you just opened after clicking '''Blueprints → Frigate Notifications''' & reclick it so the dialog box for your phone will show your phone)</p></blockquote></li></ul> </li> <li><p>'''Make sure MQTT is set up in the <code>frigate config.yml</code> file:'''</p> <ul> <li>Make sure in Frigate’s '''Config''' menu, in the <code>config.yml</code> file, MQTT is set up as follows, with the username & password matching your homeassistant login, and your host matching the IP address of the home assistant server:</li></ul> </li></ol> <pre>mqtt: host: homeassistant.home.arpa port: 1883 user: louis password: passwordman</pre> <ol start="6" style="list-style-type: decimal;"> <li>'''Enjoy Your New Frigate Integration with Home Assistant!'''</li></ol> <span id="step-6-making-frigate-secure"></span>
Summary:
Please note that all contributions to FUTO may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
FUTO:Copyrights
for details).
Do not submit copyrighted work without permission!
To protect the wiki against automated edit spam, we kindly ask you to solve the following hCaptcha:
Cancel
Editing help
(opens in new window)