class Crestron::OccupancySensor
- Crestron::OccupancySensor
- PlaceOS::Driver
- Reference
- Object
Included Modules
- Crestron::CresNextAuth
- PlaceOS::Driver::Interface::Sensor
Defined in:
crestron/occupancy_sensor.crConstant Summary
-
NO_MATCH =
[] of Interface::Sensor::Detail
-
SENSOR_TYPES =
{SensorType::Presence}
Class Method Summary
Instance Method Summary
- #connected
- #disconnected
- #get_sensor_details
- #last_update : Int64
- #on_load
- #poll_counter : UInt64
- #poll_device_state : Nil
-
#sensor(mac : String, id : String | Nil = nil) : Interface::Sensor::Detail | Nil
return the specified sensor details
-
#sensors(type : String | Nil = nil, mac : String | Nil = nil, zone_id : String | Nil = nil) : Array(Interface::Sensor::Detail)
return an array of sensor details zone_id can be ignored if location is unknown by the sensor provider mac_address can be used to grab data from a single device (basic grouping)
Instance methods inherited from module Crestron::CresNextAuth
authenticate
authenticate,
logout
logout
Class Method Detail
Instance Method Detail
def sensor(mac : String, id : String | Nil = nil) : Interface::Sensor::Detail | Nil
#
Description copied from module PlaceOS::Driver::Interface::Sensor
return the specified sensor details
def sensors(type : String | Nil = nil, mac : String | Nil = nil, zone_id : String | Nil = nil) : Array(Interface::Sensor::Detail)
#
Description copied from module PlaceOS::Driver::Interface::Sensor
return an array of sensor details zone_id can be ignored if location is unknown by the sensor provider mac_address can be used to grab data from a single device (basic grouping)