abstract-things
latest

Getting started

  • Using things
  • Building things
  • Values

Types and capabilities

  • Common capabilities
  • Controllers
  • Lights
  • Sensors
    • cap:atmospheric-pressure - read atmospheric pressure
    • cap:carbon-dioxide-detection - detect abnormal CO2 levels
    • cap:carbon-dioxide-level - read carbon dioxide level
    • cap:carbon-monoxide-detection - detect abnormal CO levels
    • cap:carbon-monoxide-leve - read carbon monoxide level
    • cap:contact-detection - contact sensing
    • cap:illuminance - read illuminance
    • cap:motion-detection - motion sensing
    • cap:pm2.5 - read PM2.5 density (air quality)
    • cap:pm10 - read PM10 density (air quality)
    • cap:power-consumed - read power consumed
    • cap:power-load - read the current power load
    • cap:relative-humidity - read humidity of air
    • cap:smoke-detection - detect smoke
    • cap:temperature - read temperature
    • cap:voltage - read voltage of something
    • cap:water-detection - detect water
  • Climate
  • Electrical
abstract-things
  • Docs »
  • Sensors
  • Edit on GitHub

SensorsΒΆ

The type sensor is used to mark things that read one or more values.

if(thing.matches('type:sensor') {
        console.log('Sensor values:', thing.values());
}

if(thing.matches('type:sensor', 'cap:temperature')) {
        console.log('Temperature:', thing.temperature());
}

Capabilities

  • cap:atmospheric-pressure - read atmospheric pressure
  • cap:carbon-dioxide-detection - detect abnormal CO2 levels
  • cap:carbon-dioxide-level - read carbon dioxide level
  • cap:carbon-monoxide-detection - detect abnormal CO levels
  • cap:carbon-monoxide-leve - read carbon monoxide level
  • cap:contact-detection - contact sensing
  • cap:illuminance - read illuminance
  • cap:motion-detection - motion sensing
  • cap:pm2.5 - read PM2.5 density (air quality)
  • cap:pm10 - read PM10 density (air quality)
  • cap:power-consumed - read power consumed
  • cap:power-load - read the current power load
  • cap:relative-humidity - read humidity of air
  • cap:smoke-detection - detect smoke
  • cap:temperature - read temperature
  • cap:voltage - read voltage of something
  • cap:water-detection - detect water
Next Previous

Revision 440404b3.

Built with Sphinx using a theme provided by Read the Docs.