Force refresh/update of a channel in http binding

Hey all,
i am trying to set up a rule which broadcasts a notification with an image attached to it as documented for OH 4.2. The rule works fine.

I want to send the image of a surv. cam which delivers snapshots via a local http adress. So i created a thing with the http binding which updates an image item each second. Why, you might ask? I want to send this image in the exact moment when somebody rings the doorbell. A bigger interval for the updates would mess this up, obviously.
But refreshing each second eats up a substancial amount of CPU power of my Pi4.

So, how can i trigger a refesh for a http thing? Is there any way?

Thanks!

I don’t know if the http binding supports this or not, but if you send the command REFRESH to an item, some bindings will do exactly what you want, and go poll the device for the latest state.

If not, you may be able to make something work with a rule and HTTP actions.

Thanks for the idea, i just tested it. Sadly it does not work.

What do you mean by „HTTP Actions?“

:slight_smile:

Oh my…
i just realized, that the IP Cam binding supports a poll switch for polling an image :wink:

THY anway!