Here is a Homeseer script for logging Devices, just add it to the device. The driver in this case is for a MYSQL database, which can be downloaded for free. If you are using MSAccess you only have to change the driver. I would recommend MYSQL instead of MSAccess because Access is rubbish specially when connecting your database to the web and use it also for updates from within Homeseer or other applications (miltiuser part)
In this topic you can find info on how to make charts etc.
http://www.domoticaforum.eu/topic.asp?TOPIC_ID=65
<h4>Homeseer Script</h4>Dim my_conn, strSql, rsp, code, last_change, device_status, last_change_oud
Sub Main()
Set my_conn = createobject("ADODB.Connection")
my_conn.open = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=NAME-DATABASE;UID=XXXXX;PWD=XXXXX;OPTION=35;"
Set rsp = CreateObject("ADODB.Recordset")
StrSql = "SELECT * From Fridge"
rsp.Open strSQL, my_conn, 1, 3
code = hs.GetDeviceCode("Kitchen Fridge")
last_change = hs.DeviceLastChange(code)
device_status = hs.DeviceStatus(code)
If device_status = "3" then
device_status = "On"
End If
If device_status = "2" then
device_status = "Off"
End If
rsp.AddNew
rsp.Fields("Device").Value = "Fridge"
rsp.Fields("Datum").Value = Date
rsp.Fields("Tijd").Value = Time
rsp.Fields("Device_change").Value = last_change
rsp.Fields("Status").Value = Device_status
rsp.Update
rsp.Close
set rsp = nothing
my_conn.close
set my_conn = nothing
End Sub
Pieter Knuvers
www.bwired.nl Online House in the netherlands. Domotica, Home Automation.