new theme, set gateway, registration and add sensor