It seems that you have multiple problems.
1/ What do you want to do exactly with blockly ?
2/ For Imperihome, if you want to use it remotely you have to open the ports on your NAS and/or your router depending what you want. If you use it locally normally just follow the procedure on the website and it should works.
Note : I’m just thinking about reworking Blockly to be more simple…