class Philips::Dynalite

Included Modules

Defined in:

philips/dynalite.cr

Constant Summary

LEVEL_PERCENTAGE = 254 / 100

Class Method Summary

Instance Method Summary

Class Method Detail

def self.driver_interface : String #

Instance Method Detail

def connected #

[View source]
def decrement_area_level(area : UInt8) #

[View source]
def disconnected #

[View source]
def get_current_preset(area : UInt8) #

[View source]
def get_light_level(area : Int32, channel : Int32 = 255) #

[View source]
def increment_area_level(area : UInt8) #

[View source]
def light_level(area : Int32, level : Float64, fade : Int32 = 1000, channel : Int32 = 255) #

[View source]
def lighting(area : Int32, state : Bool, fade : Int32 = 1000) #

[View source]
def lighting_level?(area : Area | Nil = nil) #
Description copied from module PlaceOS::Driver::Interface::Lighting::Level

return the current level


[View source]
def lighting_scene?(area : Area | Nil = nil) #

[View source]
def link_area(area : UInt8, join : UInt8) #

[View source]
def on_load #

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

[View source]
def save_preset(area : UInt8, scene : UInt8) #

[View source]
def set_lighting_level(level : Float64, area : Area | Nil = nil, fade_time : UInt32 = 1000_u32) #
Description copied from module PlaceOS::Driver::Interface::Lighting::Level

level between 0.0 and 100.0, fade in milliseconds


[View source]
def set_lighting_scene(scene : UInt32, area : Area | Nil = nil, fade_time : UInt32 = 1000_u32) #

[View source]
def stop_all_fading(area : UInt8) #

[View source]
def stop_fading(area : UInt8, channel : UInt8 = 255_u8) #

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

fade_time in millisecond


[View source]
def unlink_area(area : UInt8) #

[View source]