Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double execution of scenario with crontab #537

Open
vdomos opened this issue Aug 14, 2017 · 0 comments

Comments

@vdomos
Copy link
Contributor

commented Aug 14, 2017

This scenario works fine every 5mn:

pm16ql

This with only a device add in if condition, will be execute every 5mn and every 5mn + ~20s:

er8bcg

Scenario log:

2017-08-14 19:00:22,912 domogik-scenario.Porte garage 2 DEBUG SensorTest : received MQ message : {u'timestamp': 1502730022, u'sensor_id': u'508', u'device_id': 107, u'stored_value': u'0'}. Please notice that if a scenario which use several of this sensor block is currently being evaluated, only one value is processed (in case the sensor values change too fast!)
2017-08-14 19:00:22,913 domogik-scenario.Porte garage 2 DEBUG SensorTest : Set sensor value = 'False' for sensor id '508'. Trigger raised! Please notice that if a scenario which use several of this sensor block is currently being evaluated, only one trigger is processed to avoid running several times the same test.
2017-08-14 19:00:22,913 domogik-scenario.Porte garage 2 DEBUG Eval the condition!
2017-08-14 19:00:22,913 domogik-scenario.Porte garage 2 DEBUG Evaluate <domogik.scenario.parameters.cron.CronParameter instance at 0x7f88640c9fc8> : False
2017-08-14 19:00:50,197 domogik-scenario.Porte garage 2 DEBUG Trigger <bound method ScenarioInstance.generic_trigger of <domogik.scenario.scenario.ScenarioInstance instance at 0x7f886409e170>> called by parameter <domogik.scenario.parameters.cron.CronParameter instance at 0x7f88640c9fc8>
2017-08-14 19:00:50,197 domogik-scenario.Porte garage 2 DEBUG Eval the condition!
2017-08-14 19:00:50,197 domogik-scenario.Porte garage 2 DEBUG Evaluate <domogik.scenario.parameters.cron.CronParameter instance at 0x7f88640c9fc8> : True
2017-08-14 19:00:50,197 domogik-scenario.Porte garage 2 DEBUG Evaluate SensorTest '508' in mode 'value' to 'False'. Type is '<type 'bool'>'
2017-08-14 19:00:50,198 domogik-scenario.Porte garage 2 INFO PORTE GARAGE RESTEE OUVERTE
2017-08-14 19:01:12,987 domogik-scenario.Porte garage 2 DEBUG SensorTest : received MQ message : {u'timestamp': 1502730072, u'sensor_id': u'508', u'device_id': 107, u'stored_value': u'0'}. Please notice that if a scenario which use several of this sensor block is currently being evaluated, only one value is processed (in case the sensor values change too fast!)
2017-08-14 19:01:12,988 domogik-scenario.Porte garage 2 DEBUG SensorTest : Set sensor value = 'False' for sensor id '508'. Trigger raised! Please notice that if a scenario which use several of this sensor block is currently being evaluated, only one trigger is processed to avoid running several times the same test.
2017-08-14 19:01:12,988 domogik-scenario.Porte garage 2 DEBUG Eval the condition!
2017-08-14 19:01:12,988 domogik-scenario.Porte garage 2 DEBUG Evaluate <domogik.scenario.parameters.cron.CronParameter instance at 0x7f88640c9fc8> : True
2017-08-14 19:01:12,988 domogik-scenario.Porte garage 2 DEBUG Evaluate SensorTest '508' in mode 'value' to 'False'. Type is '<type 'bool'>'
2017-08-14 19:01:12,988 domogik-scenario.Porte garage 2 INFO PORTE GARAGE RESTEE OUVERTE
2017-08-14 19:02:03,167 domogik-scenario.Porte garage 2 DEBUG SensorTest : received MQ message : {u'timestamp': 1502730123, u'sensor_id': u'508', u'device_id': 107, u'stored_value': u'0'}. Please notice that if a scenario which use several of this sensor block is currently being evaluated, only one value is processed (in case the sensor values change too fast!)
2017-08-14 19:02:03,167 domogik-scenario.Porte garage 2 DEBUG SensorTest : Set sensor value = 'False' for sensor id '508'. Trigger raised! Please notice that if a scenario which use several of this sensor block is currently being evaluated, only one trigger is processed to avoid running several times the same test.
2017-08-14 19:02:03,167 domogik-scenario.Porte garage 2 DEBUG Eval the condition!
2017-08-14 19:02:03,167 domogik-scenario.Porte garage 2 DEBUG Evaluate <domogik.scenario.parameters.cron.CronParameter instance at 0x7f88640c9fc8> : False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.