Digital Home
Xtrusion @Home
Domotica Project

General Info

Temperature Inside: 20.4 ℃
Humidity Inside: 36 %
CO2 Level Ground Floor: 400 PPM
CO2 Level First Floor : 477 PPM
Light level: 3 lux
Noise Level: 51 dB
Temperature Outside: 14.3 ℃
Humidity Outside: 31 %
Forecast: Rain
Pressure Sensor: 856 hPa
UV-Index: 0 (Low)
Current Rain: 0 mm/h
Rain last 24h: 0 mm

Power Grid: 367 Watt
Known Devices: 260 Watt
Power Usage Today: -1.956 kWh
Power Counter: 20341.58 kWh
Gas Counter: 2362.606 m3
Solar Grid 1: Offline
Solar Grid 2: Offline
Solar Energy Today: 12.182 kWh

Water Usage Today: 236 Liter
Gas Usage Today: 0.45 m3

Last Events:

HA Events in DB: 2892072
FireAlarm: 2020-04-09 20:37:09
Doorbell: 2020-04-09 10:09:09
Mailbox: 2020-01-17 11:24:50

Website Users Online: 3
Updated: 09-04-2020 21:25:06

Light Info

Light Sensor Inside: On
Light Sensor Outside: On
Sunrise: 06:49:21
Sunset: 20:25:24

WiFi Presence

Robert Mobile: Online
(Since: 2020-04-09 21:25:02)
Lianne Mobile: Online
(Since: 2020-04-09 21:25:04)

BLE 4.0 Beacon Tags

iTag Robert - RS: -89 Dst: +/- 6.5m
Last Seen: 2020-04-09 21:24:48 Tracker: 1
iTag GSM - RS: -87 Dst: +/-5.5m
Last Seen: 2019-12-26 12:46:02 Offline
iTag Lianne - RS: -81 Dst: +/- 3.2m
Last Seen: 2020-04-09 21:22:20 Tracker: 1
FitBit-Charge3 - RS: -88 Dst: +/-6m
Last Seen: 2020-04-09 20:49:23 Offline
FitBit-Charge2 - RS: -82 Dst: +/-3.5m
Last Seen: 2017-04-14 18:02:56 Offline
Car-Robert - RS: -98 Dst: +/-13.6m
Last Seen: 2020-04-09 13:56:29 Offline
Car-Lianne - RS: -99 Dst: +/-14.7m
Last Seen: 2019-12-09 00:29:44 Offline

Roberts FitBit Status

Steps Today: 9169 (23 stair climbs)
Distance Traveled: 5.22025 Km
Calories Burned: 2648 kilocalories
Resting Heart-Rate: 75 bpm
Hours sleep today: 08:52
Last Night Sleep Efficiency: 97%
Last Sync: 09-04-2020 21:08

Roomba Cleaner

State : On Base: Trickle Charging
Battery Level: 100%
Last Clean Time: 09 hours 29 minutes
Total Time: 1056 hours 07 minutes
Total Clean Distance: 1150.85km
Updated: 09-04-2020 21:24:38

Device Status

Opentherm GateWay: Online (1 ms)
Fritzbox CallMonitor: Online (0 ms)
Mi-Light Controller: Online (28 ms)
Solar Monitor: Online (10 ms)
Door/Mail Cam: Online (4 ms)
Garden Cam: Offline
VuBox: Online (0 ms)
RPi 1: Online (11 ms)
RPi 2: Online (1 ms)
SmartMeter: Online (0 ms)

october 05, 2014 07:38pm

Bluetooth Audio Stream

Bluetooth audio streamer

Some new addon in the domotica system here is to stream audio to Bluetooth speakers
For this I use an Raspberry PI, with standard wheezy image, an Wifi dongle, and a Bluetooth Dongle

Install wifi and Bluetooth drivers on the pi
Install bluez and alsa (sudo apt-get install bluetooth bluez-utils bluez-alsa)
Add your PI user to the BT group (sudo gpasswd -a pi bluetooth)

Turn on your BT speaker and type: hcitool scan

This will scan for available BT devices, you will find the BT speaker with the MAC address
Now connect to the device (bluez-simple-agent hci0 xx:xx:xx:xx:xx:xx) (the xx:xx is the Mac address of your speaker)
Enter pincode for your device if needed (most cases 0000 or 1234)

After this make the device trusted (so it will auto connect)
bluez-test-device trusted xx:xx:xx:xx:xx:xx yes

now the BT speaker is connected we need to add is as audio device
open the ~/.asoundrc in your editor (vi or nano etc)

pcm.bluetooth1 {
type bluetooth
device xx:xx:xx:xx:xx:xx
profile “auto”

Now edit the audio config for BT in /etc/bluetooth/audio.conf
In the [general] section type
Disable = Media
Enable = Socket. Source, Sink

And restart Bluetooth Service
sudo /etc/init.d/bluetooth restart

now we can stream mp3’s to the speaker
for test you can sue mpg321 –a bluetooth1 –g 20 somemusic.mp3 (ofcourse use your own file)

what I did next is create a new mount to a network share where I put the mp3’s
and via NodeJS I created a new webservice that runs on boot

When I call this webservice from my domotica system with some arguments, it will launch the Mplayer and stream an mp3 over the network to any speaker I choose

Everything is integrated in the tablet system, so the kids can play their own audio in the livingroom

but cool part is we can also stream info messages, like "washing machine is ready" or "mailbox opened" over TTS :)

And based on movement sensors we can stream it only to the location where it's needed.

Pretty cool :)

june 19, 2014 12:36pm

New Touch Panel..

New Touch Panel..

in the past i only had some small webif on the phone for controlling things
but now we have a fixed 8" tablet in the living room.. it gives total control over
several components in the house

the interface is very easy to use, and has a high WAF :) (Wife Acceptence Factor)

some screenshots:

in the info panel we get messages about rainfall, watering the plants, when to put the dumpster at the street etc
there is also some overlay for info mesages realtime (like if the phone rings, the tablet displays name etc) or when the washing machine is
ready there will be some popup on-screen

here we can control all the lights, if an light is turned on by switch or remote, it will also be displayed on the tab

Some special device controls, and security cams

Temperature and humidity in all rooms, and also garden and inside plant state with soil sensors

Realtime Power usage of switched on devices that consume more that 1 watt :) the plugs are changing color depending
on the amount of power they drawn from the grid

Todays weather info, and forecast for the next 4 days

february 06, 2014 04:20pm


As I have the Btrace app on my phone it would like me a cool idea to add some geofence to my system
A geofence is an virtual border based on range of GPS coordinates.

My phone is sending information about battery level, position etc to the system, so why not use this to perform actions
Like turn on the central heating when no-body is home, or notify the wife that I’m on my way home (NMA Push)

I started to make a script to get the distance from my phone to our home. For now this looks very promising.
Lets see how it works out the upcoming days :)


january 11, 2014 02:38pm

FritzBox Call monitor update

Some changes where just applied to the call monitoring script.. I found out the method I use to store data in the database is not working correct

the MySQL gives a timeout after 1440 seconds, so when I make the DB connection on script start it will fail after this time. now the database is connected when an event occurs.

I also add call duration monitoring, and perfected the automated number lookup in the internet telephone book.

lets see if this solves the issues