Clipsal C-Bus Betriebsanweisung Seite 44

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 60
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 43
cbus Documentation, Release 0.1-dev
connectionMade()
Called by twisted a connection is made to the PCI.
This doesn’t get fired in normal serial connections, however we’ll send a power up notification (PUN).
Serial Interface User Guide s4.3.3.4, page 33
decode_cbus_event(line)
Decodes a CBus event and calls an event handler appropriate to the event.
Do not override this.
Parameters line (str) – CBus event data
Returns Remaining unparsed data (str) or None on error.
Return type str or NoneType
delimiter = ‘\r\n’
idmon = False
lighting_group_off(source_addr, group_addr)
Turns off the lights for the given group_id.
Parameters
source_addr (int) – Source address of the event.
group_id (int) – Group address to turn the lights on for.
Returns Single-byte string with code for the confirmation event.
Return type string
lighting_group_on(source_addr, group_addr)
Turns on the lights for the given group_id.
Parameters
source_addr (int) – Source address of the event.
group_id (int) – Group address to turn the lights on for.
Returns Single-byte string with code for the confirmation event.
Return type string
lighting_group_ramp(source_addr, group_addr, duration, level=1.0)
Ramps (fades) a group address to a specified lighting level.
Note: CBus only supports a limited number of fade durations, in decreasing accuracy up to 17 minutes
(1020 seconds). Durations longer than this will throw an error.
A duration of 0 will ramp “instantly” to the given level.
Parameters
source_addr (int) – Source address of the event.
group_id (int) – The group address to ramp.
duration (int) – Duration, in seconds, that the ramp should occur over.
level (float) – An amount between 0.0 and 1.0 indicating the brightness to set.
Returns Single-byte string with code for the confirmation event.
Return type string
40 Chapter 8. libcbus module index
Seitenansicht 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 59 60

Kommentare zu diesen Handbüchern

Keine Kommentare