Hauptmenü

Webhook Module

Begonnen von mgmino, 24 März 2021, 01:55:22

Vorheriges Thema - Nächstes Thema

mgmino

Is there a module to process webhooks? Rather than polling a device through HTTPMOD, I would like to send FHEM the payload asynchronously. This could be a HTTP alternative to MQTT.

For example, when the value of a sensor changes, it sends a webhook (e.g. http://hostname:8083/fhem/api/washer?temp=55) to set the value of the temp attribute of device washer to 55.

Another example is the GEOFANCY module which uses a webhook interface.

mgmino

I found the answer in the CsrfToken-HowTo.

Suggestion: Incorporate the term webhooks in the documentation to help newbies find this.  :)

Christoph Morrison

I added the term at the proper place. Thank you for your proposal.