An advanced usage of Homex having support for defining a type of device and associated entities and then name and provide identifiers for multiple of those. Start Homex with custom config and derive device and entity definitions at runtime
Something like Homex.MultiManager.add_entity({MyApp.Camera, device: "camera-1", video_device: "/dev/video0"})
Homex.add_device("camera-1"
[
{MyApp.CameraThumbnails,
opt_1: "foo"
},
{MyApp.CameraIntruderDetection,
model: "bla.onnx"
}
]
)
An advanced usage of Homex having support for defining a type of device and associated entities and then name and provide identifiers for multiple of those. Start Homex with custom config and derive device and entity definitions at runtime
Something like
Homex.MultiManager.add_entity({MyApp.Camera, device: "camera-1", video_device: "/dev/video0"})