class Lutron::ViveLeap

Included Modules

Defined in:

lutron/vive_leap.cr

Constant Summary

NO_MATCH = [] of Interface::Sensor::Detail

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def area_status? #

gets the status of all areas


[View source]
def connected #

[View source]
def disconnected #

[View source]
def on_load #

[View source]
def on_update #

[View source]
def ping #

[View source]
def received(data, task) #

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


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


[View source]
def zone_contact_closure(zone_id : String | Int32, state : Bool) #

[View source]
def zone_level(zone_id : String | Int32, level : Float64) #

[View source]
def zone_lighting(zone_id : String | Int32, state : Bool) #

[View source]
def zone_status? #

get the status of all zones


[View source]