I have bought an UradMonitor A3. (www.uradmonitor.com)
This is a sensor system that provides readings of:
Temperature
Pressure
Humidity
VOC
PM2.5
Formaldehyde
Carbon Dioxide
γ,x-rays
I know some have connected it to Homeseer, but have anyone connected it to the Fibaro system?
It can provide readings over wifi and via the internet.
Anyone that know how this unit can be implemented into the Fibaro system?
Would like the current values from the UradMonitor in HC2, so it can be used in scenes.
I think this is the homeseer code:
Imports System.Web.Script.Serialization
Sub Main(ByVal Parm As Object)
hs.WriteLog("uRad Data Retrive Started", "(uRad_data.vb script) Scripting is OK and is now running uRad_data.vb")
Try
Dim InputString as String
InputString = hs.GetURL("IP_Address","/j",TRUE,80)
Dim json As New JavaScriptSerializer
Dim dataObj As jsonStructure = json.Deserialize(Of jsonStructure)(InputString)
' {"data":{ "id":"8200000C","type":"8","detector":"SI29BG","voltage":380,"cpm":17,"temperature":33.78,"humidity":33.00,"pressure":99968,"voc":244751,"co2":467,"ch2o":0.03,"pm25":1,"uptime": 181416}}
hs.writelog("id", dataObj.data.id)
hs.writelog("type", dataObj.data.type)
hs.writelog("detector", dataObj.data.detector)
hs.writelog("cpm", dataObj.data.cpm)
hs.writelog("temperature", dataObj.data.temperature)
hs.writelog("humidity", dataObj.data.humidity)
hs.writelog("pressure", dataObj.data.pressure)
hs.writelog("voc", dataObj.data.voc)
hs.writelog("co2", dataObj.data.co2)
hs.writelog("ch2o", dataObj.data.ch2o)
hs.writelog("pm25", dataObj.data.pm25)
hs.writelog("uptime", dataObj.data.uptime)
hs.SetDeviceValueByRef(473, dataObj.data.cpm, True)
hs.SetDeviceValueByRef(474, dataObj.data.voc, True)
hs.SetDeviceValueByRef(2360, dataObj.data.pm25, True)
Catch ex As Exception : hs.writelog("Urad Test Script", "Error: " & ex.Message.ToString)
End Try
hs.WriteLog("uRad Data Retrive Finished", "(uRad_data.vb script) Scripting is OK and has now finished uRad_data.vb")
End Sub
Public Class jsonStructure
Public data As data
End Class
Public Class data
Public Property id As String
Public Property type As String
Public Property detector As String
Public Property cpm As Integer
Public Property temperature As Decimal
Public Property humidity As Decimal
Public Property pressure As Integer
Public Property voc As Integer
Public Property co2 As Integer
Public Property ch2o As Decimal
Public Property pm25 As Integer
Public Property uptime As Double
End Class