ioBroker.reolink icon indicating copy to clipboard operation
ioBroker.reolink copied to clipboard

multiple camera support

Open Diginix opened this issue 3 years ago • 10 comments

I have 2 Reolink cameras and as it seems I need 2 instances for having both in iobroker. This means double RAM consumption. Would be great having the opportunity for adding more devices in one instance with new node for each device. And the device name should be customizable in the instance or automatically retrieve/used from reolink.0.*.device.model. Thanks in advance!

Diginix avatar Dec 02 '22 10:12 Diginix

@aendue Any hope that this will be implemented sometime?

Diginix avatar Jan 10 '23 20:01 Diginix

@oelison Are you able to do this?

Diginix avatar Feb 24 '23 21:02 Diginix

@Diginix I don't know. I understand your request and it is still open. But I have actually no Idea how to solve this. Especially with custom names.

oelison avatar Feb 25 '23 09:02 oelison

I would imagine something how the ping or yeelight adapter does: image results in this object structure: image

image

Diginix avatar Feb 25 '23 19:02 Diginix

The idea is clear, but what is needed to be programmed not.

oelison avatar Feb 25 '23 21:02 oelison

I need this also, while i have 5 cameras. I will have a look into the code to eveluate what have to be done to achiev this.

Jey-Cee avatar Jul 29 '23 17:07 Jey-Cee

any news here?

freaktech avatar Sep 11 '23 09:09 freaktech

Here are my suggestions to achieve this:

  • Create classes for each device model, which makes it easier to deal with the special/supported features of a device. And can create objects based on supported features by device.
  • Declare the API versions in the functions for API call, if there are different versions from reolink. This makes it easy to switch between different API versions based on what the device is using. If the API is for more than one device the same put it into an class that can be imported to the device classes.
  • Use object structure like reolink.0.[mac of camera] like other adapters

Jey-Cee avatar Dec 27 '23 00:12 Jey-Cee

I´ve started to create the api class.

Jey-Cee avatar Dec 28 '23 15:12 Jey-Cee

Are there any updates regarding this? Integrating it with a home hub that supports multiple cameras would be particularly beneficial.

OnkelFD avatar May 13 '25 19:05 OnkelFD