class Zencontrol::AdvancedTPI
- Zencontrol::AdvancedTPI
- PlaceOS::Driver
- Reference
- Object
Included Modules
- PlaceOS::Driver::Interface::Lighting::Level
- PlaceOS::Driver::Interface::Lighting::Scene
Defined in:
zencontrol/advanced_tpi.crConstant Summary
-
ERROR_CODES =
{1_u8 => "The checksum check failed", 2_u8 => "A short on the DALI line was detected", 3_u8 => "A receive error occured", 4_u8 => "The command in the request is unrecognised", 176_u8 => "The command requested relies on a paid feature that hasn't been purchsed", 177_u8 => "Invalid arguments supplied for the given command in the re quest", 178_u8 => "The command couldn't be processed", 179_u8 => "The queue or buffer that's required to process the command in the request\n is full or broken", 180_u8 => "The command in the request may stream multiple responses back, but this\n feature isn't available for some reason", 181_u8 => "The DALI related request couldn't be processed due to an error", 182_u8 => "There are an insufficient number of the required resource remaining service\n the request", 183_u8 => "An unexpected result occurred"}
-
LEVEL_PERCENTAGE =
255 / 100
Class Method Summary
Instance Method Summary
-
#light_level(area : UInt32, level : Float64)
Using direct command
-
#lighting_level?(area : Area | Nil = nil)
return the current level
- #lighting_scene?(area : Area | Nil = nil)
- #on_load
- #on_update
- #received(data, task)
-
#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)
-
#trigger(area : UInt32, scene : UInt32)
Using indirect commands
Class Method Detail
Instance Method Detail
Description copied from module PlaceOS::Driver::Interface::Lighting::Level
return the current level
Description copied from module PlaceOS::Driver::Interface::Lighting::Level
level between 0.0 and 100.0, fade in milliseconds