You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_posts/2017-02-04-babyphone.markdown
+56-8Lines changed: 56 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
2
layout: post
3
-
title: "Baby monitoring"
4
-
description: "Make your Home fit for baby monitoring."
5
-
date: 2016-07-28 06:00:00 +0200
6
-
date_formatted: "July 28, 2016"
3
+
title: "Smart Baby Monitor"
4
+
description: "How to build your own smart baby monitor"
5
+
date: 2017-02-04 00:00:00 +0100
6
+
date_formatted: "February 4, 2017"
7
7
author: Pascal Vizeli
8
8
comments: true
9
9
categories: How-To Babyphone
@@ -18,7 +18,7 @@ Obviously, you can use the setup as a general purpose surveillance system to mon
18
18
19
19
### {% linkable_title Setup %}
20
20
21
-
We need an IP-camera that can capture sound in the baby's room. It is also possible to use a Raspberry Pi with a microphone and send the audio to our Home-Assistant with `ffmpeg -f alsa -i hw:1,0 -vn -f rtp rtp://236.0.0.1:2000` over multicast.
21
+
We need an IP-camera that can capture sound in the baby's room. It is also possible to use a Raspberry Pi with a microphone and send the audio to our Home-Assistant with `ffmpeg -f alsa -i hw:1,0 -vn -f rtp rtp://236.0.0.1:2000` over multicast. We can set `input` option on Home-Assistant side to `rtp://236.0.0.1:2000` in same network.
22
22
23
23
Next, we attach a ffmpeg noise binary sensor to our IP-camera. The sensor has an output `option` that allows us to send the output to icecast2 server for playing over speakers integrated with Home-Assistant (e.g., Sonos). We can use the binary sensor in our automation. You can ignore the icecast2 setup if you don't want to play the audio after the noise sensor trigger.
24
24
@@ -63,7 +63,7 @@ binary_sensor:
63
63
64
64
We use the option `initial_state` to prevent the ffmpeg process from starting with Home-Assistant and only start it when needed. We use an `input_boolean` to control the state of ffmpeg services using the following automation.
65
65
66
-
```
66
+
```yaml
67
67
input_boolean:
68
68
babyphone:
69
69
name: babyphone
@@ -79,6 +79,7 @@ automation:
79
79
action:
80
80
service: ffmpeg.start
81
81
entity_id: binary_sensor.ffmpeg_noise
82
+
82
83
- alias: 'Babyphone off'
83
84
trigger:
84
85
platform: state
@@ -90,7 +91,54 @@ automation:
90
91
entity_id: binary_sensor.ffmpeg_noise
91
92
```
92
93
94
+
### {% linkable_title Trigger a alarm %}
95
+
96
+
Now we can make a lot stuff. Here is a simple example of an automation what should be possible with Sonos speakers.
0 commit comments