@roberto1979 here’s another link that may be of interest to you from the old HomeGenie forum http://old.homegenie.club:8080/www.homegenie.it/forum/indexed45-2.html?topic=352.msg1999#msg1999
A lot of what you are probably trying to achieve has probably already been done in the old forum. That’s where most users get their tips from. A google search should include the words old HomeGenie forum which allows you to search the old HomeGenie forum. You should find most of what you are looking for that way.