This object is in archive! 

Rule activated by lumination sensor

Hans shared this question 8 years ago
Answered

Try to get this rule to work but it wont start. Someone see what´s wrong?

Replies (9)

photo
1

I think it is perhaps because your time intervall spans over midnight.....

photo
1

I´ll test it with 16.00-23.45

photo
1

Nope, change that and it still don´t work...

photo
photo
1

Try to minimize the Suze if the rule by removing different if statements and if works slowly add piece by piece. Use push messaging to test the rule always

photo
1

Ok, thanks for the tip

photo
photo
1

If you are using a luminosity sensor I don't see the point of using the schedule puzzle. I use the following rule and works perfect.

photo
1

Thanks for your answer. I use the time because I don´t want it to work all night, just in that hours. I tried to change it to motion and with only one lamp, works perfect. As soon as I change it back to lumination nothing happends. Very strange.

photo
1

Hans,


Usually the motion sensors send a report to the controller every time it detects motion or no-motion. Luminosity sensors usually report only on certain events like when more than 100 lux, or if enabled every certain amount of time. You need to check the device configuration to see if the reports are being sent often enough for what you are trying to do. Be aware, if you set the reports to be sent too soon you will shorten the device's battery life.

photo
photo
1

I had a similar problem once and I think I solved it by replacing the "ANY" from the WHEN condition to "MOTION"


basically

When "sensor as "motion" then...


ANY wasn't working very well and my best guess is due to the fact that my motion sensor "Fibaro Eye" has temperature and luminance sensors as well and I'm not sure if the ANY isn't related to these last two instead of the motion...

FP

photo
1

Thanks for your answer. I´m not sure if I understand you correctly but if I change to "Motion" activated lamps in the same rule it works just fine. My problem is when I use lumination as the trigger. Anyway, I have tested it without the use of "Any" first, without luck.

photo
photo
1

Hi Hans,


I had a similar challenge, but for another use - turning indoor ambient lights on when the light went below a certain level. (I have to admit that it was much easier with the Fibaro than the zipato 4-in-1, because the Fibaro Luminance device is seen as a sensor, not as a meter). For some reason my rule seemed to work in reverse, so using that logic, I reversed the rule :)

See my rule - instead of setting it to turn on when the light went below a certain level, it worked for me if it was on by default, and I'm turning it off, when it goes above a certain threshold.

This is working great for me.

photo
1

Nice :-)


Thanks! I´ll test that.

photo
photo
1

I´m very interested to hear if someone from Zipato has any clues to why this rule wont work in lumination settings. The multisensor seems to work/report as it should in Zipabox.

photo
1

Hi Hans...its really simple, but a bit tricky until you wrap your head around the fact that the rules are event driven.

Your condition in the middle of the rule (luminance <100) will not work since that is not a event that is triggered when you want it to happen. In order to solve this you need to put the luminance level in a variable (separate rule) when it changes....and then use that variable value in your rule.

Say for instance that the last reported luminance was 0 at 15:30 (gets dark early in Sweden at wintertime) then the value will not be reported again until it changes and therefore will not trigger your rule.

Hope I did not make you even more confused. :)

/Erik

photo
1

Thanks Erik,

Yes, now I´m confused :-)


Actually i have been looking at variable but not tested yet, will do so.

For the moment I get the lamp started in a timeperiod and with the lumination sensor <=80. My problem now is that I don´t get it to go off in a certain time (in my case 01.00 at night). I`ll attach an example later this evening.

photo
1

Hi Hans,


I had another look at this one, as I was getting some strange results. (Even now I'm getting some strange results, but its a lot more predictable) As Erik suggested, I also ended up with a similar rule. This is what I am now using, and I'm also attaching some history so you can see its working

Since the Luminance is reported correctly as you say, the trick was to trigger an event. so:

If Luminance is between value_A and value_B (% based on the Zipato 4-in-1, or Lux value in Fibaro)

If the time is between Time_A and Time_B (maybe overkill, but I'm using this as it suits my needs)

Perform an Action


I've lined up the graphs for the sensor reading and the status of the stairs lights so you can see the relationship between the two in the Results image attached.


btw - I'm not sure I understand why youre using the join (FORENA) command - wouldnt that prevent it from happening again?

Also check if its switching the first device only (your Kok Fonster), not the others. Some of the randomness I'm seeing if you look at my rule is that the stairs lights are working fine, but the Ambient LED strips are not always coming on, yet both are on the same rule.

Hope that helps

Leave a Comment
 
Attach a file