L.S.
I have created a Light sensor connected to a homeduino. The sensor is measuring Volt.
Now I have created a rule to switch on my lights depending of the ambient light.
Rule:
"id": "lichtsensor",
"name": "Lichtsensor",
"rule": "if $homeduino-analog-sensor1.voltage is decreasing and voltage of Lichtsensor is less than 2 and voltage of Lichtsensor is greater than 1 then dim Dimmer tafellamp A to 40% and after 600 seconds switch Schemerlamp staand on and after 900 second switch Schemerlamp televisie on and after 902 seconds switch Schemerlamp boekenkast on and after 904 seconds switch Schemerlamp bank on and after 1800 seconds dim Dimmer tafellamp V to 40%",
"active": true,
"logging": true
Here is the output of my message log due to above rule:
26.02.2015 18:04:23info [pimatic]: rule lichtsensor: turned Schemerlamp bank on
18:04:21info [pimatic]: rule lichtsensor: turned Schemerlamp boekenkast on
18:04:19info [pimatic]: rule lichtsensor: turned Schemerlamp televisie on
17:59:19info [pimatic]: rule lichtsensor: turned Schemerlamp staand on
17:49:19info [pimatic]: rule lichtsensor: dimmed Dimmer tafellamp A to 40%
17:49:18info [pimatic]: rule lichtsensor: reschedule action dim Dimmer tafellamp V to 40% in 1800 seconds
17:49:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp bank on in 904 seconds
17:49:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp boekenkast on in 902 seconds
17:49:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp televisie on in 900 second
17:49:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp staand on in 600 seconds
17:42:19info [pimatic]: rule lichtsensor: dimmed Dimmer tafellamp A to 40%
17:42:18info [pimatic]: rule lichtsensor: reschedule action dim Dimmer tafellamp V to 40% in 1800 seconds
17:42:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp bank on in 904 seconds
17:42:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp boekenkast on in 902 seconds
17:42:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp televisie on in 900 second
17:42:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp staand on in 600 seconds
17:40:19info [pimatic]: rule lichtsensor: dimmed Dimmer tafellamp A to 40%
17:40:18info [pimatic]: rule lichtsensor: reschedule action dim Dimmer tafellamp V to 40% in 1800 seconds
17:40:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp bank on in 904 seconds
17:40:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp boekenkast on in 902 seconds
17:40:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp televisie on in 900 second
17:40:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp staand on in 600 seconds
17:35:19info [pimatic]: rule lichtsensor: dimmed Dimmer tafellamp A to 40%
17:35:18info [pimatic]: rule lichtsensor: reschedule action dim Dimmer tafellamp V to 40% in 1800 seconds
17:35:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp bank on in 904 seconds
17:35:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp boekenkast on in 902 seconds
17:35:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp televisie on in 900 second
17:35:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp staand on in 600 seconds
17:33:19info [pimatic]: rule lichtsensor: dimmed Dimmer tafellamp A to 40%
17:33:18info [pimatic]: rule lichtsensor: reschedule action dim Dimmer tafellamp V to 40% in 1800 seconds
17:33:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp bank on in 904 seconds
17:33:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp boekenkast on in 902 seconds
17:33:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp televisie on in 900 second
17:33:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp staand on in 600 seconds
17:28:19info [pimatic]: rule lichtsensor: dimmed Dimmer tafellamp A to 40%
17:28:18info [pimatic]: rule lichtsensor: reschedule action dim Dimmer tafellamp V to 40% in 1800 seconds
17:28:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp bank on in 904 seconds
17:28:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp boekenkast on in 902 seconds
17:28:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp televisie on in 900 second
17:28:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp staand on in 600 seconds
17:26:19info [pimatic]: rule lichtsensor: dimmed Dimmer tafellamp A to 40%
17:26:18info [pimatic]: rule lichtsensor: reschedule action dim Dimmer tafellamp V to 40% in 1800 seconds
17:26:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp bank on in 904 seconds
17:26:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp boekenkast on in 902 seconds
17:26:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp televisie on in 900 second
17:26:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp staand on in 600 seconds
17:24:19info [pimatic]: rule lichtsensor: dimmed Dimmer tafellamp A to 40%
17:24:18info [pimatic]: rule lichtsensor: reschedule action dim Dimmer tafellamp V to 40% in 1800 seconds
17:24:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp bank on in 904 seconds
17:24:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp boekenkast on in 902 seconds
17:24:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp televisie on in 900 second
17:24:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp staand on in 600 seconds
17:20:19info [pimatic]: rule lichtsensor: dimmed Dimmer tafellamp A to 40%
17:20:18info [pimatic]: rule lichtsensor: reschedule action dim Dimmer tafellamp V to 40% in 1800 seconds
17:20:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp bank on in 904 seconds
17:20:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp boekenkast on in 902 seconds
17:20:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp televisie on in 900 second
17:20:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp staand on in 600 seconds
17:17:19info [pimatic]: rule lichtsensor: dimmed Dimmer tafellamp A to 40%
17:17:18info [pimatic]: rule lichtsensor: reschedule action dim Dimmer tafellamp V to 40% in 1800 seconds
17:17:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp bank on in 904 seconds
17:17:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp boekenkast on in 902 seconds
17:17:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp televisie on in 900 second
17:17:18info [pimatic]: rule lichtsensor: reschedule action switch Schemerlamp staand on in 600 seconds
17:15:19info [pimatic]: rule lichtsensor: dimmed Dimmer tafellamp A to 40%
My question is how is it possible that the rule is rescheduling all the time. I like to achieve that the lights are switched on after the sensor is triggered at less than 2 V.
Further more I added to the rule that the value should be decreasing to avoid switching in the morning and a rule of switching above 1V to avoid switching when the light of the room with the sensor is switched on.
It is all not happening as expected. The rule is also switching the light on in the morning when the Voltage is increasing.
I could use some assistance with this one
Best regards
mcblacky