class Delta::UNOnext

Included Modules

Defined in:

delta/uno_next.cr

Constant 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

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def cached_data : Hash(String, Array(Detail)) #

[View source]
def manager_mappings : Array(ManMap) #

[View source]
def on_update #

[View source]
def sensor(mac : String, id : String | Nil = nil) : Detail | Nil #

=================================== Sensor Interface functions


[View source]
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)


[View source]
def site_name : String #

[View source]