Mobotix light level into homeseer

Erik December 4, 2011 1
Mobotix light level into homeseer

As seen on http://www.bwired.nl/weblog.asp?id=435, but now for homeseer.

The mobotix camera has a buil in lummen sensor. To use this in homeseer you need to adjust some settings on your camera and in homeseer to make it work.

First we need to go to our mobotix camera and go to the admin menu. Find the ip notify part (note the tasks also marked, for later)

In here we need to make a custom one, change the values marked here.

In my example, the full cgi-path is /lummen/voorkant.asp?code=A2&current=$(SEN.ILR)&activate=100
Where 100 is my “dark” trigger (the higher, the more darkness it requires to go off) and code is your homeseer device (see more below)

On the event part we want this to run each minute.

In homeseer create a device (in my example A2) and make it a status only.

Now for the last part, add a homeseer asp page (i have it in /html/lummen/) and put in the following text:



<%
Dim RequestStr

current = request.form("current")
activate = request.form("activate")
code = request.form("code")

if current < activate Then
hs.SetDeviceString code,"On"
Else
hs.SetDeviceString code,"Off"
End If
%>



The only thing it does is checks the url from your mobotix which comes every minute and matches it with the value you set as trigger and changes the event to either on or off..

One Comment »

  1. DJ January 17, 2012 at 8:50 pm -

    what I really want to say is….

    LIKE!

    (just ‘LIKE’ is to short of a comment)

Leave A Response »