module PlaceOS::Driver::Interface::Lighting::Level

Overview

Expects status is set as self[area.append("level")] = level

Defined in:

placeos-driver/interface/lighting.cr

Instance Method Summary

Instance Method Detail

abstract def lighting_level?(area : Area | Nil = nil) #

return the current level


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

[View source]
abstract def set_lighting_level(level : Float64, area : Area | Nil = nil, fade_time : UInt32 = 1000_u32) #

level between 0.0 and 100.0, fade in milliseconds


[View source]