abstract-things
stable

Getting started

  • Using things
  • Building things
  • Values

Types and capabilities

  • Common capabilities
  • Controllers
  • Lights
  • Sensors
    • cap:atmospheric-pressure - read atmospheric pressure
    • cap:carbon-dioxide - read carbon dioxide level
    • cap:carbon-monoxide - read carbon monoxide level
    • cap:contact - contact sensing
    • cap:illuminance - read illuminance
    • cap:motion - 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:temperature - read temperature
    • cap:voltage - read voltage of something
  • 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 - read carbon dioxide level
  • cap:carbon-monoxide - read carbon monoxide level
  • cap:contact - contact sensing
  • cap:illuminance - read illuminance
  • cap:motion - 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:temperature - read temperature
  • cap:voltage - read voltage of something
Next Previous

Revision 0d795321.

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