Package pyControl4
Sub-modules
pyControl4.account
-
Authenticates with the Control4 API, retrieves account and registered controller info, and retrieves a bearer token for connecting to a Control4 …
pyControl4.alarm
-
Controls Control4 security panel and contact sensor (door, window, motion) devices.
pyControl4.blind
-
Controls Control4 blind devices.
pyControl4.director
-
Handles communication with a Control4 Director, and provides functions for getting details about items on the Director.
pyControl4.error_handling
-
Handles errors recieved from the Control4 API.
pyControl4.light
-
Controls Control4 Light devices.
pyControl4.relay
-
Controls Control4 Relay devices. These can include locks, and potentially other types of devices.
pyControl4.room
-
Controls Control4 Room devices.
pyControl4.websocket
-
Handles Websocket connections to a Control4 Director, allowing for real-time updates using callbacks.
Classes
class C4Entity (C4Director, item_id)
-
Creates a Control4 object.
Parameters
C4Director
- AC4Director
object that corresponds to the Control4 Director that the device is connected to.item_id
- The Control4 item ID.Expand source code
class C4Entity: def __init__(self, C4Director, item_id): """Creates a Control4 object. Parameters: `C4Director` - A `pyControl4.director.C4Director` object that corresponds to the Control4 Director that the device is connected to. `item_id` - The Control4 item ID. """ self.director = C4Director self.item_id = int(item_id)
Subclasses