Ditch Your Ring Subscription with Frigate and Scrypted

Technithusiast
10 Nov 202315:29

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

00:00

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

05:02

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

10:03

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

15:04

🔋 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

Ring fait référence à un système de sécurité domestique qui inclut des caméras et des sonneries intelligentes. Dans la vidéo, l'auteur parle de son expérience avec la caméra Ring de sécurité et comment il l'a améliorée avec des fonctionnalités personnalisées. Par exemple, il mentionne qu'il peut envoyer des enregistrements vidéo à son téléphone portable en utilisant sa caméra Ring, ce qui illustre la façon dont Ring est central à la sécurité domestique et à la connectivité.

💡mqtt

MQTT (Message Queuing Telemetry Transport) est un protocole de messagerie léger utilisé pour les communications en temps réel. Dans le script, l'auteur mentionne l'utilisation de l'addon Ring MQTT pour améliorer la fonctionnalité de sa caméra Ring, ce qui montre comment MQTT peut être utilisé pour connecter et contrôler des dispositifs IoT (Internet des objets) comme les caméras de sécurité.

💡frigate

Frigate est un logiciel open source utilisé pour la détection d'objets dans les flux vidéo. L'auteur décrit comment il a ajouté la détection d'objets avec Frigate à sa caméra Ring pour être averti uniquement en cas de détection de personnes spécifiques, ce qui est une amélioration par rapport aux fonctionnalités de détection d'objets de base de Ring. Cela met en évidence comment Frigate peut être utilisé pour améliorer la précision des systèmes de surveillance.

💡home assistant

Home Assistant est un système de maison intelligente open source qui permet de contrôler et d'automatiser les appareils connectés à domicile. Dans le script, l'auteur utilise Home Assistant pour créer des automations avec sa caméra Ring et pour gérer les flux vidéo, ce qui montre comment Home Assistant peut servir de plateforme centrale pour la domotique.

💡object detection

La détection d'objets est une technique de vision par ordinateur qui permet de reconnaître et de classer les objets dans les images ou les vidéos. L'auteur explique comment il a ajouté cette fonctionnalité avec Frigate à sa caméra Ring pour être averti uniquement lorsqu'une personne est détectée, ce qui est une application pratique de la détection d'objets dans la sécurité domestique.

💡docker

Docker est une plateforme open source qui permet de développer, de distribuer et d'exécuter des applications dans des conteneurs. L'auteur mentionne qu'il a installé Scripted et Frigate en tant que conteneurs Docker, ce qui montre comment Docker peut être utilisé pour gérer des applications de domotique et améliorer la sécurité et la facilité de gestion.

💡rtsp

RTSP (Real Time Streaming Protocol) est un protocole réseau utilisé pour le contrôle de flux multimédias en temps réel. Dans le script, l'auteur parle de l'utilisation du lien RTSP pour retransmettre les flux vidéo de sa caméra Ring, ce qui illustre comment RTSP est essentiel pour la gestion et la diffusion des flux vidéo de surveillance.

💡automation

L'automatisation fait référence au processus de configuration des systèmes pour qu'ils effectuent des tâches sans intervention humaine. L'auteur explique comment il a créé des automations avec Home Assistant pour enregistrer et envoyer des vidéos lorsqu'une personne est détectée par sa caméra Ring, ce qui montre comment l'automatisation peut améliorer la sécurité et la commodité à la maison.

💡telegram

Telegram est une application de messagerie instantanée populaire qui prend en charge les bots et les intégrations API. L'auteur décrit comment il a configuré un bot Telegram avec Home Assistant pour envoyer des vidéos enregistrées de sa caméra Ring, ce qui montre comment Telegram peut être utilisé pour la communication sécurisée et la notification dans les systèmes de surveillance.

💡coral tpu

Le Coral TPU (Tensor Processing Unit) est un accélérateur de matériel conçu pour le traitement de l'intelligence artificielle. L'auteur mentionne l'utilisation du Coral TPU avec Frigate pour améliorer la détection d'objets dans les flux vidéo, ce qui illustre comment l'apprentissage automatique et les technologies de l'IA peuvent être utilisées pour améliorer la précision des systèmes de surveillance.

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

play00:05

[Music]

play00:09

ring it's the sound of a friend or the

play00:12

sound of anxiety it's the sound of

play00:15

taking a

play00:16

dub or the sound of taking an

play00:19

L but perhaps the most striking of all

play00:22

is that it can be the sound of a welcome

play00:24

visitor or the sound of an unwanted

play00:28

Predator this Universal sound of

play00:30

attention needs to grab yours so it's

play00:33

important to have a device that can do

play00:35

just that grab your

play00:39

attention I'm able to send video

play00:41

recordings to my phone using my ring

play00:43

security camera even though ring doesn't

play00:45

really allow it but I went a step

play00:46

further and added object detection with

play00:48

frigate and gave ring the power to alert

play00:50

me only if it detects specifically

play00:53

people something my off-the-shelf ring

play00:55

system just can't

play00:58

do

play01:00

now one of my previous videos I talked

play01:02

about how a stranger tried to break into

play01:04

my home and the biggest fail was that my

play01:06

smarttech failed to alert me disgraceful

play01:09

go hang the shame

play01:10

curtains I know I'll post the video in

play01:13

the end credits if you'd like to see it

play01:15

but it's because of that failure why

play01:16

I've created this video in the comments

play01:18

many of you express disgust for ring

play01:20

which I honestly don't find surprising

play01:23

since replacing my ring would put me at

play01:25

an economical disadvantage I found a way

play01:28

to make the most out of it by using ring

play01:30

mqtt add-on and fret I can get Fe okay

play01:34

so while I was trying to put together

play01:36

this uh walk through uh everything

play01:39

stopped working it just broke I wasn't

play01:41

able to get ring to stream to my home

play01:45

assistant anymore don't know what

play01:46

happened don't know why it stopped all I

play01:48

know is that the batter's died I

play01:49

recharged it put it back in and it just

play01:52

would not work everything that I had

play01:54

planned is kind of moot now so after

play01:57

about 3 days of like sitting on The

play01:59

Struggle Bus uh here's my new favorite

play02:01

way to create video automations using

play02:03

ring scripted and frig let's start with

play02:06

scripted I have a sonology Nas in it I

play02:10

have a virtual machine that runs home

play02:11

assistant OS but last week in the midst

play02:14

of my technological hunger game a home

play02:16

assistant crashed because node red was

play02:18

just doing the most really uh as you can

play02:22

see I ran out of memory on my machine as

play02:26

some of you might have seen in my shorts

play02:27

I split out node red into its own Docker

play02:29

container and I'll be doing the same

play02:31

with scripted here I have a Docker

play02:33

container running scripted I followed

play02:35

the phenomenal installation instructions

play02:37

on scripted websites I had a total of

play02:40

zero problem setting this up in the ring

play02:43

plug-in I logged in at which point I

play02:45

could see all of my devices the two

play02:48

important devices here are the front

play02:49

door and backyard here in the settings

play02:52

the ones I know for sure I need is

play02:54

homekit web RTC and rebc so I'm not

play02:57

going to talk about the homekit version

play02:58

right now but but feel free to explore

play03:01

this because it does work and I do have

play03:03

the cameras here in my system via

play03:06

homekit what we really want with

play03:07

scripted is under streams and web RTC I

play03:11

copied this rtsp rebroadcast link and

play03:15

back in home assistant I used the

play03:17

generic camera integration this was

play03:19

required for the doorbell because the

play03:20

automations don't count it as a real

play03:23

live stream camera I don't think this is

play03:24

required for the backyard camera since

play03:26

it's a real camera but for demo purposes

play03:30

I'm going to be creating a generic

play03:32

camera with it with the rstp with the

play03:35

rtsp link as well I did have to change

play03:37

the url slightly to fit my needs and you

play03:39

may need to do the same but it seems

play03:41

like it's working okay now let's create

play03:44

a quick automation using the camera okay

play03:46

so for this automation you're going to

play03:47

need the call service node um as well as

play03:51

the um I think this is called a time

play03:53

stamp or the inject node so with the

play03:55

first call service node this is going to

play03:57

be responsible for taking the cam or

play04:00

getting the camera feed so you would

play04:02

just go to the domain of camera service

play04:04

record this is the camera entity that we

play04:06

created previously that you saw and then

play04:09

here this is the file name this is

play04:10

basically where this stream is going to

play04:12

be saved to and we can tell it how long

play04:14

to save it so we're going to take 7

play04:16

Seconds of that feed and save it as

play04:19

snapshot. mpp4 at this location this

play04:22

location can be found within your home

play04:25

assistant environment but you're going

play04:27

to find that within here I have mine's

play04:29

under the config temp and then snapshot

play04:33

as you can see here so from this call

play04:35

service node you're going to have

play04:36

another call service node and this one

play04:38

is going to be responsible for sending

play04:40

it to telegram now I'm using telegram

play04:42

I'm going to show it with uh telegram

play04:44

first and then I'm going to hopefully

play04:45

have another one to show you how you can

play04:47

do it without telegram but just using

play04:50

telegram uh we have here again home

play04:53

assistant we're using telegram bot for

play04:54

this one real quick this telegram bot

play04:57

that you see here in the domain will

play04:59

won't exist for you guys if you haven't

play05:01

installed the telegram bot integration

play05:04

uh you can go on home assistant site and

play05:06

just see the documentation for it this

play05:08

is what's going to give you the ability

play05:09

to send videos really easy to your

play05:12

particular uh chat within your telegram

play05:15

uh profile we're telling it that we're

play05:17

going to send video This Is The Source

play05:20

or the location where it's stored so we

play05:22

this is what we already have saved and

play05:24

then this is just if you have your chat

play05:26

ID uh the chat ID that you have there

play05:28

and then of course you can add captions

play05:30

um and that's what's going to come along

play05:32

with

play05:33

it so the video will just show up for 7

play05:35

seconds and it will appear with a

play05:39

telegram you can make the automation

play05:42

more elaborate by adding conditions and

play05:43

triggers to dial in where and when the

play05:46

videos should be stored and sent but I'm

play05:48

going to leave that to you oh and by the

play05:50

way if you're interested in building an

play05:51

AI chatbot for yourself I have a AI

play05:54

masterclass series playlist where I talk

play05:57

and walk through the conceptualization

play05:59

and impementation of how to do it

play06:01

disclaimer though my guide is simply a

play06:03

starting point because chat GPT is

play06:06

pretty experimental at the time of

play06:07

creating this so the apis may be

play06:10

different so you may have to put in some

play06:12

work to get it working since things can

play06:14

change update the code accordingly if

play06:15

you run into those problems if we add

play06:17

frig to the system both home assistant

play06:20

and our cameras will give up the ghost

play06:22

so there are two things we're going to

play06:24

need to do first we will be using

play06:26

Google's Coral tensor processing unit to

play06:28

process this stream and I'm told that

play06:30

this is about a thousand times better

play06:32

than our regular CPU that's powering

play06:34

home assistant I expect great things

play06:37

from you follow the instructions on

play06:38

frig's website to install it into your

play06:40

system I'm going to admit I had some

play06:43

issues with this I successfully

play06:44

installed this into home assistant as an

play06:46

add-on but for some reason home

play06:48

assistant wouldn't recognize the coral

play06:50

TPU so I went with my long-term plan and

play06:53

installed frig as a Docker container so

play06:56

I'm going to Simply tell you the easy

play06:58

stuff and hope that you don't run run

play06:59

into the hard stuff all right cool let's

play07:01

go on fr's website you can use the

play07:04

docker compost file that they have there

play07:06

and just adjust it to fit your

play07:08

environment the three things that I

play07:10

needed to change that you may have to

play07:11

change are the devices the volumes and

play07:15

the

play07:16

ports you'll also need a config file

play07:19

that references the cameras and the

play07:20

settings that you need for them so

play07:22

here's mine for example this is the mqtt

play07:25

information section nothing really

play07:27

special just put in your login

play07:28

information for it go to RTC allows me

play07:32

to transform the streams to use the FFM

play07:34

peg this will publish a stream to a new

play07:37

source which we can then see in the

play07:39

camera section under cameras I have the

play07:41

front yard which uses the rtsp stream

play07:45

path that was reemitted by frig you can

play07:48

read that in frig stocks these settings

play07:50

in the record option will save the last

play07:52

two days of footage that had a true

play07:54

positive object that was not considered

play07:57

stationary bottom line is for the for

play07:59

the last 2 days it's going to show me

play08:01

all of the moving people now this is the

play08:03

important bit the detectors we have a

play08:05

single USB coal device so this is what

play08:09

the documentation told me to put in now

play08:10

ring activates the stream on demand and

play08:13

frig will demand it stays on so if your

play08:15

camera is powered by a battery or solar

play08:18

power it's going to die within hours

play08:20

though there's not much you can do about

play08:21

that something you can do is subscribe

play08:24

and like this video damn that was smooth

play08:28

yeah I know by subscribing and liking

play08:31

not only can YouTube alert you when I

play08:33

drop new content but it helps other

play08:35

enthusiasts like yourself find it too

play08:37

okay so let's get into the automation

play08:40

something that ring sucks at is that it

play08:42

doesn't let me know if a person is at

play08:45

the door it just alerts me for anything

play08:48

that moves it doesn't support object

play08:50

recognition out of the box or at all I

play08:51

think so it just triggers for everything

play08:53

using frig we can now trigger

play08:55

automations only when people are

play08:57

detected here's a high Lev idea of what

play08:59

you need to do to get fret installed

play09:01

into home assistant go to fet's website

play09:04

look at their docs under the section of

play09:06

Integrations and home assistant

play09:07

integration you're going to find this

play09:09

stock just follow it pretty simple

play09:12

you're going to need hacks in order to

play09:14

add the integration once you have it

play09:16

installed you're going to be able to

play09:17

access it or add it via the Integrations

play09:20

when you're in device and settings and

play09:22

click on the add integration button to

play09:24

search for frig once you have it you're

play09:27

going to be able to just add in the URL

play09:29

of where it can find your frig server if

play09:33

you have it locally within home

play09:34

assistant then it would be one of these

play09:36

default values if you don't like in my

play09:40

instance I have it set as a separate

play09:42

Docker container I simply just need to

play09:44

add that URL to that Docker container

play09:47

here as a result you're going to have

play09:49

frig installed locally right now it's

play09:51

pointing to my current local server for

play09:54

frig and it sees all of the devices it

play09:56

sees the front yard it sees the cam

play09:58

because of this you now have access to

play10:00

all the sensors and entities needed to

play10:03

run different automations so we can see

play10:05

when motion is detected we can see the

play10:08

number of objects that it detects

play10:10

whether or not it's cleared or not it's

play10:12

fantastic remember the first automation

play10:14

that we did in node red we're going to

play10:16

redo that one but this time we're going

play10:19

to enhance it with frig and this time

play10:21

we're also going to do it in yaml so you

play10:23

can see what that other side is I'm

play10:25

still going to show you how to do it in

play10:26

no red though call out is that these

play10:28

automations will not work unless you're

play10:30

using the generic camera integration to

play10:33

create the camera entities that we're

play10:34

going to use to record the streams I'm

play10:37

using this new one here it's just a

play10:39

camera that I've placed by my window in

play10:41

the front um my ring camera currently is

play10:43

dead the battery's died in all of this

play10:45

testing so I have this other camera here

play10:47

that I'm setting up so um with that

play10:48

being said process is still the same

play10:50

whether you're using a ring camera or

play10:52

some other camera as long as it has an

play10:54

rtsp stream uh you can set this generic

play10:57

camera up and as you can see here I can

play10:59

see the front of the yard with it here's

play11:01

what the automation looks like for the

play11:03

trigger right now we're using a state

play11:06

trigger whenever the state changes or in

play11:08

our case for the generic camera whenever

play11:11

that value changes above zero for the

play11:14

person count we got this person count

play11:16

from the frigate entity that I showed

play11:18

you earlier when that when frigate

play11:20

detects that there is at least one

play11:22

person available then this is going to

play11:24

fire off and you can see the same thing

play11:26

here it's a little easier to read here

play11:28

in my opinion for that Omni cam count

play11:30

whenever we see that the state is above

play11:33

zero then this is gonna fire off this is

play11:37

the same as the first automation that I

play11:40

showed essentially for the action

play11:42

whenever we detect that there's a person

play11:44

or whenever it's triggered we're going

play11:46

to just record and we're going to save

play11:48

that recording locally to home assistant

play11:51

you can see that here where we're going

play11:52

to use the camera service record we're

play11:55

basically calling the generic Omni cam

play11:57

same thing here we're saving saving it

play11:59

to that snapshot or to that particular

play12:01

saving the snapshot to this particular

play12:04

location for the duration of 7 seconds

play12:06

and you can see that the same is here

play12:07

where we're saving the snapshot to the

play12:09

same location duration 7 Seconds lastly

play12:13

if you have the telegram integration or

play12:14

the telegram bot integration you're

play12:16

going to have this ability for the

play12:17

service uh but within this service we're

play12:20

basically telling the telegram bot

play12:22

integration that we want to send a video

play12:24

we're giving it the location of the

play12:27

video that we have saved locally we're

play12:29

giving it the chat ID that we want to

play12:31

send it to as well as a caption and you

play12:33

can see the same exists here where we're

play12:35

calling the integration we're giving it

play12:37

the local file location we gave it a

play12:40

caption as well as we're telling it the

play12:43

target which is the chat ID in the end

play12:46

you're going to have something that

play12:47

looks like

play12:51

this with this automation I can now

play12:54

enable ring to alert me at night as

play12:57

there's a higher probability that if if

play12:58

it goes off it will be for a legitimate

play13:01

reason now if you want to send the

play13:02

recording to your phone without telegram

play13:04

here's how you can do it the trigger

play13:06

stays exactly the same when the camera

play13:08

detects that there is a person it's

play13:10

going to trigger off that stays the same

play13:12

for both the part that we care about is

play13:15

the action all we have is just one

play13:17

action and it is the notify action now I

play13:19

will have to call out that you'll

play13:21

probably need the Home assistant app for

play13:24

your phone you're going to need it in

play13:26

order for home assistant to send you

play13:27

notifications using the notification

play13:29

service select the phone that represents

play13:33

your device and in the data section

play13:36

you're going to need to give it a

play13:37

message and you're also for the data

play13:39

part going to have to give it an entity

play13:42

ID as the key and then the actual entity

play13:45

ID of the generic camera that we created

play13:48

earlier when we were saving the videos

play13:50

the same thing can be seen here on this

play13:52

side where we have the message there's

play13:54

someone in the front yard for the

play13:56

message and for the data section we're

play13:58

going to have here the entity ID and the

play14:01

entity name for the generic camera I'm

play14:04

going to just run it manually

play14:06

here and on my phone I receiv received a

play14:09

notification and there it is live stream

play14:13

of my front yard so let's recap this

play14:16

really quick you can stream video from

play14:18

your ring camera using scripted you can

play14:20

send the stream data to your generic

play14:22

camera entity and that gets streams to

play14:24

your dashboard or you can save it to a

play14:26

hard drive or send it to your AI chat if

play14:29

you have it it's up to you how you want

play14:30

to use it as a bonus through scripted

play14:33

you can also install the cameras via hom

play14:36

kit which can give you access to motion

play14:38

sensor data and help you to better

play14:40

tailor your automations we can dial in

play14:43

everything further using frig bundled

play14:45

with the coral TPU and process the

play14:47

stream from scripted to run machine

play14:50

learning to detect if a person is

play14:52

detected as opposed to the generic

play14:54

motion of animals cars and shadows that

play14:57

ring gives you out of the box now though

play14:59

you are able to create automations based

play15:01

on the number of people detected this

play15:03

keeps the stream open on your device so

play15:06

it rapidly drains your battery and it's

play15:08

not advised by ring or other

play15:11

manufacturers really so um keep that in

play15:13

mind I wonder is there a way to enable

play15:16

and disable frig on the

play15:27

Fly

Rate This

5.0 / 5 (0 votes)

相关标签
Sécurité DomestiqueCaméra IntelligenteDétection d'ObjetAutomatisationRétroviseur ConnectéAlerte TéléphoniqueDépannage TechniqueMaison ConnectéeSystème d'AlerteDétection de Personne
您是否需要英文摘要?