class Lutron::Lighting

Defined in:

lutron/lighting.cr

Constant Summary

Errors = {"1" => "Parameter count mismatch", "2" => "Object does not exist", "3" => "Invalid action number", "4" => "Parameter data out of range", "5" => "Parameter data malformed", "6" => "Unsupported Command"}
Occupancy = {"1" => "unknown", "2" => "inactive", "3" => "occupied", "4" => "unoccupied"}

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def blinds(device : String, action : String, component : String = "shadegrp") #

[View source]
def button_press(area : Int32, button : Int32) #

=============== DEVICE COMMANDS


[View source]
def connected #

[View source]
def daylight(area : Int32, mode : Bool) #

[View source]
def daylight_mode?(area : Int32) #

[View source]
def disconnected #

[View source]
def led(area : Int32, device : Int32, state : Int32 | Bool) #

[View source]
def led?(area : Int32, device : Int32) #

[View source]
def level(device : Int32, level : Int32, rate : Int32 = 1000, component : String = "output") #

dimmers, CCOs, or other devices in a system that have a controllable output


[View source]
def light_level(area : Int32, level : Int32, component : String | Nil = nil, fade : Int32 = 1000) #

[View source]
def lighting(device : Int32, state : Bool, action : Int32 = 1) #

on or off


[View source]
def occupancy?(area : Int32) #

[View source]
def on_load #

[View source]
def on_update #

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

[View source]
def restart #

[View source]
def scene(area : Int32, scene : Int32, component : String = "area") #

============= AREA COMMANDS


[View source]
def scene?(area : Int32, component : String = "area") #

[View source]
def trigger(area : Int32, scene : Int32) #

============= COMPATIBILITY


[View source]