So i have given up with iobroker and used FHEM instead, worked well first time.