class Delta::UNOnext
- Delta::UNOnext
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::Sensor
Defined in:
delta/uno_next.crConstant Summary
-
NO_MATCH =
[] of Interface::Sensor::Detail
-
NO_OBJECTS =
[] of Models::Object
-
SENSOR_TYPES =
{0 => SensorType::Temperature, 1 => SensorType::Humidity, 2 => SensorType::AirQuality, 4 => SensorType::PPM, 5 => SensorType::Illuminance}
Class Method Summary
Instance Method Summary
- #cached_data : Hash(String, Array(Detail))
- #manager_mappings : Array(ManMap)
- #on_load
- #on_update
-
#sensor(mac : String, id : String | Nil = nil) : Detail | Nil
=================================== Sensor Interface functions ===================================
-
#sensors(type : String | Nil = nil, mac : String | Nil = nil, zone_id : String | Nil = nil) : Array(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)
- #site_name : String
Class Method Detail
Instance Method Detail
def sensor(mac : String, id : String | Nil = nil) : Detail | Nil
#
def sensors(type : String | Nil = nil, mac : String | Nil = nil, zone_id : String | Nil = nil) : Array(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)