Fix broken device search
Fix blinds and windows calculation