It works fine, thanks for your help! ;)
Just one question remains - by any chance I can get the TV power or input status updates back to controller? I saw the similar question on page 2, but seems to me no solution at that time.
Thanks,Dima