enhomie.philips.params.plugins package#
Submodules#
enhomie.philips.params.plugins.change 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.
- pydantic model enhomie.philips.params.plugins.change.DriverPhueChangeParams[source]#
Bases:
HomieParamsModel
Process and validate the Homie configuration parameters.
Show JSON schema
{ "title": "DriverPhueChangeParams", "description": "Process and validate the Homie configuration parameters.", "type": "object", "properties": { "devices": { "description": "Devices that are in scope", "items": { "type": "string" }, "minItems": 1, "title": "Devices", "type": "array" }, "sensors": { "anyOf": [ { "items": { "enum": [ "button1", "button2", "button3", "button4", "contact", "motion", "temperature" ], "type": "string" }, "minItems": 1, "type": "array" }, { "type": "null" } ], "default": null, "description": "Sensors that will be matched", "title": "Sensors" }, "since": { "default": 0, "description": "Minimum time since changed", "minimum": 0, "title": "Since", "type": "integer" } }, "additionalProperties": false, "required": [ "devices" ] }
- Config:
extra: str = forbid
- Fields:
- field devices: Annotated[list[str], FieldInfo(annotation=NoneType, required=True, description='Devices that are in scope', metadata=[MinLen(min_length=1)])] [Required]#
Devices that are in scope
- Constraints:
min_length = 1
- field sensors: Annotated[list[Literal['button1', 'button2', 'button3', 'button4', 'contact', 'motion', 'temperature']] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Sensors that will be matched', metadata=[MinLen(min_length=1)])] = None#
Sensors that will be matched
- Constraints:
min_length = 1
enhomie.philips.params.plugins.contact 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.
- pydantic model enhomie.philips.params.plugins.contact.DriverPhueContactParams[source]#
Bases:
HomieParamsModel
Process and validate the Homie configuration parameters.
Show JSON schema
{ "title": "DriverPhueContactParams", "description": "Process and validate the Homie configuration parameters.", "type": "object", "properties": { "device": { "description": "Device that is in scope", "minLength": 1, "title": "Device", "type": "string" }, "states": { "anyOf": [ { "items": { "enum": [ "contact", "no_contact" ], "type": "string" }, "minItems": 1, "type": "array" }, { "type": "null" } ], "default": null, "description": "States that will be matched", "title": "States" } }, "additionalProperties": false, "required": [ "device" ] }
- Config:
extra: str = forbid
- Fields:
enhomie.philips.params.plugins.motion 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.
- pydantic model enhomie.philips.params.plugins.motion.DriverPhueMotionParams[source]#
Bases:
HomieParamsModel
Process and validate the Homie configuration parameters.
Show JSON schema
{ "title": "DriverPhueMotionParams", "description": "Process and validate the Homie configuration parameters.", "type": "object", "properties": { "device": { "description": "Device that is in scope", "minLength": 1, "title": "Device", "type": "string" }, "states": { "anyOf": [ { "items": { "enum": [ "motion", "no_motion" ], "type": "string" }, "minItems": 1, "type": "array" }, { "type": "null" } ], "default": null, "description": "States that will be matched", "title": "States" } }, "additionalProperties": false, "required": [ "device" ] }
- Config:
extra: str = forbid
- Fields:
enhomie.philips.params.plugins.scene 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.
- pydantic model enhomie.philips.params.plugins.scene.DriverPhueSceneParams[source]#
Bases:
HomieParamsModel
Process and validate the Homie configuration parameters.
Show JSON schema
{ "title": "DriverPhueSceneParams", "description": "Process and validate the Homie configuration parameters.", "type": "object", "properties": { "scene": { "description": "Scene that is in scope", "minLength": 1, "title": "Scene", "type": "string" }, "group": { "description": "Group that is in scope", "minLength": 1, "title": "Group", "type": "string" }, "states": { "anyOf": [ { "items": { "enum": [ "active", "inactive" ], "type": "string" }, "minItems": 1, "type": "array" }, { "type": "null" } ], "default": null, "description": "States that will be matched", "title": "States" } }, "additionalProperties": false, "required": [ "scene", "group" ] }
- Config:
extra: str = forbid
- Fields:
- field group: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Group that is in scope', metadata=[MinLen(min_length=1)])] [Required]#
Group that is in scope
- Constraints:
min_length = 1
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.
- pydantic model enhomie.philips.params.plugins.DriverPhueButtonParams[source]#
Bases:
HomieParamsModel
Process and validate the Homie configuration parameters.
Show JSON schema
{ "title": "DriverPhueButtonParams", "description": "Process and validate the Homie configuration parameters.", "type": "object", "properties": { "device": { "description": "Device that is in scope", "minLength": 1, "title": "Device", "type": "string" }, "events": { "anyOf": [ { "items": { "enum": [ "initial_press", "long_release", "short_release" ], "type": "string" }, "minItems": 1, "type": "array" }, { "type": "null" } ], "default": null, "description": "Events that will be matched", "title": "Events" }, "sensor": { "description": "Sensor that will be matched", "enum": [ "button1", "button2", "button3", "button4" ], "title": "Sensor", "type": "string" } }, "additionalProperties": false, "required": [ "device", "sensor" ] }
- Config:
extra: str = forbid
- Fields:
- field device: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Device that is in scope', metadata=[MinLen(min_length=1)])] [Required]#
Device that is in scope
- Constraints:
min_length = 1
- pydantic model enhomie.philips.params.plugins.DriverPhueChangeParams[source]#
Bases:
HomieParamsModel
Process and validate the Homie configuration parameters.
Show JSON schema
{ "title": "DriverPhueChangeParams", "description": "Process and validate the Homie configuration parameters.", "type": "object", "properties": { "devices": { "description": "Devices that are in scope", "items": { "type": "string" }, "minItems": 1, "title": "Devices", "type": "array" }, "sensors": { "anyOf": [ { "items": { "enum": [ "button1", "button2", "button3", "button4", "contact", "motion", "temperature" ], "type": "string" }, "minItems": 1, "type": "array" }, { "type": "null" } ], "default": null, "description": "Sensors that will be matched", "title": "Sensors" }, "since": { "default": 0, "description": "Minimum time since changed", "minimum": 0, "title": "Since", "type": "integer" } }, "additionalProperties": false, "required": [ "devices" ] }
- Config:
extra: str = forbid
- Fields:
- field devices: Annotated[list[str], FieldInfo(annotation=NoneType, required=True, description='Devices that are in scope', metadata=[MinLen(min_length=1)])] [Required]#
Devices that are in scope
- Constraints:
min_length = 1
- field sensors: Annotated[list[Literal['button1', 'button2', 'button3', 'button4', 'contact', 'motion', 'temperature']] | None, FieldInfo(annotation=NoneType, required=False, default=None, description='Sensors that will be matched', metadata=[MinLen(min_length=1)])] = None#
Sensors that will be matched
- Constraints:
min_length = 1
- pydantic model enhomie.philips.params.plugins.DriverPhueContactParams[source]#
Bases:
HomieParamsModel
Process and validate the Homie configuration parameters.
Show JSON schema
{ "title": "DriverPhueContactParams", "description": "Process and validate the Homie configuration parameters.", "type": "object", "properties": { "device": { "description": "Device that is in scope", "minLength": 1, "title": "Device", "type": "string" }, "states": { "anyOf": [ { "items": { "enum": [ "contact", "no_contact" ], "type": "string" }, "minItems": 1, "type": "array" }, { "type": "null" } ], "default": null, "description": "States that will be matched", "title": "States" } }, "additionalProperties": false, "required": [ "device" ] }
- Config:
extra: str = forbid
- Fields:
- pydantic model enhomie.philips.params.plugins.DriverPhueMotionParams[source]#
Bases:
HomieParamsModel
Process and validate the Homie configuration parameters.
Show JSON schema
{ "title": "DriverPhueMotionParams", "description": "Process and validate the Homie configuration parameters.", "type": "object", "properties": { "device": { "description": "Device that is in scope", "minLength": 1, "title": "Device", "type": "string" }, "states": { "anyOf": [ { "items": { "enum": [ "motion", "no_motion" ], "type": "string" }, "minItems": 1, "type": "array" }, { "type": "null" } ], "default": null, "description": "States that will be matched", "title": "States" } }, "additionalProperties": false, "required": [ "device" ] }
- Config:
extra: str = forbid
- Fields:
- pydantic model enhomie.philips.params.plugins.DriverPhueSceneParams[source]#
Bases:
HomieParamsModel
Process and validate the Homie configuration parameters.
Show JSON schema
{ "title": "DriverPhueSceneParams", "description": "Process and validate the Homie configuration parameters.", "type": "object", "properties": { "scene": { "description": "Scene that is in scope", "minLength": 1, "title": "Scene", "type": "string" }, "group": { "description": "Group that is in scope", "minLength": 1, "title": "Group", "type": "string" }, "states": { "anyOf": [ { "items": { "enum": [ "active", "inactive" ], "type": "string" }, "minItems": 1, "type": "array" }, { "type": "null" } ], "default": null, "description": "States that will be matched", "title": "States" } }, "additionalProperties": false, "required": [ "scene", "group" ] }
- Config:
extra: str = forbid
- Fields:
- field group: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Group that is in scope', metadata=[MinLen(min_length=1)])] [Required]#
Group that is in scope
- Constraints:
min_length = 1