Recommendations for door camera project

Hello,

I am planning to make our house a little more smarter.

My plan is at ther very beginning and I hope to be in the correct sub forum and for a lot of help.

I wanna DIY a door button which is switching a camera on and ringing the bell.
This is at the moment maybe the easiest part.

But the current video from outside should be streamed to my openhab server and be displayed in the UI.

It should only run for about 30 seconds.
In attachment I tried to draw what I am planning.

Do you know which (I called it WemosD1) chip can handle the camera openhab link?
Is it easy to bind the camera to openhab and is it possible to show video only when door button was pushed?
Any Hardware suggestions with wirering?

Thanks

I think the answer is none. I think you need to attach the camera to something that will encode and make available the stream of video on the network. I don’t think there are any single camera boards like this that can do that.

There is an IP camera bindings, Zoneminder binding, and well documented Shinobi integration. To stream on your sitemap you just put the network address to the stream in the Video tag.

But in ALL of these cases, the video stream needs to be made available on the network somehow and that will require a computer like an RPi Zero w. Once you have that it is a matter of installing the desired software (Motion seems popular).

1 Like

I used a raspberry pi plus free version of xeoma - gave a much faster framerate than motion.

Do I understand it correctly? If I want to have a live stream I need a kind of motion or Xeoma. But if I am pleased with static pictures I can go for a cheaper/simpler solution like an Arduino board.

My onl concerns about a RPi is my experience with very low stability of this one even if I bought a real power supply instead of just using a charger.

The problem is the camera module doesn’t talk on the network. Without out that there is no way to get the data captured by the camera to OH.

If you have a way to attach the camera to an Arduino and a way to attach the Arduino to the network and provide a way for your OH server to pull the data from the Arduino from over the network or have the Arduino push the data to the OH server then yes you can use an Arduino.

The answers to all of those ifs will not be found on this forum though. Maybe you can find something useful on Instructables or and Arduino forum.

Given that the most common platform upon which OH runs is an RPi and in my personal experience I have RPis running things like these that stay running for 6+ months at a time without a reboot, and even when it reboots it is because of a general loss of power to the house, not instability with the RPi, I can’t say that the RPi is generally unstable. Perhaps you have a bad RPi or particularly noisy power or something. And if that is the case, an Arduino might have problems too.

1 Like

I’ve also found raspberry pi’s extremely reliable provided that a decent quality power supply is used - the official pi ones work perfectly. When I’ve cheaped-out and used generic power supplies I’ve had constant reliability problems.

1 Like

It’s probably more cost effective to hack a Xiaomi Dafang

Even better to use this camera and have full opensource firmware that many people have running and cases already designed to 3d print…

Thanks for all your hints.

But to buy something is easy and at the door, combined with the door switch it is not really looking good.
My project is nearly at the end. I wanted to keep this threat a little updated with some pictures:
dry run and programming

Front panel custom made

nearly ready, and waiting for the inlay:

The only thing I am fighting with is a robust programming.

1 Like

Love to see it all working when its done. Be sure to come back with some more pics.

Thanks for the pictures!
Did you install a FULL Pi into the door, or just a simple panel (Zero / Aruino)?
Did you succeed?
Is it working?
Could you test it under very cold / rain / frost / etc?

I Installed an RPi 3
It is working like a charm.
I can show you the temperature curve which is quite stable


Temp drop is at night when shutting off video.

Thank you for the graph! :slight_smile:
Sorry for the more questions, but you just made me more interested than before…

  1. Little strange the CPU is using 10% mostly… Are you maybe recording video non-stop? (That kills an SD card within max 1 year…)
  2. That’s why the Disk montoring, or just to see if there’s something wrong?
  3. How do you speak to the person? (I don’t see any speaker or mic. on those pictures.)
  4. What software solution did you choose finally?
  5. (And sorry for this question I should learn about this myself, but easier to ask: :wink:
  • How did you forward the video+audio stream + temp from that RPi to your main/central-RPi?
  1. video stream is running allways but no recording
  2. just to see if I am running low on SD Card space
  3. no need to speak, no speakers
  4. a python script written with lots of blood and sweat
  5. this was the easiest way. Once you have 3 picture files just send them with Telegram to your mobile

def send_message(chatroomids, message=None, photo=None):
files = {}
for id in chatroomids:
params = {“chat_id”: id}
if message:
params[“text”] = message
cmd = “sendMessage”
if photo:
files = {“photo”: photo}
cmd = “sendPhoto”
url = “{}{}/{}”.format(TELEGRAM_URL, BOT_TOKEN, cmd)
r = requests.get(url, params=params, files=files)
result = r.json()
print(result)