Ditch Your Ring Subscription with Frigate and Scrypted
Summary
TLDRCe script vidéo explique comment améliorer un système de sécurité Ring existant en utilisant des outils tels que Scripted, Home Assistant, MQTT et FriGate. L'objectif est d'envoyer des enregistrements vidéo sur son téléphone, de détecter les mouvements grâce à l'intelligence artificielle et de déclencher des notifications uniquement en cas de détection de personnes. Le script couvre également les étapes de configuration, les problèmes potentiels et les solutions.
Takeaways
- 🔔 Le son de la sonnette peut être le signe d'un visiteur bienvenu ou d'un prédateur indésirable.
- 📱 L'auteur a réussi à envoyer des enregistrements vidéo de sa caméra de sécurité Ring vers son téléphone, bien que cela ne soit pas autorisé par Ring.
- 👥 Il a ajouté une détection d'objet avec FriGate, permettant à Ring de l'alerter uniquement en cas de détection de personnes.
- 🚫 Une vidéo précédente a montré que la technologie intelligente a échoué à alerter l'auteur lors d'une tentative d'intrusion.
- 💡 Pour contourner cette faille, l'auteur a utilisé l'addon Ring MQTT et FriGate pour améliorer son système.
- 🛠️ Pendant la création de la démonstration, le système a cessé de fonctionner en raison d'un problème technique.
- 📹 Scripted et FriGate ont été utilisés pour créer des automations vidéo avec des caméras Ring.
- 🤖 Google Coral Tensor Processing Unit a été utilisé pour traiter le flux vidéo et détecter les personnes.
- 📱 L'auteur explique comment envoyer des notifications avec des enregistrements vidéo directement sur son téléphone via Telegram ou l'application Home Assistant.
- ⚙️ Des automations avancées peuvent être créées en utilisant FriGate et le Coral TPU pour détecter les personnes et déclencher des actions spécifiques.
- ⚠️ Il est important de noter que la fonctionnalité de FriGate peut drainer rapidement la batterie des caméras si elles sont alimentées par des batteries ou du solaire.
Q & A
Quel est le son le plus frappant de l'attention dans le script?
-Le son le plus frappant de l'attention mentionné dans le script est celui d'un visiteur bienvenu ou d'un prédateur indésirable.
Quel est le but de l'utilisateur d'utiliser son caméra de sécurité Ring avec des fonctionnalités supplémentaires?
-L'utilisateur souhaite envoyer des enregistrements vidéo à son téléphone mobile, ajouter une détection d'objet avec Frigate pour que la caméra de sécurité ne le prévienne que si elle détecte spécifiquement des personnes.
Pourquoi l'utilisateur a-t-il créé cette vidéo?
-Il a créé cette vidéo en réponse à un échec précédent où sa technologie intelligente a échoué à l'alerter lors d'une tentative d'effraction dans son domicile.
Quel est le rôle de l'addon Ring MQTT et de Frigate dans la solution décrite?
-L'addon Ring MQTT et Frigate sont utilisés pour améliorer la fonctionnalité de la caméra Ring, en permettant de détecter des objets spécifiques et d'envoyer des alertes uniquement en cas de détection de personnes.
Quels sont les problèmes techniques que l'utilisateur a rencontrés lors de la mise en place de sa solution?
-L'utilisateur a eu des problèmes pour faire fonctionner la diffusion de la caméra Ring vers son assistant domestique, et a également eu un problème de mémoire qui a causé la crash de son assistant domestique.
Quel est le rôle de Scripted dans la solution?
-Scripted est utilisé pour créer des automations vidéo avec des flux RTSP retransmis par Home Assistant, permettant ainsi d'enregistrer et d'envoyer des vidéos à des services externes comme Telegram.
Comment l'utilisateur a-t-il résolu le problème de mémoire sur son assistant domestique?
-En suivant les instructions d'installation sur le site de Scripted, il a créé un conteneur Docker pour Scripted et a également isolé Node-RED dans son propre conteneur Docker.
Quels sont les composants clés requis pour la configuration de l'automation avec Scripted?
-Les composants clés requis incluent HomeKit, WebRTC, et le plugin Ring pour Scripted, ainsi que l'intégration de la caméra générique dans Home Assistant.
Quel est l'avantage de l'utilisation de Google Coral TPU avec Frigate?
-L'utilisation de Google Coral TPU avec Frigate permet de traiter le flux vidéo avec unité de traitement d'apprentissage profond, ce qui est mille fois plus efficace qu'un CPU classique.
Comment l'utilisateur peut-il recevoir des notifications sur son téléphone sans utiliser Telegram?
-En utilisant l'intégration de notification de Home Assistant et en configurant l'action pour envoyer une notification directement à son téléphone via l'application Home Assistant.
Outlines
🔔 Amélioration de la sécurité avec des caméras Ring et MQTT
Le paragraphe décrit l'importance de l'alerte sonore pour attirer l'attention, en particulier dans le contexte de la sécurité domestique. L'auteur relate son expérience avec une caméra de sécurité Ring et explique comment il a amélioré son système en utilisant l'addon MQTT et Frigate pour détecter spécifiquement les personnes, au lieu des mouvements généraux. Il mentionne également un incident où son système de technologie intelligent a échoué à le prévenir lors d'une tentative d'intrusion, ce qui a motivé la création de cette vidéo. Il explique les étapes pour configurer Scripted avec le plugin Ring et comment il a résolu des problèmes techniques pour atteindre son objectif.
🤖 Intégration de l'intelligence artificielle avec Home Assistant et Telegram
Dans ce paragraphe, l'auteur explique comment il a configuré Home Assistant pour envoyer des vidéos à son téléphone en utilisant la caméra Ring, grâce à l'intégration de l'IA avec Telegram. Il détaille le processus d'installation de l'addon Telegram et montre comment créer une automation simple pour enregistrer un court extrait vidéo et l'envoyer via Telegram. Il suggère également d'ajouter des conditions et des déclencheurs pour personnaliser davantage l'automation. L'auteur mentionne également un cours sur la création d'un chatbot AI et souligne les défis techniques qu'il a rencontrés lors de l'installation de Frigate et de Google's Coral TPU pour améliorer la détection d'objets.
📹 Automatisation avancée avec Scripted et Frigate
L'auteur explique comment il a utilisé Scripted et Frigate pour créer des automations avancées avec ses caméras Ring. Il montre comment configurer des automations pour enregistrer une vidéo lorsque Frigate détecte des personnes, et comment envoyer cette vidéo à son téléphone via Telegram ou en tant que notification sur l'appareil. Il aborde également les considérations techniques, comme l'utilisation du générique de la caméra intégration pour enregistrer les flux, et les limitations techniques rencontrées, telles que la consommation de batterie des caméras Ring en raison de la détection continue des personnes.
🔋 Considérations sur l'utilisation de Frigate avec des caméras Ring
Dans le dernier paragraphe, l'auteur mentionne les inconvénients potentiels de l'utilisation de Frigate avec des caméras Ring alimentées par des batteries ou solaire, en raison de la consommation élevée de la batterie. Il suggère que l'activation et la désactivation de Frigate à la volée pourrait être une solution pour éviter de drainer la batterie de la caméra. Il conclut en soulignant les avantages de l'utilisation de Scripted et Frigate pour améliorer la sécurité et l'automatisation de la maison.
Mindmap
Keywords
💡ring
💡mqtt
💡frigate
💡home assistant
💡object detection
💡docker
💡rtsp
💡automation
💡telegram
💡coral tpu
Highlights
The sound of a ring can indicate a friend, anxiety, a dub, an L, a welcome visitor, or an unwanted predator.
A device that can grab your attention with a universal sound of attention is important.
The user can send video recordings to their phone using their Ring security camera despite Ring's limitations.
Object detection with frigate was added to Ring to alert only if it detects specifically people.
The user's smart tech failed to alert them during a break-in attempt, leading to the creation of this video.
The user found a way to make the most out of their Ring system by using the Ring MQTT add-on and frigate.
The user experienced a technological setback when their Home Assistant crashed due to Node-RED consuming too much memory.
The user split Node-RED into its own Docker container and set up Scripted in a similar manner.
Scripted was set up with zero problems following the installation instructions on its website.
The user used the HomeKit web RTC and rebroadcast link to integrate their Ring camera with Home Assistant.
The user created a generic camera integration in Home Assistant for the doorbell.
An automation was created using the camera feed to send a video recording to Telegram.
The user discusses the possibility of creating more elaborate automations with conditions and triggers.
The user installed frigate using Google's Coral tensor processing unit for better performance.
The user encountered issues with Home Assistant recognizing the Coral TPU, leading to the installation of frigate as a Docker container.
The user's configuration file for frigate includes MQTT information, device settings, and record options.
The user demonstrates how to create automations that trigger only when people are detected by frigate.
The user shows how to send the recording to a phone without using Telegram.
The user warns that keeping the stream open on a battery-powered device can rapidly drain the battery.
Transcripts
[Music]
ring it's the sound of a friend or the
sound of anxiety it's the sound of
taking a
dub or the sound of taking an
L but perhaps the most striking of all
is that it can be the sound of a welcome
visitor or the sound of an unwanted
Predator this Universal sound of
attention needs to grab yours so it's
important to have a device that can do
just that grab your
attention I'm able to send video
recordings to my phone using my ring
security camera even though ring doesn't
really allow it but I went a step
further and added object detection with
frigate and gave ring the power to alert
me only if it detects specifically
people something my off-the-shelf ring
system just can't
do
now one of my previous videos I talked
about how a stranger tried to break into
my home and the biggest fail was that my
smarttech failed to alert me disgraceful
go hang the shame
curtains I know I'll post the video in
the end credits if you'd like to see it
but it's because of that failure why
I've created this video in the comments
many of you express disgust for ring
which I honestly don't find surprising
since replacing my ring would put me at
an economical disadvantage I found a way
to make the most out of it by using ring
mqtt add-on and fret I can get Fe okay
so while I was trying to put together
this uh walk through uh everything
stopped working it just broke I wasn't
able to get ring to stream to my home
assistant anymore don't know what
happened don't know why it stopped all I
know is that the batter's died I
recharged it put it back in and it just
would not work everything that I had
planned is kind of moot now so after
about 3 days of like sitting on The
Struggle Bus uh here's my new favorite
way to create video automations using
ring scripted and frig let's start with
scripted I have a sonology Nas in it I
have a virtual machine that runs home
assistant OS but last week in the midst
of my technological hunger game a home
assistant crashed because node red was
just doing the most really uh as you can
see I ran out of memory on my machine as
some of you might have seen in my shorts
I split out node red into its own Docker
container and I'll be doing the same
with scripted here I have a Docker
container running scripted I followed
the phenomenal installation instructions
on scripted websites I had a total of
zero problem setting this up in the ring
plug-in I logged in at which point I
could see all of my devices the two
important devices here are the front
door and backyard here in the settings
the ones I know for sure I need is
homekit web RTC and rebc so I'm not
going to talk about the homekit version
right now but but feel free to explore
this because it does work and I do have
the cameras here in my system via
homekit what we really want with
scripted is under streams and web RTC I
copied this rtsp rebroadcast link and
back in home assistant I used the
generic camera integration this was
required for the doorbell because the
automations don't count it as a real
live stream camera I don't think this is
required for the backyard camera since
it's a real camera but for demo purposes
I'm going to be creating a generic
camera with it with the rstp with the
rtsp link as well I did have to change
the url slightly to fit my needs and you
may need to do the same but it seems
like it's working okay now let's create
a quick automation using the camera okay
so for this automation you're going to
need the call service node um as well as
the um I think this is called a time
stamp or the inject node so with the
first call service node this is going to
be responsible for taking the cam or
getting the camera feed so you would
just go to the domain of camera service
record this is the camera entity that we
created previously that you saw and then
here this is the file name this is
basically where this stream is going to
be saved to and we can tell it how long
to save it so we're going to take 7
Seconds of that feed and save it as
snapshot. mpp4 at this location this
location can be found within your home
assistant environment but you're going
to find that within here I have mine's
under the config temp and then snapshot
as you can see here so from this call
service node you're going to have
another call service node and this one
is going to be responsible for sending
it to telegram now I'm using telegram
I'm going to show it with uh telegram
first and then I'm going to hopefully
have another one to show you how you can
do it without telegram but just using
telegram uh we have here again home
assistant we're using telegram bot for
this one real quick this telegram bot
that you see here in the domain will
won't exist for you guys if you haven't
installed the telegram bot integration
uh you can go on home assistant site and
just see the documentation for it this
is what's going to give you the ability
to send videos really easy to your
particular uh chat within your telegram
uh profile we're telling it that we're
going to send video This Is The Source
or the location where it's stored so we
this is what we already have saved and
then this is just if you have your chat
ID uh the chat ID that you have there
and then of course you can add captions
um and that's what's going to come along
with
it so the video will just show up for 7
seconds and it will appear with a
telegram you can make the automation
more elaborate by adding conditions and
triggers to dial in where and when the
videos should be stored and sent but I'm
going to leave that to you oh and by the
way if you're interested in building an
AI chatbot for yourself I have a AI
masterclass series playlist where I talk
and walk through the conceptualization
and impementation of how to do it
disclaimer though my guide is simply a
starting point because chat GPT is
pretty experimental at the time of
creating this so the apis may be
different so you may have to put in some
work to get it working since things can
change update the code accordingly if
you run into those problems if we add
frig to the system both home assistant
and our cameras will give up the ghost
so there are two things we're going to
need to do first we will be using
Google's Coral tensor processing unit to
process this stream and I'm told that
this is about a thousand times better
than our regular CPU that's powering
home assistant I expect great things
from you follow the instructions on
frig's website to install it into your
system I'm going to admit I had some
issues with this I successfully
installed this into home assistant as an
add-on but for some reason home
assistant wouldn't recognize the coral
TPU so I went with my long-term plan and
installed frig as a Docker container so
I'm going to Simply tell you the easy
stuff and hope that you don't run run
into the hard stuff all right cool let's
go on fr's website you can use the
docker compost file that they have there
and just adjust it to fit your
environment the three things that I
needed to change that you may have to
change are the devices the volumes and
the
ports you'll also need a config file
that references the cameras and the
settings that you need for them so
here's mine for example this is the mqtt
information section nothing really
special just put in your login
information for it go to RTC allows me
to transform the streams to use the FFM
peg this will publish a stream to a new
source which we can then see in the
camera section under cameras I have the
front yard which uses the rtsp stream
path that was reemitted by frig you can
read that in frig stocks these settings
in the record option will save the last
two days of footage that had a true
positive object that was not considered
stationary bottom line is for the for
the last 2 days it's going to show me
all of the moving people now this is the
important bit the detectors we have a
single USB coal device so this is what
the documentation told me to put in now
ring activates the stream on demand and
frig will demand it stays on so if your
camera is powered by a battery or solar
power it's going to die within hours
though there's not much you can do about
that something you can do is subscribe
and like this video damn that was smooth
yeah I know by subscribing and liking
not only can YouTube alert you when I
drop new content but it helps other
enthusiasts like yourself find it too
okay so let's get into the automation
something that ring sucks at is that it
doesn't let me know if a person is at
the door it just alerts me for anything
that moves it doesn't support object
recognition out of the box or at all I
think so it just triggers for everything
using frig we can now trigger
automations only when people are
detected here's a high Lev idea of what
you need to do to get fret installed
into home assistant go to fet's website
look at their docs under the section of
Integrations and home assistant
integration you're going to find this
stock just follow it pretty simple
you're going to need hacks in order to
add the integration once you have it
installed you're going to be able to
access it or add it via the Integrations
when you're in device and settings and
click on the add integration button to
search for frig once you have it you're
going to be able to just add in the URL
of where it can find your frig server if
you have it locally within home
assistant then it would be one of these
default values if you don't like in my
instance I have it set as a separate
Docker container I simply just need to
add that URL to that Docker container
here as a result you're going to have
frig installed locally right now it's
pointing to my current local server for
frig and it sees all of the devices it
sees the front yard it sees the cam
because of this you now have access to
all the sensors and entities needed to
run different automations so we can see
when motion is detected we can see the
number of objects that it detects
whether or not it's cleared or not it's
fantastic remember the first automation
that we did in node red we're going to
redo that one but this time we're going
to enhance it with frig and this time
we're also going to do it in yaml so you
can see what that other side is I'm
still going to show you how to do it in
no red though call out is that these
automations will not work unless you're
using the generic camera integration to
create the camera entities that we're
going to use to record the streams I'm
using this new one here it's just a
camera that I've placed by my window in
the front um my ring camera currently is
dead the battery's died in all of this
testing so I have this other camera here
that I'm setting up so um with that
being said process is still the same
whether you're using a ring camera or
some other camera as long as it has an
rtsp stream uh you can set this generic
camera up and as you can see here I can
see the front of the yard with it here's
what the automation looks like for the
trigger right now we're using a state
trigger whenever the state changes or in
our case for the generic camera whenever
that value changes above zero for the
person count we got this person count
from the frigate entity that I showed
you earlier when that when frigate
detects that there is at least one
person available then this is going to
fire off and you can see the same thing
here it's a little easier to read here
in my opinion for that Omni cam count
whenever we see that the state is above
zero then this is gonna fire off this is
the same as the first automation that I
showed essentially for the action
whenever we detect that there's a person
or whenever it's triggered we're going
to just record and we're going to save
that recording locally to home assistant
you can see that here where we're going
to use the camera service record we're
basically calling the generic Omni cam
same thing here we're saving saving it
to that snapshot or to that particular
saving the snapshot to this particular
location for the duration of 7 seconds
and you can see that the same is here
where we're saving the snapshot to the
same location duration 7 Seconds lastly
if you have the telegram integration or
the telegram bot integration you're
going to have this ability for the
service uh but within this service we're
basically telling the telegram bot
integration that we want to send a video
we're giving it the location of the
video that we have saved locally we're
giving it the chat ID that we want to
send it to as well as a caption and you
can see the same exists here where we're
calling the integration we're giving it
the local file location we gave it a
caption as well as we're telling it the
target which is the chat ID in the end
you're going to have something that
looks like
this with this automation I can now
enable ring to alert me at night as
there's a higher probability that if if
it goes off it will be for a legitimate
reason now if you want to send the
recording to your phone without telegram
here's how you can do it the trigger
stays exactly the same when the camera
detects that there is a person it's
going to trigger off that stays the same
for both the part that we care about is
the action all we have is just one
action and it is the notify action now I
will have to call out that you'll
probably need the Home assistant app for
your phone you're going to need it in
order for home assistant to send you
notifications using the notification
service select the phone that represents
your device and in the data section
you're going to need to give it a
message and you're also for the data
part going to have to give it an entity
ID as the key and then the actual entity
ID of the generic camera that we created
earlier when we were saving the videos
the same thing can be seen here on this
side where we have the message there's
someone in the front yard for the
message and for the data section we're
going to have here the entity ID and the
entity name for the generic camera I'm
going to just run it manually
here and on my phone I receiv received a
notification and there it is live stream
of my front yard so let's recap this
really quick you can stream video from
your ring camera using scripted you can
send the stream data to your generic
camera entity and that gets streams to
your dashboard or you can save it to a
hard drive or send it to your AI chat if
you have it it's up to you how you want
to use it as a bonus through scripted
you can also install the cameras via hom
kit which can give you access to motion
sensor data and help you to better
tailor your automations we can dial in
everything further using frig bundled
with the coral TPU and process the
stream from scripted to run machine
learning to detect if a person is
detected as opposed to the generic
motion of animals cars and shadows that
ring gives you out of the box now though
you are able to create automations based
on the number of people detected this
keeps the stream open on your device so
it rapidly drains your battery and it's
not advised by ring or other
manufacturers really so um keep that in
mind I wonder is there a way to enable
and disable frig on the
Fly
Weitere ähnliche Videos ansehen
Home Assistant & Scrypted: HomeKit Secure Video for any PoE Camera
Algorithme et Programmation - Technologie - Mathrix
Faire du levier de son wallet On CHAIN
PREMIERE ENSEIGNEMENT SCIENTIFIQUE THEME 1 CHAPITRE 1 Activité 1 PYTHON
How to get 1ETH Per Day Using ChatGPT AI | Updated 2024 Tutorial in My Video | Step-by-Step Guide
Scraper facilement 1001 pages et surpasser la concurrence - Découvrez comment !
5.0 / 5 (0 votes)