Crontab + Automation public void Run(): Don't work

4 years 3 months ago #2075 by bit

osalval wrote: Commands: Sensor.Down, Sensor.Stop and Sensor.Up are the last incorporated in EsyIot....


where you found that?

I'm sorry for my poor english.

Please Log in or Create an account to join the conversation.

4 years 3 months ago #2076 by osalval
Since V0.8:
new control roller shutter (MySensors:S_COVER, V_UP, V_STOP, V_DOWN, V_DIMMER).

If in Automation you set: 15 22 * * Mon-Fri, and :
public void Run()
{
DriverHelper.ProcessCommad(Domains.MYSENSORS, "N21S0", "ControlLevel", "0");
}

Controller send:
2015-08-17T22:15:00.7455610+02:00 INFO MySensors N21S0 Sensor.CoverLevel 0 -
The following user(s) said Thank You: bit

Please Log in or Create an account to join the conversation.

4 years 3 months ago #2088 by osalval
Hello,

After testing this week, I can see that Automation based in CRON, works only once a day.

I have 2 different Automation programs per day, one at morning and the other at night. When one of it works, the other don't and vice versa.

Please Log in or Create an account to join the conversation.

4 years 3 months ago #2089 by EasyIoT

osalval wrote: Hello,

After testing this week, I can see that Automation based in CRON, works only once a day.

I have 2 different Automation programs per day, one at morning and the other at night. When one of it works, the other don't and vice versa.


I've tested and it seems that it works for me. Can you send CRON settings? Which platform do you use? Win or RPI?
The following user(s) said Thank You: osalval

Please Log in or Create an account to join the conversation.

4 years 3 months ago #2092 by osalval
Hello, I use RPI.

Every Morning, week days, Cron settings: 45 6 * * Mon-Fri
public void Run()
{
DriverHelper.ProcessCommad(Domains.MYSENSORS, "N21S0", "ControlLevel", "60");
}

Every Night, week days, Cron settings: 15 22 * * Mon-Fri
public void Run()
{
DriverHelper.ProcessCommad(Domains.MYSENSORS, "N21S0", "ControlLevel", "0");
}

Please Log in or Create an account to join the conversation.

4 years 3 months ago #2099 by osalval
After some test I confirm that only one automation CRON can work every day.
It seems it is a API problem.
Even I tested to have only one program in one Automation Group and nothing, only works first of it on execute by time schedule

Please Log in or Create an account to join the conversation.

Time to create page: 0.214 seconds

Forum latest

  • No posts to display.