Dear rossko57 thank you very much, your hints has opened a new way in my mind.
I’ve removed the rule from the single file that i was using and I’ve created a new file limiting copy/paste and changing variables and rules names.
Then i’ve stopped OH, changed the rules files; at the end I’ve cleaned the OH cache deleting the directories (Clear the Cache).
After restarting (and waited the startup time) the rules are running ok.
Thanks again.
f