This object is in archive! 

Unable to send an http request or an email in a rule

Guest shared this problem 11 years ago
Solved

I made my first rule:

When CONTROL on SWITCH ON/OFF (fgs211) TOGGLE

HTTP REQUEST to pushingbox


Then I switch ON/OFF on the dashboard or by the way of the thermostat and I never receive any mails.


I tested the URL of the pushin box and it works fine (I received the mail)

I did the same with the action SEND MAIL and I never receive the mail.


May be I did it wrong, in this case tell me why please? at least could you have a look please?


In attachment the rule

Files: rule.jpg

Replies (12)

photo
1

Did you synchronize your rules?

From the attached image I don't see your HTTP request configuration.

Try putting something else in rule, like action to turn light on. That way you will know for sure that rule was executed. Problem with send mail action is that sometimes mail could end up in spam.

photo
1

I'd synchronized more than one time :)

I'd checked my spams

I will try with a light... tonight

photo
1

Hello,

try to put "On" or "Off" in when condition.

The rule start when an event comes, and you can check this in Event Widget.

I use HTTP for PushingBox and Email without problems.

photo
1

Nice rules ChrisDalo and thank you for your example.

I performed some tests yesterday night.

* When I use the "Send message" I never receive the message (by mail).

* When I ask for http request thru Pushingbox, it works but I received 3 mails for one action each time (may be the problem is on PushingBox for the 3 messages, I will try to find, may be I will set-up an Apache http server and check logs). It works only when I use the physical switch but when I use the iphone or the web GUI to turn on the light it does not work (may be it is normal for you...).

photo
1

I confirm that the request was sent three time, I set the request to an Apache server that I own, this is the access.log:

85.171.xxx.xxx - - [31/Jan/2013:21:25:13 +0100] "GET /zipato HTTP/1.1" 403 - "-" "Java/1.6.0_32"

85.171.xxx.xxx - - [31/Jan/2013:21:25:13 +0100] "GET /zipato HTTP/1.1" 403 - "-" "Java/1.6.0_32"

85.171.xxx.xxx - - [31/Jan/2013:21:25:13 +0100] "GET /zipato HTTP/1.1" 403 - "-" "Java/1.6.0_32"


The IP is my IP. So the request is sent by my zipabox.In attachment my rule

photo
1

This test was performed with a FGD211 (dimmer) : when turn ON

photo
1

So, the problem is that the rule is sending three requests?

What was response code from your server? From your log I'm thinking it's 403 (Forbidden). Try putting some url that will return status code 200 (OK). Then please post the result.

photo
1

Yes the box is sending 3 requests

I did it with a status code 200 (OK): same result.


85.171.xxx.xxx - - [31/Jan/2013:22:20:01 +0100] "GET /fr/index.html HTTP/1.1" 200 23219 "-" "Java/1.6.0_32"

85.171.xxx.xxx - - [31/Jan/2013:22:20:01 +0100] "GET /fr/index.html HTTP/1.1" 200 23219 "-" "Java/1.6.0_32"

85.171.xxx.xxx - - [31/Jan/2013:22:20:02 +0100] "GET /fr/index.html HTTP/1.1" 200 23219 "-" "Java/1.6.0_32"

photo
1

Ok, thank you very much for testing this.

We will investigate this problem tomorrow and hopefully fix it.

photo
1

Thank you.

photo
1

The problem was with Fibaro and their multicast, it sends event three times and therefore the rule was triggered three times.

Hopefully we fixed this in new firmware (0.9.96).

photo
1

Ok thanks a lot. I will try when I will back home.

Leave a Comment
 
Attach a file