class Philips::Hue
- Philips::Hue
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::Lighting::Level
- PlaceOS::Driver::Interface::Lighting::Scene
Defined in:
philips/hue.crClass Method Summary
Instance Method Summary
- #app_key : String
- #client_key : String
- #device_list
-
#lighting_level?(area : Area | Nil = nil)
return the current level
- #lighting_scene?(area : Area | Nil = nil)
- #on_load
- #on_update
- #register
- #resource_details(resource : Resource, id : String | Nil = nil)
-
#rgb_to_cie(r : UInt8, g : UInt8, b : UInt8) : Tuple(Float64, Float64)
convert RGB to CIE which is used by Hue
- #scene_list
- #scenes : Array(String)
- #set_light_colour(light_id : Int32, r : UInt8 = 0_u8, g : UInt8 = 0_u8, b : UInt8 = 0_u8)
- #set_light_level(light_id : String, level : UInt32, resource : Resource = Resource::Light)
-
#set_lighting_level(level : Float64, area : Area | Nil = nil, fade_time : UInt32 = 1000_u32)
level between 0.0 and 100.0, fade in milliseconds
-
#set_lighting_scene(scene : UInt32, area : Area | Nil = nil, fade_time : UInt32 = 1000_u32)
================== Lighting Interface ==================
- #set_scene(scene_id : String)
Class Method Detail
Instance Method Detail
Description copied from module PlaceOS::Driver::Interface::Lighting::Level
return the current level
def rgb_to_cie(r : UInt8, g : UInt8, b : UInt8) : Tuple(Float64, Float64)
#
convert RGB to CIE which is used by Hue
Description copied from module PlaceOS::Driver::Interface::Lighting::Level
level between 0.0 and 100.0, fade in milliseconds