cbus Documentation, Release 0.1-dev
class cbus.protocol.application.temperature.TemperatureSAL(packet=None,
group_address=None)
Bases: object
Base type for temperature broadcast application SALs.
This should not be called directly by your code!
Use one of the subclasses of cbus.protocol.temperature.TemperatureSAL instead.
classmethod decode(data, packet)
Decodes a temperature broadcast application packet and returns it’s SAL(s).
Parameters
• data (str) – SAL data to be parsed.
• packet (cbus.protocol.base_packet.BasePacket) – The packet that this data is associated
with.
Returns The SAL messages contained within the given data.
Return type list of cbus.protocol.application.temperature.TemperatureSAL
encode()
Encodes the SAL into a format for sending over the C-Bus network.
class cbus.protocol.application.temperature.TemperatureBroadcastSAL(packet,
group_address,
tempera-
ture)
Bases: cbus.protocol.application.temperature.TemperatureSAL
Temperature broadcast event SAL.
Informs the network of the current temperature being sensed at a location.
Creates a new SAL Temperature Broadcast message.
Parameters
• packet (cbus.protocol.base_packet.BasePacket) – The packet that this SAL is to be included
in.
• group_address (int) – The group address that is reporting the temperature.
• temperature (float) – The temperature, in degrees celcius, between 0.0 and 63.75.
classmethod decode(data, packet, command_code, group_address)
Do not call this method directly – use TemperatureSAL.decode
encode()
8.1.3 toolkit Package
cbz Module
cbus/toolkit/cbz.py Library for reading CBus Toolkit CBZ files with lxml.
This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
version.
8.1. cbus Package 47
Comments to this Manuals