---
title: "Home Events: Monitor Home Network"
url: "https://maker.wiznet.io/pim33/contest/smart-occupancy-presence-detector/"
markdown_url: "https://maker.wiznet.io/pim33/contest/smart-occupancy-presence-detector/md"
type: "Contests"
author: "pim33"
author_url: "https://maker.wiznet.io/pim33/"
original_author: "pim33"
published: "2022-01-27"
language: "en"
likes: 0
views: 1817
comments: 1
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Home Events: Monitor Home Network

> Home Events: Monitor Home Network

Original author: pim33

## Components

- Software: **Home-Events**

## Documents and links

- [HomeEvents](https://github.com/home-events/home-events) (code)
- [Article](https://www.hackster.io/pim33/home-events-detect-activities-in-home-network-ce5e66)

## Article

**Home Events**

Home Events process packets, and detect events in the local network,.

Consider the following scenarios (which could be very common in most households):

1. Parents go to the work in the morning

2. Parents take kids to school

3. Someone turn on the TV in the afternoon

For each of these scenarios, we can define conditions (pre and post) and actions to be executed.

For example, when everybody left home, turn off the TV and activate monitoring cameras automatically.

Home Assistant *automation* is a powerful, well-designed feature for these tasks, however, creating the states and triggers is a bit cumbersome.

In this project, we try to decouple the events and leave the action for systems like Home Assistant to handle.

Read the development story here: <https://www.hackster.io/pim33/home-events-detect-activities-in-home-network-ce5e66>

![](https://maker.wiznet.io/uploads/2022/04/overview.png)

It consists of three main components:

1. `Sniffer`: collect ethernet packets from the local network

2. `InferenceEngine`: detect patterns in packets and generate events

3. `Notifier`: publish messages to configured channels

![](https://maker.wiznet.io/uploads/2022/04/class-diagram.png)

## Quickstart

1. Install CircuitPython on your device: Download the https://circuitpython.org/board/raspberry_pi_pico/, disconnect PICO, hold the BOOT button down, connect and copy the UF2 file to the PICO and release the BOOT button.

2. Copy libraries to `lib` folder on the device. These are tested and working: https://github.com/home-events/w5100s-circuit-python-libs

3. Create your `config.json` in `src/` folder. See `config-sample.json` for an example.

4. Copy `src/` folder to the root of your device.

5. Type `http://&lt;your-configured-ip-address>` in your browser.

![](https://maker.wiznet.io/uploads/2022/04/home-events-screenshot-1024x551.png)

## Source

Check <https://github.com/home-events/home-events>

---

Source: https://maker.wiznet.io/pim33/contest/smart-occupancy-presence-detector/
