Digital Home
Xtrusion @Home
Domotica Project

General Info

Temperature Inside: 20.2 ℃
Humidity Inside: 51 %
CO2 Level Ground Floor: 441 PPM
CO2 Level First Floor : 682 PPM
Light level: 0 lux
Noise Level: 25 dB
Temperature Outside: 11.1 ℃
Humidity Outside: 66 %
Forecast: Sunny
Pressure Sensor: 1009 hPa
UV-Index: 0 (Low)
Current Rain: 0 mm/h
Rain last 24h: 2.1 mm

Power Grid: 844 Watt
Known Devices: 789 Watt
Power Usage Today: 4.186 kWh
Power Counter: 5169.405 kWh
Gas Counter: 872.875 m3
Solar Grid 1: Offline
Solar Grid 2: Offline
Solar Energy Today: 0.015 kWh

Water Usage Today: 2 Liter
Gas Usage Today: 0 m3

Last Events:

HA Events in DB: 841543
FireAlarm: 2017-06-25 12:19:14
Doorbell: 2017-10-18 17:18:51
Mailbox: 2017-08-16 18:49:37

Website Users Online: 1
Updated: 21-10-2017 4:49:24

Light Info

Light Sensor Inside: On
Light Sensor Outside: Off
Sunrise: 08:13:28
Sunset: 18:27:40

WiFi Presence

Robert Mobile: Online
(Since: 2017-10-21 4:49:22)
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: -95 Dst: +/-10.7m
Last Seen: 2017-09-11 01:31:35 Offline
BTLE3 - RS: -87 Dst: +/- 5.5m
Last Seen: 2017-10-21 04:49:22 Tracker: 1
FitBit-Charge2 - RS: -88 Dst: +/-6m
Last Seen: 2017-10-20 16:52:42 Offline
FitBit-HR - RS: -93 Dst: +/- 9.1m
Last Seen: 2017-10-21 04:49:03 Tracker: 2
Car-Robert - RS: -96 Dst: +/-11.6m
Last Seen: 2017-09-18 16:49:10 Offline
Car-Lianne - RS: -94 Dst: +/-9.9m
Last Seen: 2017-09-01 03:42:42 Offline

Roberts FitBit Status

Steps Today: 58 (0 stair climbs)
Distance Traveled: 0.04 Km
Calories Burned: 428 kilocalories
Resting Heart-Rate: bpm
Hours sleep today: 00:00
Last Night Sleep Efficiency: %
Last Sync: 21-10-2017 04:29

Roomba Cleaner

State : On Base: Trickle Charging
Battery Level: 100%
Last Clean Time: 03 hours 29 minutes
Total Time: 150 hours 33 minutes
Total Clean Distance: 166.36km
Updated: 21-10-2017 04:49:04

Device Status

Opentherm GateWay: Online (0 ms)
Fritzbox CallMonitor: Online (0 ms)
Mi-Light Controller: Online (76 ms)
Solar Monitor: Online (11 ms)
Door/Mail Cam: Online (111 ms)
Garden Cam: Online (64 ms)
VuBox: Online (0 ms)
RPi 1: Online (0 ms)
RPi 2: Online (10 ms)
SmartMeter: Online (2 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