add legacyOnOffDevice