enhomie.philips.params package#
Subpackages#
- enhomie.philips.params.plugins package
- Submodules
- enhomie.philips.params.plugins.button module
- enhomie.philips.params.plugins.change module
- enhomie.philips.params.plugins.contact module
- enhomie.philips.params.plugins.motion module
- enhomie.philips.params.plugins.scene module
- Module contents
Submodules#
enhomie.philips.params.origin 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.philips.params.origin.PhueOriginParams(_parse: Callable[[...], Any] | None = None, *, bridge: BridgeParams)[source]#
Bases:
HomieParamsModelProcess and validate the Homie configuration parameters.
- bridge: Annotated[BridgeParams, FieldInfo(annotation=NoneType, required=True, description='Connection specific parameters')]#
- model_config = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
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.philips.params.DriverPhueButtonParams(*, device: Annotated[str, MinLen(min_length=1)], events: Annotated[list[Literal['initial_press', 'long_release', 'short_release']] | None, MinLen(min_length=1)] = None, sensor: Literal['button1', 'button2', 'button3', 'button4'])[source]#
Bases:
HomieParamsModelProcess and validate the Homie configuration parameters.
- device: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Device that is in scope', metadata=[MinLen(min_length=1)])]#
- events: Annotated[list[Literal['initial_press', 'long_release', 'short_release']] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Events that will be matched', metadata=[MinLen(min_length=1)])]#
- model_config = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class enhomie.philips.params.DriverPhueChangeParams(*, devices: Annotated[list[str], MinLen(min_length=1)], sensors: Annotated[list[Literal['button1', 'button2', 'button3', 'button4', 'contact', 'motion', 'temperature']] | None, MinLen(min_length=1)] = None, since: Annotated[int, Ge(ge=0)] = 0)[source]#
Bases:
HomieParamsModelProcess and validate the Homie configuration parameters.
- devices: Annotated[list[str], FieldInfo(annotation=NoneType, required=True, description='Devices that are in scope', metadata=[MinLen(min_length=1)])]#
- model_config = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class enhomie.philips.params.DriverPhueContactParams(*, device: Annotated[str, MinLen(min_length=1)], states: Annotated[list[Literal['contact', 'no_contact']] | None, MinLen(min_length=1)] = None)[source]#
Bases:
HomieParamsModelProcess and validate the Homie configuration parameters.
- device: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Device that is in scope', metadata=[MinLen(min_length=1)])]#
- model_config = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class enhomie.philips.params.DriverPhueMotionParams(*, device: Annotated[str, MinLen(min_length=1)], states: Annotated[list[Literal['motion', 'no_motion']] | None, MinLen(min_length=1)] = None)[source]#
Bases:
HomieParamsModelProcess and validate the Homie configuration parameters.
- device: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Device that is in scope', metadata=[MinLen(min_length=1)])]#
- model_config = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class enhomie.philips.params.DriverPhueSceneParams(*, scene: Annotated[str, MinLen(min_length=1)], group: Annotated[str, MinLen(min_length=1)], states: Annotated[list[Literal['active', 'inactive']] | None, MinLen(min_length=1)] = None)[source]#
Bases:
HomieParamsModelProcess and validate the Homie configuration parameters.
- group: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Group that is in scope', metadata=[MinLen(min_length=1)])]#
- model_config = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- class enhomie.philips.params.PhueOriginParams(_parse: Callable[[...], Any] | None = None, *, bridge: BridgeParams)[source]#
Bases:
HomieParamsModelProcess and validate the Homie configuration parameters.
- bridge: Annotated[BridgeParams, FieldInfo(annotation=NoneType, required=True, description='Connection specific parameters')]#
- model_config = {'extra': 'forbid'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].