Update item state from client trigger?

Hello,
I would like to know if it is possible to trigger a rule from a client request (web UI, android app…).
My need : I setup a Wifi toggle rule which is working. But Wifi can be activated directly with the button on ISP box, and I did’nt find any way to publish something from this very box to let the bus know.

As I will need wifi state information only when I will display UI, I would like to trigger a check state on this “event” (UI display?).

The “regular” way would be to setup a Time cron rule to do that, but I would prefer an event-oriented approach.

Hope it’s clear and thanks for your replies,

Nicolas

Use the REST api (http)? https://github.com/openhab/openhab/wiki/REST-API

Thanks for your reply, but could you precise what you have in mind? I don’t see the relation between REST API and any UI-loading event.

Thank you !

Nicolas

Maybe try to use a sitemap element (webview) that sets/updates an item state when the sitemap is loaded. (I assume you mean the sitemap when you say ‘web ui’.) Example:
Webview item=randomItemName url=“http://localhost:8080/CMD?myTriggerItem=ON