I’m trying to use the DateTime function and up to now it works correctly.
What’s happening is that once I need to display 2 DateTime function one after the other, only the first one displays the correct time, the second one just “Err”.
I have no clue why, because the variable that should be displayed exists …
"I thought that from you’re previous posts " … is that Ironi?
The code is so simple and working fine, and here is it:
rule DentroCasa
when
Item FuoriCasa_OFF received update
then
Dentro_Casa_Udate.postUpdate( new DateTimeType())
end
rule FuoriCasa
when
Item FuoriCasa_ON received update
then
Fuori_Casa_Update.postUpdate( new DateTimeType())
end
I’m aware they are two different lines of code. Pay attention to the parts that I made bold. I n Fuori_Casa_Update you use “%1tg” but in Dentro_Casa_Udate you use “%1td”.