enhomie.homie.members package#
Subpackages#
Submodules#
enhomie.homie.members.actions module#
Functions and routines associated with Enasis Network Homie Automate.
This file is part of Enasis Network software eco-system. Distribution is permitted, for more information consult the project license file.
- class enhomie.homie.members.actions.HomieActions(service: HomieService)[source]#
Bases:
HomieMember
Common methods and routines for Homie Automate members.
- get_thread(origin: HomieOrigin) Type[HomieThread] | None [source]#
Return the Homie class definition for its instantiation.
- Parameters:
origin – Child class instance for Homie Automate.
- Returns:
Homie class definition for its instantiation.
- put_actions(target: HomieActionNode, *, state: HomieState | None = None, color: str | None = None, level: int | None = None, scene: HomieScene | None = None) None [source]#
Insert the new item containing information for operation.
- Parameters:
target – Device or group settings will be updated.
state – Determine the state related to the target.
color – Determine the color related to the target.
level – Determine the level related to the target.
scene – Determine the scene related to the target.
enhomie.homie.members.member module#
Functions and routines associated with Enasis Network Homie Automate.
This file is part of Enasis Network software eco-system. Distribution is permitted, for more information consult the project license file.
- class enhomie.homie.members.member.HomieMember(service: HomieService)[source]#
Bases:
object
Common methods and routines for Homie Automate members.
- Parameters:
homie – Primary class instance for Homie Automate.
- property aqueue: HomieQueue[HomieActionItem]#
Return the value for the attribute from class instance.
- Returns:
Value for the attribute from class instance.
- property cancel: Event#
Return the value for the attribute from class instance.
- Returns:
Value for the attribute from class instance.
- property congest: list[tuple[str, int]]#
Return the list of congested threads and members queues.
- Returns:
List of congested threads and members queues.
- property enqueue: list[tuple[str, int]]#
Return the list of congested threads and members queues.
- Returns:
List of congested threads and members queues.
- get_thread(origin: HomieOrigin) Type[HomieThread] | None [source]#
Return the Homie class definition for its instantiation.
- Parameters:
origin – Child class instance for Homie Automate.
- Returns:
Homie class definition for its instantiation.
- property homie: Homie#
Return the Homie instance to which the instance belongs.
- Returns:
Homie instance to which the instance belongs.
- property running: list[str]#
Return the list of threads which are determined running.
- Returns:
List of threads which are determined running.
- property service: HomieService#
Return the Homie instance to which the instance belongs.
- Returns:
Homie instance to which the instance belongs.
- property squeue: HomieQueue[HomieStreamItem]#
Return the value for the attribute from class instance.
- Returns:
Value for the attribute from class instance.
- property threads: dict[str, HomieThread]#
Return the value for the attribute from class instance.
- Returns:
Value for the attribute from class instance.
- property uqueue: HomieQueue[HomieUpdateItem]#
Return the value for the attribute from class instance.
- Returns:
Value for the attribute from class instance.
enhomie.homie.members.restful module#
Functions and routines associated with Enasis Network Homie Automate.
This file is part of Enasis Network software eco-system. Distribution is permitted, for more information consult the project license file.
- class enhomie.homie.members.restful.HomieRestful(service: HomieService)[source]#
Bases:
HomieMember
Common methods and routines for Homie Automate members.
- get_thread(origin: HomieOrigin) Type[HomieThread] | None [source]#
Return the Homie class definition for its instantiation.
- Parameters:
origin – Child class instance for Homie Automate.
- Returns:
Homie class definition for its instantiation.
- property restful: RestfulService#
Return the value for the attribute from class instance.
- Returns:
Value for the attribute from class instance.
enhomie.homie.members.streams module#
Functions and routines associated with Enasis Network Homie Automate.
This file is part of Enasis Network software eco-system. Distribution is permitted, for more information consult the project license file.
- class enhomie.homie.members.streams.HomieStreams(service: HomieService)[source]#
Bases:
HomieMember
Common methods and routines for Homie Automate members.
- get_thread(origin: HomieOrigin) Type[HomieThread] | None [source]#
Return the Homie class definition for its instantiation.
- Parameters:
origin – Child class instance for Homie Automate.
- Returns:
Homie class definition for its instantiation.
enhomie.homie.members.updates module#
Functions and routines associated with Enasis Network Homie Automate.
This file is part of Enasis Network software eco-system. Distribution is permitted, for more information consult the project license file.
- class enhomie.homie.members.updates.HomieUpdates(service: HomieService)[source]#
Bases:
HomieMember
Common methods and routines for Homie Automate members.
- get_thread(origin: HomieOrigin) Type[HomieThread] | None [source]#
Return the Homie class definition for its instantiation.
- Parameters:
origin – Child class instance for Homie Automate.
- Returns:
Homie class definition for its instantiation.
Module contents#
Functions and routines associated with Enasis Network Homie Automate.
This file is part of Enasis Network software eco-system. Distribution is permitted, for more information consult the project license file.
- class enhomie.homie.members.HomieActions(service: HomieService)[source]#
Bases:
HomieMember
Common methods and routines for Homie Automate members.
- get_thread(origin: HomieOrigin) Type[HomieThread] | None [source]#
Return the Homie class definition for its instantiation.
- Parameters:
origin – Child class instance for Homie Automate.
- Returns:
Homie class definition for its instantiation.
- put_actions(target: HomieActionNode, *, state: HomieState | None = None, color: str | None = None, level: int | None = None, scene: HomieScene | None = None) None [source]#
Insert the new item containing information for operation.
- Parameters:
target – Device or group settings will be updated.
state – Determine the state related to the target.
color – Determine the color related to the target.
level – Determine the level related to the target.
scene – Determine the scene related to the target.
- class enhomie.homie.members.HomieMember(service: HomieService)[source]#
Bases:
object
Common methods and routines for Homie Automate members.
- Parameters:
homie – Primary class instance for Homie Automate.
- property aqueue: HomieQueue[HomieActionItem]#
Return the value for the attribute from class instance.
- Returns:
Value for the attribute from class instance.
- property cancel: Event#
Return the value for the attribute from class instance.
- Returns:
Value for the attribute from class instance.
- property congest: list[tuple[str, int]]#
Return the list of congested threads and members queues.
- Returns:
List of congested threads and members queues.
- property enqueue: list[tuple[str, int]]#
Return the list of congested threads and members queues.
- Returns:
List of congested threads and members queues.
- get_thread(origin: HomieOrigin) Type[HomieThread] | None [source]#
Return the Homie class definition for its instantiation.
- Parameters:
origin – Child class instance for Homie Automate.
- Returns:
Homie class definition for its instantiation.
- property homie: Homie#
Return the Homie instance to which the instance belongs.
- Returns:
Homie instance to which the instance belongs.
- property running: list[str]#
Return the list of threads which are determined running.
- Returns:
List of threads which are determined running.
- property service: HomieService#
Return the Homie instance to which the instance belongs.
- Returns:
Homie instance to which the instance belongs.
- property squeue: HomieQueue[HomieStreamItem]#
Return the value for the attribute from class instance.
- Returns:
Value for the attribute from class instance.
- property threads: dict[str, HomieThread]#
Return the value for the attribute from class instance.
- Returns:
Value for the attribute from class instance.
- property uqueue: HomieQueue[HomieUpdateItem]#
Return the value for the attribute from class instance.
- Returns:
Value for the attribute from class instance.
- class enhomie.homie.members.HomieRestful(service: HomieService)[source]#
Bases:
HomieMember
Common methods and routines for Homie Automate members.
- get_thread(origin: HomieOrigin) Type[HomieThread] | None [source]#
Return the Homie class definition for its instantiation.
- Parameters:
origin – Child class instance for Homie Automate.
- Returns:
Homie class definition for its instantiation.
- property restful: RestfulService#
Return the value for the attribute from class instance.
- Returns:
Value for the attribute from class instance.
- class enhomie.homie.members.HomieStreams(service: HomieService)[source]#
Bases:
HomieMember
Common methods and routines for Homie Automate members.
- get_thread(origin: HomieOrigin) Type[HomieThread] | None [source]#
Return the Homie class definition for its instantiation.
- Parameters:
origin – Child class instance for Homie Automate.
- Returns:
Homie class definition for its instantiation.
- class enhomie.homie.members.HomieUpdates(service: HomieService)[source]#
Bases:
HomieMember
Common methods and routines for Homie Automate members.
- get_thread(origin: HomieOrigin) Type[HomieThread] | None [source]#
Return the Homie class definition for its instantiation.
- Parameters:
origin – Child class instance for Homie Automate.
- Returns:
Homie class definition for its instantiation.