This object is in archive! 
Unable to send an http request or an email in a rule
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
No connection
Real-time notifications may not work
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.
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.
I'd synchronized more than one time :)
I'd checked my spams
I will try with a light... tonight
I'd synchronized more than one time :)
I'd checked my spams
I will try with a light... tonight
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.
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.
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...).
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...).
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
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
This test was performed with a FGD211 (dimmer) : when turn ON
This test was performed with a FGD211 (dimmer) : when turn ON
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.
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.
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"
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"
Ok, thank you very much for testing this.
We will investigate this problem tomorrow and hopefully fix it.
Ok, thank you very much for testing this.
We will investigate this problem tomorrow and hopefully fix it.
Thank you.
Thank you.
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).
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).
Ok thanks a lot. I will try when I will back home.
Ok thanks a lot. I will try when I will back home.
Replies have been locked on this page!