Preset-Position Reolink E1 Outdoor

I’ve integrated my Reolink E1 Outdoor via camera binding. I would like to move the camera to a preset position using a rule.

I’ve created this item for this purpose

In the corresponding rule:

items.getItem("Kamera_Haustuer_Preset_Test").postUpdate("preset-pos-1");

Unfortunately, that doesn’t work. What am I doing wrong?

Best regards
Daniel

Try using:

items.getItem("Kamera_Haustuer_Preset_Test").sendCommand("preset-pos-1")

Unfortunately, that doesn’t work either. This option also logs an error.

09:30:53.778	INFO	openhab.event.ItemCommandEvent	Item 'Kamera_Haustuer_Preset_Test' received command preset-pos-1
09:30:53.782	INFO	openhab.event.ItemStatePredictedEvent	Item 'Kamera_Haustuer_Preset_Test' predicted to become preset-pos-1
09:30:53.785	INFO	openhab.event.ItemStateChangedEvent	Item 'Kamera_Haustuer_Preset_Test' changed from NULL to preset-pos-1
09:30:53.846	ERROR	org.openhab.core.internal.common.AbstractInvocationHandler	An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.ipcamera.internal.handler.IpCameraHandler@c648b6': For input string: "preset-pos-1"

EDIT:
As described in the binding documentation, I tested the “ODM” (ONIV Device Manager) to see if I could use the “Preset Position” function. It works with the tool.

I found the solution: When using sendCommand, the number of the preset position must be passed. Not the name of the position.

For example:

items.getItem("Kamera_Haustuer_Preset_Test").sendCommand(2);

The position count starts at 1 (not 0).