homecontrol module¶
The core instance for HomeControl
-
class
homecontrol.core.Core(cfg: dict, cfg_file: str, loop: Optional[asyncio.events.AbstractEventLoop] = None, start_args: Optional[argparse.Namespace] = None)[source]¶ Bases:
objectRepresents the root object for HomeControl
Constants used by HomeControl
-
class
homecontrol.const.ItemStatus[source]¶ Bases:
enum.EnumEvery status an item can have
-
OFFLINE= 'offline'¶
-
ONLINE= 'online'¶
-
STOPPED= 'stopped'¶
-
WAITING_FOR_DEPENDENCY= 'waiting-for-dependency'¶
-
Exceptions
-
exception
homecontrol.exceptions.ConfigDomainAlreadyRegistered[source]¶ Bases:
homecontrol.exceptions.HomeControlExceptionThe configuration domain is already registered
-
exception
homecontrol.exceptions.ConfigurationNotApproved[source]¶ Bases:
homecontrol.exceptions.HomeControlExceptionConfiguration has not been approved
-
exception
homecontrol.exceptions.HomeControlException[source]¶ Bases:
BaseExceptionThe base exception for HomeControl
-
exception
homecontrol.exceptions.ItemNotFoundException[source]¶ Bases:
homecontrol.exceptions.HomeControlExceptionItem not found
-
exception
homecontrol.exceptions.ItemNotOnlineError[source]¶ Bases:
homecontrol.exceptions.HomeControlExceptionItem is not online
-
exception
homecontrol.exceptions.ItemTypeNotExistsError[source]¶ Bases:
homecontrol.exceptions.HomeControlExceptionItem type does not exist
-
exception
homecontrol.exceptions.ModuleNotFoundException[source]¶ Bases:
homecontrol.exceptions.HomeControlExceptionModule not found
-
exception
homecontrol.exceptions.PipInstallError[source]¶ Bases:
homecontrol.exceptions.HomeControlExceptionA pip install failed