
cbus Documentation, Release 0.1-dev
Return type string
lineReceived(line)
Called by LineReciever when a new line has been recieved on the PCI connection.
Do not override this.
Parameters line (str) – Raw CBus event data
on_clock_request(source_addr)
Event called when a unit requests time from the network.
Parameters source_addr (int) – Source address of the unit requesting time.
on_clock_update(source_addr, variable, val)
Event called when a unit sends time to the network.
Parameters source_addr (int) – Source address of the unit requesting time.
on_confirmation(code, success)
Event called when a command confirmation event was recieved.
Parameters
• code (str) – A single byte matching the command that this is a response to.
• success (bool) – True if the command was successful, False otherwise.
on_lighting_group_off(source_addr, group_addr)
Event called when a lighting application “off” request is recieved.
Parameters
• source_addr (int) – Source address of the unit that generated this event.
• group_addr (int) – Group address being turned off.
on_lighting_group_on(source_addr, group_addr)
Event called when a lighting application “on” request is recieved.
Parameters
• source_addr (int) – Source address of the unit that generated this event.
• group_addr (int) – Group address being turned on.
on_lighting_group_ramp(source_addr, group_addr, duration, level)
Event called when a lighting application ramp (fade) request is recieved.
Parameters
• source_addr (int) – Source address of the unit that generated this event.
• group_addr (int) – Group address being ramped.
• duration (int) – Duration, in seconds, that the ramp is occurring over.
• level (float) – Target brightness of the ramp (0.0 - 1.0).
on_lighting_group_terminate_ramp(source_addr, group_addr)
Event called when a lighting application “terminate ramp” request is recieved.
Parameters
• source_addr (int) – Source address of the unit that generated this event.
• group_addr (int) – Group address stopping ramping.
38 Chapter 8. libcbus module index
Comentários a estes Manuais