Enable Control Application¶
The Enable Control Application is used to set network variables on CBus units.
This can change the behaviour of certain elements of the network, or allow some reprogramming of devices.
Please refer to this document in conjunction with the Enable Control Application Guide published by Clipsal.
-
class
cbus.protocol.application.enable.
EnableApplication
¶ Bases:
cbus.protocol.application.sal.BaseApplication
This class is called in the cbus.protocol.applications.APPLICATIONS dict in order to describe how to decode enable broadcast application events received from the network.
Do not call this class directly.
-
classmethod
decode_sals
(data: bytes) → List[cbus.protocol.application.enable.EnableSAL]¶ Decodes a enable broadcast application packet and returns its SAL(s).
-
static
supported_applications
() → Set[cbus.common.Application]¶ Gets a list of supported Application IDs for the application.
All application IDs must be in the range 0x00 - 0xff.
-
classmethod
-
class
cbus.protocol.application.enable.
EnableSAL
¶ Bases:
cbus.protocol.application.sal.SAL
Base type for enable control application SALs.
-
application
¶
-
static
decode_sals
(data: bytes) → List[cbus.protocol.application.enable.EnableSAL]¶ Decodes a enable control application packet and returns it’s SAL(s).
Parameters: data (str) – SAL data to be parsed. Returns: The SAL messages contained within the given data. Return type: list of cbus.protocol.application.enable.EnableSAL
-
-
class
cbus.protocol.application.enable.
EnableSetNetworkVariableSAL
(variable, value)¶ Bases:
cbus.protocol.application.enable.EnableSAL
Enable control Set Network Variable SAL.
Sets a network variable.
Creates a new SAL Enable Control Set Network Variable
Parameters: - variable (int) – The variable ID being changed
- value (int) – The value of the network variable
-
classmethod
decode
(data)¶ Do not call this method directly – use EnableSAL.decode
-
encode
() → bytes¶