Page 1 of 1

Possible to set GPIO after successful sending?

Posted: 13 Sep 2017, 19:33
by zocker
Hi to the forum,

i have a question on using the rules engine:

I'am reading a DHT22 sensor with my esp module using espeasy.
I configured espeasy to send the readings via HTTP to my server using the FHEM HTTP protocol.
This works fine ... no problem at all.

But i like to set a GPIO after successful sending the reading.

Is there a way to to this? Perhaps with a rule?
Exist a trigger event i can catch in the rule engine after the reading is sent?

Thx for your help.
Cheers Markus

Re: Possible to set GPIO after successful sending?

Posted: 13 Sep 2017, 19:58
by grovkillen
I'm not sure I understand you correctly but if I do:

You will have to make the rule do all the publishing and then add a GPIO command after the publish. There's no trigger by default.

You can see this example here: https://www.letscontrolit.com/wiki/inde ... th_own_IDX

After the publish/sendtohttp you do a "gpio" set.