Fill image item with camera picture (URL) in a rule

  • Platform information:

    • Hardware: RPi 4
    • OS: Raspberian
    • Java Runtime Environment: 11
    • openHAB version: 3.1.0
  • Issue of the topic: I’m trying to fill an image item with a camera picture through the camera URL from a rule.
    This is what I try from the camera.rules file:

  • Please post configurations (if applicable): Camera_last_motionpicture item set through GUI as image type.

    • Items configuration related to the issue
    • Sitemap configuration related to the issue
    • Rules code related to the issue
    • Services configuration related to the issue
  • If logs where generated please post these here using code fences:

You need to fill a string variable with the base64 data. See here for some example code to convert to base64 there should be some examples that are closer to your use case.

I had my zoneminder in the overview and just used the web url option.

Here is what it looked like: Openhab 3 some of things you can do with it. - YouTube