Rules doesn't fire

Hi , in spite of many other rules this one doesn’t fire.
No informations in log-files.
Thanks for some ideas.

//Setting WetterVorhersageKDB

val logName = “WetterVorhersageKDB”
rule “Setting WetterVorhersageKDB”

when
Time cron “0 0/5 * * * ?” //alle 5 Minuten
then
logInfo(logName, “WetterVorhersageKDB”)
var curr = Lokales_Wetter_und_Wettervorhersage_ForecastHours03_Condition
WetterVorhersageKDB.sendCommand(curr)
end

Please use code fences when posting code to the forum.

```
code goes here
```

Shouldn’t the cron expression have one more fields? Using the cron expression builder linked to from the docs gives 0 0/5 * ? * * *

Shouldn’t it be

var curr = Lokales_Wetter_und_Wettervorhersage_ForecastHours03_Condition.state

?

Cron looks ok to me…
Greets

Although the item is a string it is necessary to use .state.toString


Lokales_Wetter_und_Wettervorhersage_ForecastHours03_Condition.state.toString


will result in successful operation.
The cron was correct.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.