Skip to content

senseBox Binding ​

The senseBox binding integrates environment data from the senseBox Citizen Science Toolkit.

Prerequisites ​

The API server uses Let's Encrypt certificates. Therefore, one needs to either import the Let's Encrypt root certificates into the local keystore (see the description in the Netatmo Binding). Another way would be to simply update the JDK to at least JDK 1.8.0_111.

Supported Things ​

This binding supports a generic "senseBox" API endpoint which is a representation of the physical box.

Discovery ​

This binding provides no discovery. The desired senseBox must be configured manually or via a things file.

Binding configuration ​

The binding has no configuration options itself; all configuration is done at the Things level.

Thing configuration ​

The senseBox Thing requires the box ID (which can be obtained on the map) and an interval in seconds for the API polling. The senseBox support team wrote in an email that polling even every five minutes is still o.k., therefore the minimum is hardcoded to be 300 seconds.

dsl
Thing sensebox:box:home [ senseBoxId = "foothesmurfingbar", refreshInterval = 600 ]

Channels ​

In the table is shown more detailed information about each Channel type. The binding introduces the following channels:

Channel IDChannel DescriptionSupported item typeAdvanced
descriptors#locationLocation of the boxPointFalse
measurements#uvIntensityIntensity of Ultraviolet radiationNumber:IntensityFalse
measurements#illuminanceIlluminanceNumber:IlluminanceFalse
measurements#pressureAir pressureNumber:PressureFalse
measurements#humidityHumidityNumber:DimensionlessFalse
measurements#temperatureTemperatureNumber:TemperatureFalse
measurements#particulateMatter2dot5Particulate Matter 2.5 µm in diameterNumber:DensityFalse
measurements#particulateMatter10Particulate Matter 10 µm in diameterNumber:DensityFalse
lastReported#uvIntensityLastReportedThe timestamp when uv radiation intensity was last reportedDateTimeTrue
lastReported#illuminanceLastReportedThe timestamp when illuminance was last reportedDateTimeTrue
lastReported#pressureLastReportedThe timestamp when pressure was last reportedDateTimeTrue
lastReported#humidityLastReportedThe timestamp when humidity was last reportedDateTimeTrue
lastReported#temperatureLastReportedThe timestamp when temperature was last reportedDateTimeTrue
lastReported#particulateMatter2dot5LastReportedThe timestamp when particulate matter 2.5 was last reportedDateTimeTrue
lastReported#particulateMatter10LastReportedThe timestamp when particulate matter 10 was last reportedDateTimeTrue

Channels starting with "descriptors" are defined on the API server.

Example ​

The Temperature and Pressure items are defined twice: one with the native unit and one with a localized unit. This shows an example of using Units of Measurement to display data without explicit recalculation in rules.

sensebox.things:

dsl
Thing sensebox:box:davos [ senseBoxId = "5b94a2c97c51910019097f14", refreshInterval = 900 ]

sensebox.items:

dsl
Location             Davos_Location      "Davos Location"                                       { channel = "sensebox:box:davos:descriptors#location" }

Number:Intensity     Davos_UVIntensity   "Davos UvIntensity [%.2f %unit%]"      <light>         { channel = "sensebox:box:davos:measurements#uvIntensity" }
Number:Illuminance   Davos_Illuminance   "Davos Light Level [%.2f %unit%]"      <light>         { channel = "sensebox:box:davos:measurements#illuminance" }
Number:Pressure      Davos_Pressure      "Davos Pressure [%.2f %unit%]"         <pressure>      { channel = "sensebox:box:davos:measurements#pressure" }
Number:Dimensionless Davos_Humidity      "Davos Humidity [%.2f %%]"             <humidity>      { channel = "sensebox:box:davos:measurements#humidity" }
Number:Temperature   Davos_Temperature   "Davos Temperature [%.2f %unit%]"      <temperature>   { channel = "sensebox:box:davos:measurements#temperature" }
Number:Density       Davos_PM2dot5       "Davos PM2.5 [%.2f %unit%]"                            { channel = "sensebox:box:davos:measurements#particulateMatter2dot5" }
Number:Density       Davos_PM10          "Davos PM10 [%.2f %unit%]"                             { channel = "sensebox:box:davos:measurements#particulateMatter10" }

sensebox.sitemap:

dsl
sitemap sensebox label="SenseBox Davos" {
    Text item=Davos_Temperature
    Text item=Davos_Pressure
    Text item=Davos_Humidity
    Text item=Davos_Illuminance
    Text item=Davos_UVIntensity
    Text item=Davos_PM2dot5
    Text item=Davos_PM10
    Mapview item=Davos_Location height=10
}

senseBox API ​