Reliability of automations. Simple daily automation triggers on random days.

Avatar
  • updated

I'm having trouble getting simple automations to work reliable.



Example:

I want to switch on and off my outside lamps (two KNX devices) using the Sun variables.


I have tried using "Sun.Day" without success and now I'm trying the Sun.NotDay variable.

Here is my program task:

Image 1788

Here is the current values of the Sun:

Image 1786


And here you see my lights are currently still on: (!)

Image 1789

Why?


I have made a button in my visu to run the program and when I push it the lights turn on/off instantly. So for some reason it does not trigger correctly.

Suggestions?

Avatar
Joachim O

Thanks. I have tried to use the If/else previously with no better luck. The program runs great when I trigger it manually so there is something with the triggering. I will try a reboot (again).

Avatar
Fabien Fuster

Hi Joachim,

Your program looks good, I don't see any reason why it is not working properly.

For info, to make your program lighter, you could use "if /else".

Now, the only thing I recommend to try, is to restart the server. I had to do so when making several changes to the configuration to have them really be taken into account and working properly. Not always necessary, but sometime a must...

Hope this will fix it.


Regards,