Sonoff Camera GK-200MP2-B integration with Home Assistant and Node-RED using RTSP

  Рет қаралды 28,168

KPeyanski

KPeyanski

Күн бұрын

Пікірлер: 139
@averagesam5470
@averagesam5470 4 жыл бұрын
I saw it!
@KPeyanski
@KPeyanski 4 жыл бұрын
Your comment will be pinned as a reward! Good Job!
@nawafbana8100
@nawafbana8100 Жыл бұрын
everything was fine and cam was working, after home assistant update, the cam became unavailable, have you face any similar issues?
@Tom_Azin
@Tom_Azin Жыл бұрын
So is the Sonoff cam still worth buying in 2023 or is there anything better available for the same price? And I assume that you must keep the cam in ewelink app, or it will not work at all?
@MrMo3557
@MrMo3557 4 жыл бұрын
Great to see node red content in your videos, Please keep it up
@KPeyanski
@KPeyanski 4 жыл бұрын
Thanks for your comment. Definitely I will continue with the Node-Red stuff, because it is such a great and powerful product. For what are you using your NR?
@johannb.8616
@johannb.8616 3 жыл бұрын
Thank you for your help (your video is very helpful for home assistant part)
@KPeyanski
@KPeyanski 3 жыл бұрын
Glad to hear that
@jkljkl6
@jkljkl6 4 жыл бұрын
Thanks, just bought one. Good price and well worth trying out.
@KPeyanski
@KPeyanski 4 жыл бұрын
Yes, the camera is good. And the RTSP support is great. You made a good choice. Are you going to integrate it with HA & NR?
@jkljkl6
@jkljkl6 4 жыл бұрын
@@KPeyanski HA yes, NR probably in the future, I'm new to the world of Home Assistant and it's a steep learning curve.
@KPeyanski
@KPeyanski 4 жыл бұрын
jkljkl6 thanks for answering. If you have any difficulties when you start integrating the camera with HA - let me know. I will try to help.
@behrendorff2
@behrendorff2 3 жыл бұрын
Great video. Thank you! When executing in Node-Red, I get 2 different errors: "Error: marker was not found" and "Error: Could not find MIME for Buffer ". Any ideas what I am doing wrong here?
@KPeyanski
@KPeyanski 3 жыл бұрын
I don't know. Maybe someone else can answer.
@rafaelluna9247
@rafaelluna9247 3 жыл бұрын
Great video KPeyanski, congratulations!!! Quick question, is it possible to use independently the motion detection as a trigger for automations? (if sonoff cam detects movement, then send a message, etc.). Thank you
@KPeyanski
@KPeyanski 3 жыл бұрын
As far as I remember the motion detection sensor in Sonoff Camera was not working back then when I'm adding the camera over RTSP protocol. I'm not sure if this is changed now. For what I saw recently there is a unofficial Sonoff firmware which enable ONFIV and MQTT on the camera maybe I should test it and create a new video :)
@rafaelluna9247
@rafaelluna9247 3 жыл бұрын
@@KPeyanski That will be great, the camera possibilities will multiply. Hope you do it ;-)
@radekberan8427
@radekberan8427 4 жыл бұрын
Hi Kiril, thank you for your video. Please, did you try add this SONOFF camera in to Motion Eye in Home-assistant? I have this camera, an in Motion Eye i have only greey panel!
@KPeyanski
@KPeyanski 4 жыл бұрын
Yes I did. You can see the result in this video - kzbin.info/www/bejne/m2Oam6x7mKpoorc
@vidadeingeniero3350
@vidadeingeniero3350 4 жыл бұрын
Could you do a video explaining how to integrate your garage opener system to Home Assistant? Thanks!
@KPeyanski
@KPeyanski 3 жыл бұрын
Great suggestion!
@michaelmcnaughton1535
@michaelmcnaughton1535 3 жыл бұрын
I would really like to see how to add the GK-200mp2-B to motioneye. Which camera type to select and how to deploy the rtsp string from the issued by eWelink settings app
@KPeyanski
@KPeyanski 3 жыл бұрын
Sure thing! Check my motionEye complete tutorial here - kzbin.info/www/bejne/m2Oam6x7mKpoorc
@michaelmcnaughton1535
@michaelmcnaughton1535 3 жыл бұрын
@@KPeyanski Thanks so much for the direction. I've learned a lot from for your clear no-bullshit tutorials.
@brianriveland7172
@brianriveland7172 Жыл бұрын
Not sure if this is still valid configuration. When following step by step my camera shows up but enitity is sensor not camera "sensor.sonoff_a6200c9ca". Any help would be great. Thanks
@motowingsadventures
@motowingsadventures 2 жыл бұрын
The camera worked fine for a long time but now i think after one of the latest ha updates after a couple of hours automations dont work anymore recording video with an automation for example. livestream in card in lovelace also not working properly anymore and keeps loosing connection.
@EtFrei
@EtFrei Жыл бұрын
is there a way to release the camera so that everyone and several can see a stream?
@tinachan9333
@tinachan9333 4 жыл бұрын
Great, home assistant guide is such clear. Useful!
@KPeyanski
@KPeyanski 4 жыл бұрын
Hi Tina. Thank you for that comment. I’m preparing more tutorials, so stay around ;)
@tinachan9333
@tinachan9333 4 жыл бұрын
@@KPeyanskiOf course, I will expect more good contents. Did you receive my email?
@KPeyanski
@KPeyanski 4 жыл бұрын
Yes, I did :) I even replied to you already ...
@tinachan9333
@tinachan9333 4 жыл бұрын
Hello Kiril, did you want to any new SONOFF to do content?
@KPeyanski
@KPeyanski 4 жыл бұрын
Thank you for your kind offer, Tina. But maybe another time. See you around.
@nawafbana8100
@nawafbana8100 4 жыл бұрын
Thank you, I test it for GK-200BF6DB Camera (EACHEN Outdoor Eye Camera - EWelink) , it works perfect, but how can I make the Camera mic working? Motion sensors, and saving movements?
@KPeyanski
@KPeyanski 4 жыл бұрын
The only way that I know is to use the ONVIF if your camera is supporting it
@nawafbana8100
@nawafbana8100 4 жыл бұрын
@@KPeyanski I dont think it is supporting 🙄
@enriqueolmeda1
@enriqueolmeda1 3 жыл бұрын
Hi KP, can you please tell me how do I display the image in the dashboard? Thanks very much. Great videos !!!
@KPeyanski
@KPeyanski 3 жыл бұрын
Just add the following YAML code in your configuration.yaml file and restart HA. Don't forget to change the username:pass@IP of your camera in the RTSP link camera: - platform: ffmpeg name: sonoff cam input: -rtsp_transport tcp -i rtsp://rtsp:12345678@10.0.0.186:554/av_stream/ch0
@rhyshughes1317
@rhyshughes1317 4 жыл бұрын
These any good? Can you do iOS notification linked to this with an image capture in the notification
@KPeyanski
@KPeyanski 4 жыл бұрын
Only Image capture at specific time for example can be done easily even without NVR, But to make it right with motion detection and notifications you will need a NVR like Blue Iris, iSpy or MotionEye. I’m planning to install one myself and maybe I will make a video about it.
@thomasmarquardt8118
@thomasmarquardt8118 3 жыл бұрын
Thanks a lot for this video (and the others!). I managed to get this working in Node Red. However, my assumption was that I would also be easy to take recurring snapshots via Node Red (e.g. to produce time lapse or similar over time) and store them after I have this set up. However, I cannot get this to work - would you be able to advise? I guess its not so difficult - maybe I am missing something obvious.
@KPeyanski
@KPeyanski 3 жыл бұрын
I can only think of a workaround with Node-RED and Home Assistant at the moment. First integrate Node-RED with Home Assistant. After that invoke the camera.snapshot Home Assistant service from Node-RED on regular intervals to make the time lapse.
@thomasmarquardt8118
@thomasmarquardt8118 3 жыл бұрын
@@KPeyanski Thank you for getting back! I managed to make it work with a normal automation in HA and the camera.snapshot.
@KPeyanski
@KPeyanski 3 жыл бұрын
Yes, that is even easier, but I thought that you want to involve Node-RED as well.
@Fabio-hv8jz
@Fabio-hv8jz 4 жыл бұрын
Hi. Is possible use this camera with hub SAMSUNG SMARTHINGS? How can we do it? Thanks !
@KPeyanski
@KPeyanski 4 жыл бұрын
If this hub supports RTSP protocol, then - yes. Search a bit then ask in the following site and maybe the following topic - community.smartthings.com/t/release-generic-video-camera-devicetype-yes-live-video-streaming/45657/144 It will be best to be possible and to let us know after you check :) Good luck.
@size9ed
@size9ed 4 жыл бұрын
Have you worked out how to get the PTZ working in home assistant?
@KPeyanski
@KPeyanski 4 жыл бұрын
No, unfortunately, but I didn’t try anything in that direction yet. Do you have an idea how this can be enabled?
@tigros999
@tigros999 3 жыл бұрын
i plan on using open source iSpy when/if i get the cam, maybe a sniffer between ewelink and the cam to get some idea of ptz commands. interesting lil project is born heh!
@serhioromano
@serhioromano 2 жыл бұрын
Очень круто. Спасибо Кирил.
@KPeyanski
@KPeyanski 2 жыл бұрын
Thank you too.
@gustavomartins10
@gustavomartins10 2 жыл бұрын
is possible to move tilt and pan using home assistant?
@madmax1412
@madmax1412 3 жыл бұрын
Is there anyway of adding further configuration to allow movement of the camera?
@KPeyanski
@KPeyanski 3 жыл бұрын
Not that I know of.
@aart1l3s
@aart1l3s 4 жыл бұрын
Hello, one question, how to persist the instalation of ffmpeg in the docker container?
@KPeyanski
@KPeyanski 4 жыл бұрын
The way I do it is persistent, but is not movable. The better way is to create a Dockerfile and add the following lines: FROM imageName RUN apt-get update && apt-get install -y bash More info here - docs.docker.com/engine/reference/builder/
@aart1l3s
@aart1l3s 4 жыл бұрын
KPeyanski thanks!
@KPeyanski
@KPeyanski 4 жыл бұрын
@@aart1l3s you are welcome. Hope that helps.
@sanchocorreia1584
@sanchocorreia1584 4 жыл бұрын
Hello, Good job, i try this example and works good, the image start on the node image preview. But i don´t no how to display the images in dashboard, How can we do it? Thanks !
@KPeyanski
@KPeyanski 3 жыл бұрын
Did you manage to make it work?
@cavaio2
@cavaio2 5 ай бұрын
After several attempts, this error continues to appear: This entity ("camera.sonoff_cam") does not have a unique ID, therefore its settings cannot be managed from the user interface How can I solve it, thanks.
@qwarlockz8017
@qwarlockz8017 4 жыл бұрын
Have you looked at the ESP32-CAM? 5 dollars and you have a full wireless cam up on your system!
@KPeyanski
@KPeyanski 4 жыл бұрын
Yes, I have a esp32-cam video. Search for it in my channel.
@qwarlockz8017
@qwarlockz8017 4 жыл бұрын
@@KPeyanski I will look. Thanks for putting your videos up! They are most helpful and make all this complexity... fun!
@qwarlockz8017
@qwarlockz8017 4 жыл бұрын
@@KPeyanski (My next project might be putting a Spider Bot base on an ESP32-CAM for a little WALKING security camera!
@cesc5026
@cesc5026 4 жыл бұрын
Very helpful video! Do you also experience a ~10 second lag in the video from the camera shown in Home Assistant? Did you manage to get snapshots from the camera? Would be great e.g. in combination with the Telegram integration to get a message with an image of one's home :) Cheers!
@cesc5026
@cesc5026 4 жыл бұрын
PS: from www.reddit.com/r/homeassistant/comments/bzfn8e/camera_delays/ it seems like there could be a way if the camera supports the "keyframe" option, but I cannot find it from the app. It would be oh so good if they offered e.g. a web interface to set up the camera. Oh well.
@KPeyanski
@KPeyanski 4 жыл бұрын
There is some lag, but I cannot tell you how many seconds exactly. I didn’t have enough time lately to search how I can get a snapshot, but you are completely right. This will be super useful. Maybe someone will help us ;)
@cesc5026
@cesc5026 4 жыл бұрын
So, I spent a bit of time playing around, and it actually works! :) Let bot1 be the name of a notifier as per www.home-assistant.io/integrations/telegram/ In my automations.yaml under a particular alias and after a given trigger and condition I now have this: action: - service: camera.snapshot data: entity_id: camera.camera1 filename: '/config/tmp/snapshot.jpg' # I thought some delay would be needed, but apparently not. #- delay: 00:00:03 - service: notify.bot1 data: title: '🚪' message: "Porta terrassa oberta" data: photo: - file: "/config/tmp/snapshot.jpg" ...and in configuration.yaml, under homeassistant: whitelist_external_dirs: - /config/tmp ...which sends a nice snapshot from the Sonoff camera to the telegram bot I use for my home notifications. Enjoy!
@KPeyanski
@KPeyanski 4 жыл бұрын
WOW F SP, well done! I will try this in a bit. It seems very logical. BIG thank you for the effort and I’m going to Pin this comment if you don’t mind. Keep up the good work!
@KPeyanski
@KPeyanski 4 жыл бұрын
It worked flawlessly. You can change the name of the file to: filename: /tmp/snapshot_{{ entity_id }} if you have more than one camera configured. Thanks again for sharing.
@benilev7328
@benilev7328 3 жыл бұрын
is compatible with stream
@KPeyanski
@KPeyanski 3 жыл бұрын
You can access the live stream with the RTSP link with VLC player for example
@ronm6585
@ronm6585 4 жыл бұрын
Thanks.
@KPeyanski
@KPeyanski 4 жыл бұрын
Thank you too.
@barie1
@barie1 4 жыл бұрын
Well Done!! I really like your videos. Thank you
@KPeyanski
@KPeyanski 4 жыл бұрын
Glad you like them!
@jntparks
@jntparks 4 жыл бұрын
Kiril, thanks for the video! I have one issue. On my computer, My Picture Entity Card does not show the camera's picture (video). If I click on the card, the camera comes up showing the video. I did notice that the State shows Idle.
@jntparks
@jntparks 4 жыл бұрын
Kiril, never mind, I figured out the issue. I needed to change the view from "auto" to "on".
@KPeyanski
@KPeyanski 3 жыл бұрын
Glad that you sort it out!
@JonasDekimpe1992
@JonasDekimpe1992 3 жыл бұрын
With the integration in Home Assistant, can you use this camera as a motion sensor or a audio sensor for automations?
@KPeyanski
@KPeyanski 3 жыл бұрын
I'm afraid no.
@zamarochka75
@zamarochka75 2 жыл бұрын
@@KPeyanski Ну и нахрена она тогда нужна?
@IvanAgh
@IvanAgh 4 жыл бұрын
Hey pal. I just miss the possibility of picture taking after motion detected and send it to server. Iopened box with camera just one and half hour. And spent 40 minutes with step back process of sh.y sound pairing.
@KPeyanski
@KPeyanski 3 жыл бұрын
Sorry to hear that and thanks for sharing
@marine1718
@marine1718 4 жыл бұрын
I have xioami camera but I need to use the offial apps and cant connect with homeassistant im thinking in get this camera and use with motioneye can you test it with motioneye ?
@KPeyanski
@KPeyanski 4 жыл бұрын
It is working without any issues over RTSP protocol. I’m using it all the time like that.
@SolverTips
@SolverTips 4 жыл бұрын
hi, How to get motion sensor data? I wish to get those data on HA and trigger a switch on the automation. Thank you
@KPeyanski
@KPeyanski 3 жыл бұрын
Sorry I don't know.
@barie1
@barie1 4 жыл бұрын
How did you copy the rtsp ? do you have ewlink on your computer?
@KPeyanski
@KPeyanski 4 жыл бұрын
no, when you copy a text from iOS device you can paste the clipboard on MacOS and vice versa. It is build in functionality in Apple devices.
@SeamusHarper1234
@SeamusHarper1234 3 жыл бұрын
Hi, could you do anything about the latency?
@KPeyanski
@KPeyanski 3 жыл бұрын
Maybe you can try the proxy camera integration in home Assistant as I think it’s best optimized
@hector5438
@hector5438 2 жыл бұрын
Hi, how can I change those settings in HA for Android? Thanks.
@KPeyanski
@KPeyanski 2 жыл бұрын
Which settings?
@hector5438
@hector5438 2 жыл бұрын
@@KPeyanski The configuration.yami file only can be edited from windows HA not from Android because I cannot find that menu in my Android HA.
@jntparks
@jntparks 4 жыл бұрын
Can you add more than one Sonoff RTSP camera?
@KPeyanski
@KPeyanski 4 жыл бұрын
Yes, as many as you like.
@nikitamane-se3tx
@nikitamane-se3tx Жыл бұрын
how to node red rtsp camera to http converter
@benilev7328
@benilev7328 3 жыл бұрын
is compatible with stream????
@KPeyanski
@KPeyanski 3 жыл бұрын
Check my answer on your other comment :)
@barie1
@barie1 4 жыл бұрын
can you please share a link how to install ffmpeg on home assistant
@KPeyanski
@KPeyanski 4 жыл бұрын
try this out - www.home-assistant.io/integrations/ffmpeg/
@barie1
@barie1 4 жыл бұрын
do you know what is msg.payload : Object { code: -2 }
@KPeyanski
@KPeyanski 4 жыл бұрын
hmm, no unfortunately.
@31cazuza
@31cazuza 4 жыл бұрын
I have the same problem
@ChrisIanFiel
@ChrisIanFiel 3 жыл бұрын
did you solve the problem same here?
@et752
@et752 4 жыл бұрын
Little late, but... I saw it =)
@KPeyanski
@KPeyanski 4 жыл бұрын
Your comment becomes pinned now. Until someone else found it. Good job.
@fahmietalife
@fahmietalife 4 жыл бұрын
I saw it
@KPeyanski
@KPeyanski 4 жыл бұрын
Great. You win a pinned comment ;)
@granadas55
@granadas55 3 жыл бұрын
bad indentation of a mapping entry at line 184, column 10: name: sonoff cam ^ don´t no what is wrong
@KPeyanski
@KPeyanski 3 жыл бұрын
The YAML indention was not OK. I think I fixed it. Can you please try again now?
@granadas55
@granadas55 3 жыл бұрын
thank you, it's already working
@PawelGorka
@PawelGorka 4 жыл бұрын
doesnt work....
@KPeyanski
@KPeyanski 4 жыл бұрын
What exactly?
@31cazuza
@31cazuza 4 жыл бұрын
@@KPeyanski msg.payload : Object { code: -2 }
@juanmcons
@juanmcons 3 жыл бұрын
@@31cazuza @kpeyanski I'v the same problem, error code -2
@aameroudeh2852
@aameroudeh2852 4 жыл бұрын
I have bought this camera, I strongly don't recommend it, it is waste of money. The sensitivity of wifi is very low, my router is 2 meters away from the camera and app shows the signal bar is one line. When the interenet fluctuate from the ISP or the electricity goes off from the camera; the camera doesn't connect again, it seems it disconnect from the wifi when the internet fluctuate for seconds and it doesn't connect again.
@aameroudeh2852
@aameroudeh2852 4 жыл бұрын
And i contacted the support but they don't have an answer.
@KPeyanski
@KPeyanski 4 жыл бұрын
I have not such issues here. Maybe you got a faulty one or something. Why don't you contact support or return it back?
@aameroudeh2852
@aameroudeh2852 4 жыл бұрын
@@KPeyanski unfortunately i contacted them, they said they don't have an answer and the they will try to find out what the problem, and this one month ago
@KPeyanski
@KPeyanski 4 жыл бұрын
Sorry to hear that. Can you try connect the camera to another router & wifi and see if all is the same.
@aameroudeh2852
@aameroudeh2852 4 жыл бұрын
@@KPeyanski I changed the router but the same. By the way, I posted a questionnaire in a facebook group dedicated for people whk use sonoff devices, many people agreed that they have the same issues and they left it a way, and very few who don't have problems.
@MrMunkyUK
@MrMunkyUK 4 жыл бұрын
I saw it!
@KPeyanski
@KPeyanski 4 жыл бұрын
You receive pinned comment as well. Good job!
@tasosmi
@tasosmi 3 жыл бұрын
I saw it
@KPeyanski
@KPeyanski 3 жыл бұрын
Good job! You receive a heart on your comment as award!
@AngleGroupProductions
@AngleGroupProductions 4 жыл бұрын
I saw it
@KPeyanski
@KPeyanski 4 жыл бұрын
Your comment becomes pinned now. Until someone else found it. Good job.
eWeLink + Home Assistant + Node-RED at the same time
34:48
KPeyanski
Рет қаралды 22 М.
Home Assistant Tips And Tricks That No One Told Me
8:51
KPeyanski
Рет қаралды 15 М.
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 2,8 МЛН
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 27 МЛН
1 сквиш тебе или 2 другому? 😌 #шортс #виола
00:36
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 125 МЛН
Sonoff IP Camera - Check on your home in eWelink
22:48
Csongor Varga
Рет қаралды 44 М.
Reolink IP camera integration in Node-Red
30:56
Csongor Varga
Рет қаралды 23 М.
Node-RED + Home Assistant How-To
17:44
The Hook Up
Рет қаралды 465 М.
Node Red for Beginners - 2021 Edition (Using Home Assistant)
14:48
The Hook Up
Рет қаралды 371 М.
Object detection with ANY camera in Home Assistant - Tensorflow and DOODS
15:34
Everything Smart Home
Рет қаралды 126 М.
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 2,8 МЛН