Can I update an item with an http get or post to my openhab device?

I have a home grown device and I want to update an item status when device status changes.

Currently I poll the device to update, but that is a waste of network traffic and my device could send something (such as http POST) when it changes the device status.


See the REST API.

Another common approach is to use MQTT.