Digital Home
Xtrusion @Home
Domotica Project

General Info

Temperature Inside: 21.1 ℃
Humidity Inside: 35 %
CO2 Level Ground Floor: 509 PPM
CO2 Level First Floor : 650 PPM
Light level: 12 lux
Noise Level: 42 dB
Temperature Outside: 0.9 ℃
Humidity Outside: 91 %
Forecast: Partly Cloudy
Pressure Sensor: 982 hPa
UV-Index: 0 (Low)
Current Rain: 0 mm/h
Rain last 24h: 0 mm

Power Grid: 1608 Watt
Known Devices: 1223 Watt
Power Usage Today: 33.909 kWh
Power Counter: 6393.253 kWh
Gas Counter: 1002.171 m3
Solar Grid 1: Offline
Solar Grid 2: Offline
Solar Energy Today: 0.058 kWh

Water Usage Today: 423 Liter
Gas Usage Today: 6.15 m3

Last Events:

HA Events in DB: 873374
FireAlarm: 2017-06-25 12:19:14
Doorbell: 2017-12-11 18:56:26
Mailbox: 2017-08-16 18:49:37

Website Users Online: 1
Updated: 11-12-2017 22:13:51

Light Info

Light Sensor Inside: On
Light Sensor Outside: Off
Sunrise: 08:37:15
Sunset: 16:21:53

WiFi Presence

Robert Mobile: Online
(Since: 2017-12-11 22:13:45)
Lianne Mobile: Offline
(Last seen: 2017-08-24 6:21:02)

BLE 4.0 Beacon Tags

BTLE1 - RS: -96 Dst: +/-11.6m
Last Seen: 2017-08-24 07:35:55 Offline
BTLE2 - RS: -97 Dst: +/-12.5m
Last Seen: 2017-12-11 01:18:06 Offline
BTLE3 - RS: -90 Dst: +/-7.1m
Last Seen: 2017-11-14 17:29:03 Offline
FitBit-Charge2 - RS: -94 Dst: +/- 9.9m
Last Seen: 2017-12-11 22:11:32 Tracker: 1
FitBit-HR - RS: -85 Dst: +/- 4.6m
Last Seen: 2017-12-11 22:13:44 Tracker: 2
Car-Robert - RS: -94 Dst: +/-9.9m
Last Seen: 2017-12-11 10:21:45 Offline
Car-Lianne - RS: -95 Dst: +/-10.7m
Last Seen: 2017-12-08 08:41:38 Offline
iTag Robert - RS: -91 Dst: +/-7.7m
Last Seen: 2017-11-08 07:08:56 Offline

Roberts FitBit Status

Steps Today: 11392 (9 stair climbs)
Distance Traveled: 8.2 Km
Calories Burned: 2962 kilocalories
Resting Heart-Rate: 79 bpm
Hours sleep today: 08:28
Last Night Sleep Efficiency: 96%
Last Sync: 11-12-2017 22:07

Roomba Cleaner

State : On Base: Trickle Charging
Battery Level: 100%
Last Clean Time:
Total Time: 175 hours 20 minutes
Total Clean Distance: 189.36km
Updated: 11-12-2017 22:13:23

Device Status

Opentherm GateWay: Online (1 ms)
Fritzbox CallMonitor: Online (2 ms)
Mi-Light Controller: Online (84 ms)
Solar Monitor: Offline
Door/Mail Cam: Online (35 ms)
Garden Cam: Online (102 ms)
VuBox: Online (0 ms)
RPi 1: Online (1 ms)
RPi 2: Online (1 ms)
SmartMeter: Online (1 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

Setup:
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)

type:
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

GeoFence

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 :)

0214geofence.jpg

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