FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: mgmino am 24 März 2021, 01:55:22

Titel: Webhook Module
Beitrag von: mgmino am 24 März 2021, 01:55:22
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.
Titel: Antw:Webhook Module
Beitrag von: mgmino am 26 März 2021, 23:36:24
I found the answer in the CsrfToken-HowTo.

Suggestion: Incorporate the term webhooks in the documentation to help newbies find this.  :)
Titel: Antw:Webhook Module
Beitrag von: Christoph Morrison am 27 März 2021, 11:27:16
I added the term at the proper place. Thank you for your proposal.